/* ===== COOKIE CONSENT BANNER ===== */

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 24, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-consent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 4px solid var(--primary-orange, #ff8c42);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-consent-banner.active {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px 30px;
}

.cookie-consent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.cookie-consent-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d1810;
    margin: 0;
}

.cookie-consent-header .cookie-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.cookie-consent-description {
    color: #5a3e2b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cookie-consent-description a {
    color: #ff8c42;
    text-decoration: none;
    font-weight: 600;
}

.cookie-consent-description a:hover {
    text-decoration: underline;
}

/* Cookie Options */
.cookie-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5eb, #ffe8d6);
    border-radius: 15px;
    border: 2px solid #ffd7ba;
}

.cookie-option {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 12px;
    border: 2px solid #ffe8d6;
    transition: all 0.2s ease;
}

.cookie-option:hover {
    border-color: #ff8c42;
}

.cookie-option.disabled {
    opacity: 0.7;
}

.cookie-option-toggle {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cookie-option-toggle .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    border-radius: 28px;
    transition: 0.3s;
}

.cookie-option-toggle .slider::before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-option-toggle input:checked + .slider {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

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

.cookie-option-toggle input:disabled + .slider {
    background: #4ecdc4;
    cursor: not-allowed;
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #2d1810;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-option-info h4 .badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
}

.cookie-option-info h4 .badge.required {
    background: #e8faf7;
    color: #44a08d;
}

.cookie-option-info h4 .badge.optional {
    background: #fff5eb;
    color: #ff8c42;
}

.cookie-option-info p {
    font-size: 0.85rem;
    color: #5a3e2b;
    line-height: 1.5;
    margin: 0;
}

/* Action Buttons */
.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept-all {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.cookie-btn-accept-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.cookie-btn-save {
    background: linear-gradient(135deg, #ff8c42, #ff6b35);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.cookie-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.cookie-btn-reject {
    background: white;
    color: #5a3e2b;
    border: 2px solid #ffe8d6;
}

.cookie-btn-reject:hover {
    background: #fff5eb;
    border-color: #ff8c42;
    color: #ff8c42;
}

/* Cookie Settings Link (for footer) */
.cookie-settings-link {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

.cookie-settings-link:hover {
    color: #ff8c42;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        padding: 20px;
    }

    .cookie-consent-header h3 {
        font-size: 1.2rem;
    }

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

    .cookie-btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-option {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-option-toggle {
        align-self: flex-start;
    }
}

/* Small height screens - make banner scrollable */
@media (max-height: 600px) {
    .cookie-consent-banner {
        max-height: 80vh;
    }
    
    .cookie-consent-content {
        padding: 15px 20px;
    }
}
