/* =========================================================
   HOBBYTIME.DK - COOKIE CONSENT
   ========================================================= */


/* =========================
   COOKIE BANNER
========================= */

.cookie-banner {
    position: fixed;
    z-index: 10000;

    left: 20px;
    right: 20px;
    bottom: 20px;

    max-width: 900px;

    margin: 0 auto;

    padding: 20px;

    background: rgba(255, 248, 218, 0.98);

    border: 1px solid rgba(90, 70, 20, 0.25);
    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(80, 60, 20, 0.22);

    color: #3f351d;
}


.cookie-banner[hidden] {
    display: none;
}


.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 25px;
}


.cookie-banner-text {
    flex: 1;
}


.cookie-banner-text h2 {
    margin: 0 0 8px;

    font-size: 20px;
}


.cookie-banner-text p {
    margin: 5px 0;

    color: #66552d;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================
   COOKIE BUTTONS
========================= */

.cookie-banner-actions {
    display: flex;
    flex-direction: column;

    gap: 8px;

    min-width: 170px;
}


.cookie-button {
    min-height: 42px;

    padding: 10px 16px;

    border-radius: 22px;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s,
        transform 0.2s,
        border-color 0.2s;
}


.cookie-button:hover {
    transform: translateY(-1px);
}


.cookie-button-primary {
    border: 1px solid #c79b27;

    background: #d8ad35;

    color: white;
}


.cookie-button-primary:hover {
    background: #c69d2d;
}


.cookie-button-secondary {
    border: 1px solid rgba(90, 70, 20, 0.3);

    background: rgba(255, 255, 255, 0.7);

    color: #3f351d;
}


.cookie-button-secondary:hover {
    background: white;
}


.cookie-button-settings {
    border: 0;

    background: transparent;

    color: #66552d;
}


.cookie-button-settings:hover {
    background: rgba(216, 173, 53, 0.12);
}


/* =========================
   SETTINGS OVERLAY
========================= */

.cookie-settings {
    position: fixed;
    z-index: 10001;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background: rgba(45, 38, 20, 0.48);
}


.cookie-settings[hidden] {
    display: none;
}


/* =========================
   SETTINGS BOX
========================= */

.cookie-settings-box {
    width: 100%;
    max-width: 620px;

    max-height: 90%;

    overflow-y: auto;

    padding: 25px;

    background: #fff8da;

    border: 1px solid rgba(90, 70, 20, 0.25);
    border-radius: 18px;

    box-shadow:
        0 12px 40px rgba(30, 25, 10, 0.3);

    color: #3f351d;
}


.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 12px;
}


.cookie-settings-header h2 {
    margin: 0;

    font-size: 22px;
}


.cookie-settings-close {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(90, 70, 20, 0.08);

    color: #3f351d;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}


.cookie-settings-close:hover {
    background: rgba(90, 70, 20, 0.15);
}


.cookie-settings-intro {
    margin: 0 0 20px;

    color: #66552d;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================
   COOKIE OPTIONS
========================= */

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 10px;
    padding: 16px;

    background: rgba(255, 255, 255, 0.48);

    border: 1px solid rgba(90, 70, 20, 0.15);
    border-radius: 12px;
}


.cookie-option > div {
    flex: 1;
}


.cookie-option strong {
    display: block;

    margin-bottom: 4px;

    font-size: 15px;
}


.cookie-option p {
    margin: 0;

    color: #66552d;

    font-size: 13px;
    line-height: 1.45;
}


.cookie-option input[type="checkbox"] {
    width: 20px;
    height: 20px;

    flex-shrink: 0;

    accent-color: #d8ad35;

    cursor: pointer;
}


.cookie-always-active {
    flex-shrink: 0;

    padding: 6px 10px;

    border-radius: 14px;

    background: rgba(216, 173, 53, 0.16);

    color: #765f28;

    font-size: 11px;
    font-weight: bold;
}


/* =========================
   SETTINGS ACTIONS
========================= */

.cookie-settings-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 20px;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;

        padding: 16px;

        border-radius: 14px;
    }


    .cookie-banner-content {
        display: block;
    }


    .cookie-banner-actions {
        width: 100%;
        min-width: 0;

        margin-top: 15px;
    }


    .cookie-button {
        width: 100%;

        min-height: 44px;
    }


    .cookie-settings {
        padding: 12px;
    }


    .cookie-settings-box {
        padding: 20px 16px;

        border-radius: 14px;
    }


    .cookie-option {
        align-items: flex-start;

        gap: 12px;

        padding: 14px;
    }


    .cookie-settings-actions {
        display: block;
    }

}

/* =========================
   FOOTER COOKIE BUTTON
========================= */

.footer-cookie-button {
    padding: 0;

    border: 0;

    background: transparent;

    color: inherit;

    font: inherit;

    cursor: pointer;

    text-decoration: underline;
}

.footer-cookie-button:hover {
    opacity: 0.75;
}