/* ═══════════════════════════════════════════════════════════════
   Cookie Consent Banner & Modal Styles
   ═══════════════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e8e5e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.cookie-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: #fef3e2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text p {
    font-size: 13px;
    line-height: 1.5;
    color: #52606d;
    margin: 0;
}

.cookie-text a {
    color: #0f2f4a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #0f2f4a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}
.cookie-btn-accept:hover {
    background: #1a4a6e;
    transform: translateY(-1px);
}

.cookie-btn-manage {
    background: transparent;
    color: #52606d;
    border: 1px solid #e8e5e0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}
.cookie-btn-manage:hover {
    background: #f8f7f4;
    border-color: #d4d0cb;
}

.cookie-btn-reject {
    background: transparent;
    color: #6b7b8d;
    border: none;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    font-family: inherit;
}
.cookie-btn-reject:hover {
    color: #23313d;
}

/* ─── Modal ─── */

.cookie-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cookie-modal-overlay.active {
    display: flex;
}

.cookie-modal {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: cookieFadeIn 0.2s ease;
}

@keyframes cookieFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.cookie-modal h2 {
    font-size: 20px;
    font-weight: 800;
    color: #0f2f4a;
    margin-bottom: 6px;
}

.cookie-modal-desc {
    font-size: 13px;
    color: #6b7b8d;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-category {
    border: 1px solid #e8e5e0;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-category-info h3 {
    font-size: 14px;
    font-weight: 700;
    color: #23313d;
    margin: 0;
}

.cookie-category-info p {
    font-size: 11px;
    color: #6b7b8d;
    margin-top: 2px;
}

.cookie-always-on {
    font-size: 10px;
    font-weight: 700;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    display: inline-block;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;
    background: #d4d0cb;
    border-radius: 24px;
    cursor: pointer;
    transition: 0.2s;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.2s;
}

.cookie-toggle input:checked + .cookie-slider {
    background: #22c55e;
}

.cookie-toggle input:checked + .cookie-slider::before {
    transform: translateX(20px);
}

.cookie-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cookie-modal-actions .cookie-btn-accept {
    flex: 1;
}

.cookie-modal-actions .cookie-btn-manage {
    flex: 1;
}

/* ─── Mobile Responsive ─── */
@media (max-width: 640px) {
    .cookie-banner {
        padding: 16px;
    }

    .cookie-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cookie-btn-accept,
    .cookie-btn-manage {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .cookie-btn-reject {
        text-align: center;
        padding: 8px;
    }
}
