[x-cloak] { display: none !important; }

/* --- Buttons --- */
.gkd-trigger-btn,
.gkd-btn-primary,
.gkd-btn-cart {
    background-color: #997F52 !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    fill: #FFFFFF !important;
    color: #FFFFFF !important;
    border: none !important;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.gkd-trigger-btn:hover,
.gkd-btn-primary:hover,
.gkd-btn-cart:hover {
    background-color: #7a6642 !important; /* Etwas dunkler beim Hover */
}

/* Zurück-Button (Sekundär) - Rand & Text gold, Hintergrund transparent */
.gkd-btn-secondary {
    background-color: transparent !important;
    font-family: "Montserrat", sans-serif !important;
    font-weight: 600 !important;
    color: #997F52 !important;
    border: 2px solid #997F52 !important;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gkd-btn-secondary:hover {
    background-color: #fdfaf6 !important;
}

/* Buttons deaktiviert (grau) */
.gkd-modal-footer button:disabled,
.gkd-btn-primary:disabled {
    background-color: #ccc !important;
    color: #666 !important;
    border-color: #ccc !important;
    cursor: not-allowed;
}

.gkd-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

@media (min-width: 768px) {
    .gkd-modal-overlay {
        align-items: center;
    }
}

.gkd-modal-content {
    background: #fff;
    width: 100%;
    max-width: 500px;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .gkd-modal-content {
        border-radius: 12px;
    }
}

.gkd-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.gkd-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.gkd-color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0 25px;
}

.gkd-swatch {
    border: 2px solid transparent;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    transition: all 0.2s ease;
}

.gkd-swatch.active {
    border-color: #997F52;
    background: #fdfaf6;
    transform: scale(1.05);
}

.gkd-swatch-visual {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gkd-swatch span {
    font-size: 13px;
    color: #333;
    text-align: center;
    line-height: 1.2;
}

.gkd-input {
    width: 90%;
    padding: 10px;

    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.gkd-preview-area img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 15px;
}

.gkd-loader {
    text-align: center;
    padding: 20px;
}

/* Progress Bar / Step Indikator */
.gkd-wizard-progress {
    background: #f0f0f0;
    border-radius: 4px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.gkd-progress-bar {
    height: 4px;
   background: #997F52;
    transition: width 0.3s ease;
}

.gkd-steps-indicator {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 8px 5px;
    color: #997F52;
}

.gkd-steps-indicator span.active {
    background: #f0f0f0;
    font-weight: bold;
}

/* Dekor Cards */
.gkd-decor-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.gkd-decor-card {
   border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; /* Flex-Layout für Bild links, Text rechts */
    align-items: center;
    gap: 15px;
}

.gkd-decor-card.active {
    border-color: #997F52;
    background-color: #f4f8fc;
}

.gkd-decor-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border: 1px solid #ccc;
}

.gkd-decor-info {
    flex: 1;
}

.gkd-decor-info h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.gkd-decor-info p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.gkd-decor-card h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
}

.gkd-decor-card p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* Zusammenfassungs-Box */
.gkd-summary-box {
    background: #f9f9f9;
    border-left: 4px solid #997F52;
    padding: 10px 15px;
    margin-bottom: 15px;
    font-size: 14px;
}

.gkd-summary-box p {
    margin: 4px 0;
}

.gkd-char-count {
    text-align: right;
    font-size: 12px;
    color: #777;
    margin-top: -15px;
    margin-bottom: 15px;
}

/* Helper Class */
.full-width {
    width: 100%;
}

/* --- Bilder Positionierung für Lupe --- */
.gkd-swatch-visual, 
.gkd-decor-image {
    position: relative; 
}

/* --- Lupen-Icon --- */
.gkd-zoom-hint {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 1px solid #eee;
    cursor: zoom-in;
}

/* --- Fullscreen Lightbox --- */
.gkd-lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.gkd-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
}

.gkd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    padding: 10px;
}

/* --- Erfolgsmeldung (Schritt 5) --- */
.gkd-success-message {
    text-align: center;
    padding: 30px 10px;
}

.gkd-success-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: gkd-pop 0.5s ease-out;
}

.gkd-success-message h3 {
    color: #997F52; /* Goldene Akzentfarbe */
    margin-bottom: 10px;
    font-size: 22px;
}

