.kst-advent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 15, 28, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.kst-advent-overlay.kst-advent-visible {
    display: flex;
}

.kst-advent-popup {
    background: #fdfaf5;
    border-radius: 6px;
    max-width: 520px;
    width: 90%;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
}

.kst-advent-popup-inner {
    padding: 24px 24px 28px;
    background: radial-gradient(circle at top, #f8f0e2 0, #fdfaf5 45%, #fdfaf5 100%);
}

.kst-advent-close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    color: #444;
}

.kst-advent-header {
    text-align: center;
    margin-bottom: 12px;
}

.kst-advent-heading {
    font-size: 1.6rem;
    margin: 0 0 6px;
    color: #1c2430;
}

.kst-advent-intro {
    font-size: 0.95rem;
    color: #3a4350;
}

.kst-advent-counter {
    margin: 10px 0 18px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #8c5a18;
    text-align: center;
}

/* FORMULAR */

.kst-advent-form {
    display: block;
    margin-bottom: 16px;
}

.kst-field {
    margin-bottom: 10px;
}

.kst-field label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 3px;
    color: #333;
}

.kst-field input[type="email"] {
    width: 100%;
    border-radius: 6px;
    border: 1px solid #d7c6ab;
    padding: 8px 12px;
    font-size: 0.95rem;
    background-color: #fff;
}

.kst-field input[type="email"]:focus {
    outline: none;
    border-color: #c49a4a;
    box-shadow: 0 0 0 1px rgba(196, 154, 74, 0.25);
}

.kst-consent label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.kst-consent input[type="checkbox"] {
    margin-top: 3px;
}

.kst-button {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: none;
    padding: 8px 30px 8px 30px; /* opdateret */
    background: linear-gradient(135deg, #c49a4a, #936528);
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
    font-weight: 700; /* opdateret */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.1s ease;
    text-align: center;
}

.kst-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(0, 0, 0, 0.18);
    opacity: 0.95;
}

.kst-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.kst-advent-message {
    margin-top: 8px;
    font-size: 0.85rem;
    min-height: 1.2em;
    color: #1c2430;
}

.kst-advent-message.kst-error {
    color: #b3261e;
}

/* Tekst efter klik på "Skrab nu" */

.kst-advent-after-submit {
    margin: 10px 0 8px;
    text-align: center;
    font-size: 0.9rem;
    color: #3a4350;
}

/* SKRABELODD */

.kst-advent-scratch-wrapper {
    margin: 4px 0 0;
    text-align: center;
}

.kst-advent-scratch-card {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5eee4;
    box-shadow: inset 0 0 0 1px rgba(196, 154, 74, 0.7);
}

/* Canvas med DIT billede – ligger ØVERST og skrabes væk */
#kst-advent-scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
}

/* Resultat + tekst ligger UNDER overlay og afsløres i takt med skrab */
.kst-advent-result {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
    color: #1f2833;
    pointer-events: auto;
    z-index: 1;
}

.kst-advent-result a {
    color: #936528;
    text-decoration: underline;
}

.kst-advent-no-prize-text {
    margin-bottom: 8px;
}

.kst-advent-no-prize-button-wrapper {
    margin-top: 4px;
}

.kst-advent-booking-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    background: #fdfaf5;
    color: #936528 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.kst-advent-booking-button:hover {
    opacity: 0.95;
}

/* Genåbnings-knap */

.kst-advent-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9998;
    border: none;
    border-radius: 999px;
    padding: 8px 18px;
    background: linear-gradient(135deg, #c49a4a, #936528);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .kst-advent-popup-inner {
        padding: 18px 16px 22px;
    }
    .kst-advent-heading {
        font-size: 1.3rem;
    }
}
