/* Cookie Consent Styles */
.cookie-consent-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cookie-consent-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideInUp 0.4s ease-out;
    border-top: 4px solid #1d608f;
}

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

.cookie-consent-box h3 {
    color: #1d608f;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px 0;
    padding-top: 0;
    letter-spacing: -0.3px;
}

.cookie-consent-box p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

.cookie-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cookie-links a {
    color: #1d608f;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border-bottom: 1px solid transparent;
}

.cookie-links a:hover {
    color: #154a6f;
    border-bottom-color: #1d608f;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 11px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    text-transform: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-customize {
    background: transparent;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.cookie-btn-customize:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #2d3748;
}

.cookie-btn-reject {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.cookie-btn-reject:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    color: #2d3748;
}

.cookie-btn-accept {
    background: #1d608f;
    color: #fff;
    border: 2px solid #1d608f;
    box-shadow: 0 2px 8px rgba(29, 96, 143, 0.2);
}

.cookie-btn-accept:hover {
    background: #154a6f;
    border-color: #154a6f;
    box-shadow: 0 4px 12px rgba(29, 96, 143, 0.3);
    transform: translateY(-1px);
}

/* Customize Panel */
.cookie-customize-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    max-width: 440px;
    max-height: 600px;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    animation: slideInUp 0.4s ease-out;
    border-top: 4px solid #1d608f;
}

.cookie-customize-panel h3 {
    color: #1d608f;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    text-align: center;
    letter-spacing: -0.3px;
}

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

.cookie-category:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

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

.cookie-category-icon {
    font-size: 20px;
    filter: grayscale(0.3);
}

.cookie-category-title {
    color: #2d3748;
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.cookie-toggle {
    position: relative;
    width: 48px;
    height: 24px;
}

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

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

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #1d608f;
}

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

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

.cookie-category-description {
    color: #718096;
    font-size: 13px;
    line-height: 1.5;
    margin-left: 32px;
}

.cookie-save-btn {
    width: 100%;
    padding: 13px;
    background: #1d608f;
    color: #fff;
    border: 2px solid #1d608f;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: 0 2px 8px rgba(29, 96, 143, 0.2);
}

.cookie-save-btn:hover {
    background: #154a6f;
    border-color: #154a6f;
    box-shadow: 0 4px 12px rgba(29, 96, 143, 0.3);
    transform: translateY(-1px);
}

/* Scrollbar customization */
.cookie-customize-panel::-webkit-scrollbar {
    width: 8px;
}

.cookie-customize-panel::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.cookie-customize-panel::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.cookie-customize-panel::-webkit-scrollbar-thumb:hover {
    background: #1d608f;
}

/* Hidden state */
.cookie-consent-hidden {
    display: none;
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-consent-wrapper {
        bottom: 0;
        right: 0;
        left: 0;
        padding: 0;
    }
    
    .cookie-consent-box,
    .cookie-customize-panel {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 24px 20px;
        max-height: 85vh;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .cookie-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-consent-box h3,
    .cookie-customize-panel h3 {
        font-size: 18px;
    }
}
