/* =========================================
   QUIZFUN4ALL COOKIE CONSENT SYSTEM
   ========================================= */

.cookie-banner,
.cookie-panel {
    font-family: 'Nunito Sans', Arial, sans-serif;
    box-sizing: border-box;
}

.cookie-banner *,
.cookie-panel * {
    box-sizing: border-box;
}

/* Cookie banner */

.cookie-banner {
    position: fixed;
    z-index: 9998;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 1050px;
    margin: 0 auto;
    padding: 24px 28px;
    background: #17221F;
    color: #FFFFFF;
    border: 1px solid #3B5149;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cookie-banner[hidden],
.cookie-panel[hidden] {
    display: none;
}

.cookie-banner-copy {
    flex: 1;
}

.cookie-banner-copy h2 {
    margin: 0 0 8px;
    color: #C7F000;
    font-size: 22px;
    font-weight: 800;
}

.cookie-banner-copy p {
    margin: 0;
    color: #F7F6F0;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 190px;
}

/* Buttons */

.cookie-button {
    width: 100%;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-button:hover {
    transform: translateY(-1px);
}

.cookie-accept {
    background: #C7F000;
    border: 2px solid #C7F000;
    color: #17221F;
}

.cookie-accept:hover {
    background: #D8FF28;
    border-color: #D8FF28;
}

.cookie-reject {
    background: transparent;
    border: 2px solid #F7F6F0;
    color: #FFFFFF;
}

.cookie-reject:hover {
    background: #303E38;
}

.cookie-text-button {
    background: transparent;
    border: none;
    color: #DDE8D8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* Footer settings link */

.cookie-settings-link {
    margin-left: 18px;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Settings overlay */

.cookie-panel {
    position: fixed;
    z-index: 9999;
    inset: 0;
    padding: 20px;
    background: rgba(10, 18, 15, 0.78);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-panel-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px;
    background: #F7F6F0;
    color: #17221F;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35);
}

.cookie-panel-card h2 {
    margin: 0 35px 12px 0;
    color: #17221F;
    font-size: 26px;
    font-weight: 800;
}

.cookie-panel-card > p {
    margin: 0 0 24px;
    color: #46534D;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-panel-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    color: #17221F;
    font-size: 30px;
    cursor: pointer;
}

/* Consent choices */

.cookie-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 0;
    border-top: 1px solid #D5DCD3;
}

.cookie-choice-row strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.cookie-choice-row small {
    display: block;
    color: #58635D;
    font-size: 12px;
    line-height: 1.5;
}

.cookie-always-on {
    flex-shrink: 0;
    color: #39734B;
    font-size: 12px;
    font-weight: 800;
}

.cookie-choice-row input {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    accent-color: #39734B;
    cursor: pointer;
}

/* Settings buttons */

.cookie-panel-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Keyboard focus */

.cookie-banner button:focus-visible,
.cookie-panel button:focus-visible,
.cookie-panel input:focus-visible,
.cookie-settings-link:focus-visible {
    outline: 3px solid #20AFA0;
    outline-offset: 3px;
}

/* Tablet and mobile */

@media (max-width: 700px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .cookie-banner-copy h2 {
        font-size: 20px;
    }

    .cookie-banner-actions {
        min-width: 0;
    }

    .cookie-panel-card {
        padding: 25px 20px;
    }

    .cookie-panel-card h2 {
        font-size: 23px;
    }
}

@media (max-width: 380px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-banner-copy p {
        font-size: 13px;
    }

    .cookie-button {
        font-size: 12px;
    }
}

