/* OPPA RIDE — COOKIE CONSENT */
:root {
    --cookie-yellow: #f4ca46;
    --cookie-dark: #0E1017;
    --cookie-mid: #5f6472;
    --cookie-white: #ffffff;
    --cookie-border: #e5e7eb;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(14, 16, 23, 0.48);
    backdrop-filter: blur(2px);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}
.cookie-consent-overlay.is-visible { opacity: 1; pointer-events: auto; }

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translate(-50%, 20px);
    width: min(1120px, calc(100% - 32px));
    background: var(--cookie-white);
    color: var(--cookie-dark);
    border: 1px solid rgba(14,16,23,.08);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,.22);
    z-index: 9998;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.cookie-consent-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.cookie-consent-inner { display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.cookie-consent-copy { max-width: 650px; }
.cookie-consent-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #8a6a00;
}
.cookie-consent-copy h2 { margin: 0 0 7px; font-size: 24px; line-height: 1.15; font-family: 'DM Sans', system-ui, sans-serif; }
.cookie-consent-copy p { margin: 0; color: var(--cookie-mid); font-size: 14px; line-height: 1.55; }
.cookie-consent-copy a { color: var(--cookie-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; min-width: 370px; }
.cookie-consent-btn {
    appearance: none;
    border: 1px solid var(--cookie-border);
    background: #fff;
    color: var(--cookie-dark);
    border-radius: 999px;
    padding: 11px 16px;
    font: 700 13px/1 'DM Sans', system-ui, sans-serif;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.cookie-consent-btn:hover { transform: translateY(-1px); background: #f7f7f7; }
.cookie-consent-btn--primary { background: var(--cookie-yellow); border-color: var(--cookie-yellow); }
.cookie-consent-btn--primary:hover { background: #e8bb2f; border-color: #e8bb2f; }

.cookie-preferences-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.cookie-preferences-modal.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.cookie-preferences-card {
    position: relative;
    width: min(650px, 100%);
    max-height: min(760px, 90vh);
    overflow: auto;
    background: #fff;
    color: var(--cookie-dark);
    border-radius: 22px;
    box-shadow: 0 28px 90px rgba(0,0,0,.3);
    padding: 28px;
}
.cookie-preferences-close {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--cookie-border);
    background: #fff;
    font-size: 24px;
    cursor: pointer;
}
.cookie-preferences-card h2 { margin: 0 44px 8px 0; font-size: 26px; font-family: 'DM Sans', system-ui, sans-serif; }
.cookie-preferences-intro { margin: 0 0 20px; color: var(--cookie-mid); font-size: 14px; line-height: 1.6; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 18px 0; border-top: 1px solid var(--cookie-border); }
.cookie-category strong { display: block; margin-bottom: 4px; }
.cookie-category p { margin: 0; color: var(--cookie-mid); font-size: 13px; line-height: 1.5; }
.cookie-toggle { position: relative; width: 50px; height: 28px; flex: 0 0 auto; }
.cookie-toggle input { position: absolute; opacity: 0; }
.cookie-toggle span { position: absolute; inset: 0; border-radius: 999px; background: #cfd2d8; cursor: pointer; transition: .2s ease; }
.cookie-toggle span::after { content: ''; position: absolute; width: 22px; height: 22px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: .2s ease; }
.cookie-toggle input:checked + span { background: var(--cookie-yellow); }
.cookie-toggle input:checked + span::after { transform: translateX(22px); }
.cookie-toggle input:disabled + span { opacity: .68; cursor: not-allowed; }
.cookie-preferences-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }

.cookie-settings-trigger {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9000;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(14,16,23,.12);
    background: #fff;
    color: var(--cookie-dark);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    padding: 0;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.cookie-settings-trigger:hover {
    transform: translateY(-1px);
    background: #fffaf0;
    border-color: rgba(244,202,70,.65);
}
.cookie-settings-trigger.is-visible { display: none; }
.cookie-settings-trigger__icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

@media (max-width: 780px) {
    .cookie-consent-banner { bottom: 10px; width: calc(100% - 20px); padding: 18px; border-radius: 16px; }
    .cookie-consent-inner { flex-direction: column; align-items: stretch; gap: 18px; }
    .cookie-consent-actions { min-width: 0; width: 100%; display: grid; grid-template-columns: 1fr; }
    .cookie-consent-btn { width: 100%; }
    .cookie-preferences-card { padding: 22px 18px; border-radius: 18px; }
    .cookie-preferences-footer { flex-direction: column-reverse; }
    .cookie-category { align-items: flex-start; }
    .cookie-settings-trigger { width: 52px; height: 52px; left: 12px; bottom: 12px; }
    .cookie-settings-trigger__icon { width: 30px; height: 30px; }
}

/* Flat UI alignment */
.cookie-banner, .cookie-modal, .cookie-settings, [class*="cookie"] button {
    border-radius: 6px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
