/* Cookie Consent Overlay */
.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    max-width: 450px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie-consent-content {
    display: flex;
    flex-direction: column;
}

.cookie-consent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-consent-header h3 {
    color: #3D688E;
    font-family: 'PT Serif', serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.cookie-consent-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.cookie-consent-close:hover {
    background-color: #f3f4f6;
}

.cookie-consent-body {
    padding: 24px;
}

.cookie-consent-content p {
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.cookie-consent-show-more {
    color: #000;
    font-weight: bold;
    font-size: 1rem;
    margin: 16px 0;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-consent-show-more:hover {
    color: #3D688E;
}

.cookie-consent-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid #e5e7eb;
}

.cookie-btn {
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    width: 100%;
    text-align: center;
    font-family: inherit;
}

.cookie-btn-primary {
    background-color: #3D688E;
    color: #fff;
}

.cookie-btn-primary:hover {
    background-color: #2c4f6b;
}

.cookie-btn-secondary {
    background-color: #fff;
    color: #3D688E;
    border: 1px solid #3D688E;
}

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

/* Cookie Settings Modal Styles */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-content {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.cookie-settings-header h3 {
    color: #3D688E;
    font-family: 'PT Serif', serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.cookie-close-btn:hover {
    background-color: #f3f4f6;
}

.cookie-settings-body {
    padding: 0 24px 24px 24px;
}

.cookie-settings-body p {
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

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

.cookie-category-header h4 {
    color: #000;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    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%;
}

.cookie-toggle input:checked + .cookie-slider {
    background-color: #3D688E;
}

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

.cookie-toggle input:disabled + .cookie-slider {
    background-color: #3D688E;
    opacity: 0.7;
}

.cookie-category p {
    color: #000;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.cookie-settings-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-overlay {
        padding: 10px;
        align-items: flex-end;
        justify-content: center;
    }
    
    .cookie-consent-banner {
        max-width: none;
        width: 100%;
        margin: 0;
    }
    
    .cookie-consent-header,
    .cookie-consent-body {
        padding: 20px;
    }
    
    .cookie-consent-buttons {
        padding: 20px;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-settings-content {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}

/* Animation for banner appearance */
.cookie-consent-banner {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation for modal appearance */
.cookie-settings-modal {
    animation: fadeIn 0.3s ease-out;
}

.cookie-settings-content {
    animation: scaleIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}