/* ─── Cookie Consent Banner ─────────────────────────────── */

.cookie-consent-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.cookie-consent-container {
    width: 100%;
    max-width: 640px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    animation: cookieSlideUp 0.4s ease-out;
    overflow: hidden;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-consent-content {
    padding: 1.5rem;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cookie-consent-header .cookie-icon {
    width: 22px;
    height: 22px;
    color: #8bc53f;
    flex-shrink: 0;
}

.cookie-consent-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.cookie-consent-text {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cookie-consent-link {
    color: #8bc53f;
    text-decoration: underline;
    font-weight: 500;
}

.cookie-consent-link:hover {
    color: #6ea030;
}

/* ─── Options ──────────────────────────── */

.cookie-consent-options {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #eee;
}

.cookie-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.cookie-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
}

.cookie-option-desc {
    font-size: 0.75rem;
    color: #888;
}

/* ─── Toggle Switch ──────────────────────── */

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.cookie-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    inset: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.25s ease;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #8bc53f;
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

/* ─── Actions ──────────────────────── */

.cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.625rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.cookie-btn--primary {
    background: #8bc53f;
    color: #fff;
}

.cookie-btn--primary:hover {
    background: #7ab535;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 197, 63, 0.35);
}

.cookie-btn--secondary {
    background: #f0f0f0;
    color: #555;
}

.cookie-btn--secondary:hover {
    background: #e5e5e5;
}

.cookie-btn--outline {
    background: transparent;
    color: #8bc53f;
    border: 1.5px solid #8bc53f;
}

.cookie-btn--outline:hover {
    background: rgba(139, 197, 63, 0.08);
}

/* ─── Responsive ──────────────────────── */

@media (max-width: 480px) {
    .cookie-consent-content {
        padding: 1.25rem 1rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-btn {
        min-width: unset;
    }
}
