/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.cookie-banner-text h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: white;
}

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

.cookie-banner-text a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.cookie-btn-accept {
    background-color: #27ae60;
    color: white;
}

.cookie-btn-accept:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: #c0392b;
    color: white;
}

.cookie-btn-reject:hover {
    background-color: #a93226;
    transform: translateY(-1px);
}

.cookie-btn-customize {
    background-color: transparent;
    color: #f39c12;
    border: 1px solid #f39c12;
}

.cookie-btn-customize:hover {
    background-color: #f39c12;
    color: #2c3e50;
    transform: translateY(-1px);
}

/* Cookie Customization Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    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: 12px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.cookie-modal-header h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 400;
}

.cookie-modal-header p {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ecf0f1;
    border-radius: 8px;
    background: #f8f9fa;
}

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

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2c3e50;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    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: #bdc3c7;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-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-toggle-slider {
    background-color: #27ae60;
}

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

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

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

.cookie-category.essential {
    background: #e8f5e8;
    border-color: #27ae60;
}

.cookie-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
    flex-wrap: wrap;
}

.cookie-modal-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cookie-modal-btn-save {
    background-color: #27ae60;
    color: white;
}

.cookie-modal-btn-save:hover {
    background-color: #229954;
    transform: translateY(-1px);
}

.cookie-modal-btn-cancel {
    background-color: #95a5a6;
    color: white;
}

.cookie-modal-btn-cancel:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-banner-text {
        min-width: auto;
        text-align: center;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        gap: 10px;
    }
    
    .cookie-btn {
        flex: 1;
        min-width: 100px;
        padding: 12px 16px;
    }
    
    .cookie-modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
    }
    
    .cookie-modal-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 12px;
    }
    
    .cookie-banner-text h3 {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.9rem;
    }
    
    .cookie-btn {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
    }
}

/* Ensure banner doesn't interfere with page content */
body.cookie-banner-visible {
    padding-bottom: 120px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 140px;
    }
}

@media (max-width: 480px) {
    body.cookie-banner-visible {
        padding-bottom: 160px;
    }
}