/**
 * Cookie Notice — Evergreen Strings theme skin.
 *
 * Loaded by ESS_Core::enqueue_front when the Cookie Notice plugin is active.
 */

/* ---------- Keep the banner from hiding page content ---------- */
/* When the banner is showing (before the user accepts), the page should scroll
 * to expose the bottom of the content even with the fixed banner in place. */
body.cookies-not-set {
    padding-bottom: 96px;
}

@media (max-width: 640px) {
    body.cookies-not-set {
        padding-bottom: 200px;
    }
}

/* ---------- Banner container ---------- */

#cookie-notice {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 90 !important;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif !important;
    background: #FFFDF9 !important;
    color: #1A1A16 !important;
    border-top: 1px solid rgba(26, 26, 22, 0.18) !important;
    box-shadow: 0 -8px 24px rgba(26, 26, 22, 0.08) !important;
    line-height: 1.55 !important;
}

#cookie-notice .cookie-notice-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0.875rem 1.25rem !important;
    background: transparent !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

#cookie-notice #cn-notice-text,
#cookie-notice .cn-text-container {
    color: #3B3A33 !important;
    font-size: 0.9375rem !important;
    line-height: 1.55 !important;
    flex: 1 1 320px !important;
    margin: 0 !important;
    display: inline !important;
}

/* ---------- Buttons ---------- */

#cookie-notice #cn-notice-buttons,
#cookie-notice .cn-buttons-container {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
}

#cookie-notice .cn-button,
#cookie-notice #cn-accept-cookie,
#cookie-notice #cn-more-info {
    font-family: "Inter", system-ui, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0 !important;
    padding: 0.5625rem 1rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    text-shadow: none !important;
    text-decoration: none !important;
    min-height: 40px !important;
    line-height: 1.1 !important;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-image: none !important;
}

/* Primary — "Got it" */
#cookie-notice #cn-accept-cookie {
    background: #1A1A16 !important;
    color: #FFFDF9 !important;
    border-color: #1A1A16 !important;
}

#cookie-notice #cn-accept-cookie:hover,
#cookie-notice #cn-accept-cookie:focus {
    background: #3B3A33 !important;
    border-color: #3B3A33 !important;
    color: #FFFDF9 !important;
}

/* Ghost — privacy policy link-as-button */
#cookie-notice #cn-more-info {
    background: transparent !important;
    color: #1A1A16 !important;
    border-color: rgba(26, 26, 22, 0.18) !important;
}

#cookie-notice #cn-more-info:hover,
#cookie-notice #cn-more-info:focus {
    background: #F6F1E8 !important;
    border-color: #1A1A16 !important;
    color: #1A1A16 !important;
}

/* Close "X" */
#cookie-notice .cn-close-icon {
    color: #3B3A33 !important;
    opacity: 0.55 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    right: 0.75rem !important;
}

#cookie-notice .cn-close-icon:hover,
#cookie-notice .cn-close-icon:focus {
    opacity: 1 !important;
}

/* Revoke consent button (when enabled) */
#cookie-revoke {
    font-family: "Inter", system-ui, sans-serif !important;
    background: #FFFDF9 !important;
    color: #1A1A16 !important;
    border: 1px solid rgba(26, 26, 22, 0.18) !important;
    border-radius: 999px !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.875rem !important;
    box-shadow: 0 8px 24px rgba(26, 26, 22, 0.12) !important;
    text-decoration: none !important;
}

#cookie-revoke:hover,
#cookie-revoke:focus {
    background: #F6F1E8 !important;
    color: #8F6738 !important;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
    #cookie-notice .cookie-notice-container {
        padding: 0.875rem 1rem 1rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    #cookie-notice #cn-notice-text {
        flex: none !important;
        font-size: 0.875rem !important;
    }

    #cookie-notice #cn-notice-buttons {
        width: 100% !important;
        flex-direction: row !important;
    }

    #cookie-notice .cn-button,
    #cookie-notice #cn-accept-cookie,
    #cookie-notice #cn-more-info {
        flex: 1 1 auto !important;
    }
}