.gkd-success-message p {
    color: #666;
    font-size: 15px;
}

/* Flex-Layout für die beiden Buttons in Schritt 5 */
.gkd-action-group {
    display: flex;
    gap: 15px;
    width: 100%;
}

.gkd-action-group button {
    flex: 1; /* Beide Buttons nehmen jeweils 50% der Breite ein */
    text-align: center;
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Kleine Animation für das Häkchen */
@keyframes gkd-pop {
    0% { transform: scale(0.5); opacity: 0; }
    80% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}


/* ========================================================
   KI Loader & Warte-Animation
======================================================== */

.gkd-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* --- Wrapper hält Ring und Icon übereinander --- */
.gkd-spinner-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    width: 60px;
    height: 60px;
}

/* Der goldene Lade-Ring */
.gkd-loader .spinner {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border: 4px solid #fdfaf6;
    border-top: 4px solid #997F52;
    border-radius: 50%;
    
    animation: 
        gkd-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite, 
        gkd-glow 2s ease-in-out infinite alternate;
}

/* Das Pinsel-Icon in der Mitte */
.gkd-spinner-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    /* Der Pinsel pulsiert sanft im gleichen Rhythmus wie der Text */
    animation: gkd-pulse-text 1.5s ease-in-out infinite;
}

/* Der pulsierende Text */
.gkd-loader p {
    font-family: "Montserrat", sans-serif;
    color: #997F52;
    font-weight: 600;
    font-size: 16px;
    margin: 0;
    
    /* Sanftes Ein- und Ausblenden */
    animation: gkd-pulse-text 1.5s ease-in-out infinite;
}

/* --- Keyframes (Animations-Regeln) --- */

/* 1. Sanftes, ungleichmäßiges Drehen */
@keyframes gkd-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. Magisches Glühen um den Ring */
@keyframes gkd-glow {
    0% { box-shadow: 0 0 10px rgba(153, 127, 82, 0.1); }
    100% { box-shadow: 0 0 25px rgba(153, 127, 82, 0.5); }
}

/* 3. Text pulsiert (Herzschlag-Effekt) */
@keyframes gkd-pulse-text {
    0% { opacity: 0.5; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.5; transform: scale(0.98); }
}
/* --- Hinweis-Box: Vorschau-Limit erreicht --- */
.gkd-limit-reached-box {
    background: #fdfaf6;
    border: 2px dashed #997F52;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-top: 15px;
}

.gkd-limit-reached-box p:first-child {
    color: #997F52;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.gkd-limit-reached-box p:last-child {
    color: #666;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* ========================================================
   Glitter- & Farbauswahl Cards
======================================================== */

.gkd-grid-colors {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin: 15px 0 25px 0;
}

.gkd-card {
    background: #ffffff;
    border: 2px solid #e8e3dc;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.gkd-card:hover {
    border-color: #997F52;
    transform: translateY(-2px);
}

/* Aktiver Zustand bei Klick */
.gkd-card.active {
    border-color: #997F52;
    background: #fdfaf6;
    box-shadow: 0 0 0 1px #997F52, 0 4px 12px rgba(153, 127, 82, 0.2);
}

.gkd-card-img-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
    margin-bottom: 8px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.gkd-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gkd-color-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-bottom: 8px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gkd-card-title {
    font-family: "Montserrat", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    line-height: 1.2;
}

.gkd-card.active .gkd-card-title {
    color: #997F52;
}

/* ========================================================
   Footer Button-Layout & Absicherung
======================================================== */
.gkd-modal-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Zurück-Button (Links, gut lesbar und Theme-resistent) */
.gkd-btn-back {
    /* display: inline-block !important; */
    background-color: #f7f5f2 !important;
    color: #444444 !important;
    border: 1px solid #dcd7ce !important;
    padding: 10px 18px !important;
    cursor: pointer !important;
    margin-right: auto !important;
}

.gkd-btn-back:hover {
    background-color: #eee9e0 !important;
    color: #000000 !important;
}

/* Weiter-Button (Immer rechtsbündig) */
.gkd-btn-forward {
    margin-left: auto !important;
}

/* Aktionsgruppen in Schritt 5 & 6 über die volle Breite */
.gkd-action-group {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
}

