/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2D3748;
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: white;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #E2E8F0;
    line-height: 1.4;
}

.cookie-policy-link {
    color: #F59E0B;
    text-decoration: underline;
}

.cookie-policy-link:hover {
    color: #D97706;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #F59E0B;
    color: white;
}

.cookie-btn-primary:hover {
    background: #D97706;
}

.cookie-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #4A5568;
}

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

.cookie-btn-text {
    background: transparent;
    color: #E2E8F0;
    text-decoration: underline;
}

.cookie-btn-text:hover {
    color: white;
}

/* Cookie Modal Styles */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    padding: 25px 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #4F46E5;
    font-size: 1.5rem;
}

.cookie-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748B;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close:hover {
    color: #2D3748;
}

.cookie-modal-body {
    padding: 0 25px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category h4 {
    margin: 0;
    color: #4F46E5;
    font-size: 1.1rem;
}

.cookie-category p {
    margin: 0;
    color: #64748B;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Cookie Switch Styles */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #CBD5E0;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .cookie-slider {
    background-color: #4F46E5;
}

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

input:disabled + .cookie-slider {
    background-color: #4F46E5;
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 20px 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #E2E8F0;
}

/* Cookie Notification */
.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4F46E5;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.cookie-notification.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .cookie-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .cookie-notification.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-text h4 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.85rem;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-buttons {
        gap: 10px;
    }
}