/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    border-top: 3px solid #2d7a8a;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 25px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

.cookie-banner .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e5a6b;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #2d7a8a 0%, #1e5a6b 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cookie-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

.cookie-banner-text p {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: #2d7a8a;
    text-decoration: none;
    font-weight: 500;
}

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

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 100px;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #2d7a8a 0%, #1e5a6b 100%);
    color: white;
}

.cookie-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(45, 122, 138, 0.3);
}

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

.cookie-btn-reject:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

.cookie-btn-customize {
    background: white;
    color: #2d7a8a;
    border: 2px solid #2d7a8a;
}

.cookie-btn-customize:hover {
    background: #2d7a8a;
    color: white;
}

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

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e0f2fe;
}

.cookie-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e5a6b;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-modal-header .cookie-icon {
    width: 32px;
    height: 32px;
}

.cookie-modal-header .cookie-icon svg {
    width: 18px;
    height: 18px;
}

.cookie-modal-header p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fbff 0%, #f0f9ff 100%);
    border-radius: 12px;
    border: 1px solid #e0f2fe;
}

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

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e5a6b;
    margin: 0;
}

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

.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: #ccc;
    transition: 0.3s;
    border-radius: 26px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #2d7a8a 0%, #1e5a6b 100%);
}

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

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

.cookie-toggle input:disabled + .cookie-toggle-slider:before {
    background-color: #6c757d;
}

.cookie-category-description {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-category.essential .cookie-category-title::after {
    content: " (Required)";
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.cookie-modal-footer {
    padding: 20px 30px 30px;
    border-top: 1px solid #e0f2fe;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-modal-footer .cookie-btn {
    min-width: 120px;
}

.cookie-btn-save {
    background: linear-gradient(135deg, #2d7a8a 0%, #1e5a6b 100%);
    color: white;
}

.cookie-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(45, 122, 138, 0.3);
}

.cookie-btn-cancel {
    background: #f8f9fa;
    color: #4a5568;
    border: 2px solid #e0e6ed;
}

.cookie-btn-cancel:hover {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    
    .cookie-banner-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-modal-footer {
        flex-direction: column;
    }
    
    .cookie-modal-footer .cookie-btn {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 15px 0;
    }
    
    .cookie-banner .container {
        padding: 0 15px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .cookie-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-category-title {
        font-size: 1rem;
    }
}