/* Cookie Consent - Self-contained styles */
.cc-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2147483647 !important;
    display: none;
}

.cc-overlay.is-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.cc-banner {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2a2a2a;
    color: white;
    padding: 1rem 2rem;
    z-index: 2147483647 !important;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    display: none;
}

.cc-banner.is-open {
    display: block !important;
}

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

.cc-message {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cc-message i {
    color: #f39c12;
    font-size: 1.2rem;
}

.cc-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cc-modal {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cc-modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cc-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2a2a2a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.cc-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.cc-close:hover {
    background: #ecf0f1;
    color: #2a2a2a;
}

.cc-modal-body {
    padding: 1.5rem;
}

.cc-category {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cc-category:last-child {
    margin-bottom: 0;
}

.cc-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

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

.cc-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #bdc3c7;
    transition: .3s;
    border-radius: 24px;
}

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

.cc-switch input:checked + .cc-switch-slider {
    background-color: #27ae60;
}

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

.cc-switch input:disabled + .cc-switch-slider {
    background-color: #27ae60;
    cursor: not-allowed;
}

.cc-category-info {
    flex: 1;
}

.cc-category-title {
    font-weight: 600;
    color: #2a2a2a;
    margin: 0 0 0.25rem 0;
    font-size: 0.95rem;
}

.cc-category-desc {
    color: #7f8c8d;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.cc-modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cc-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cc-btn-primary {
    background: #27ae60;
    color: white;
}

.cc-btn-primary:hover {
    background: #229954;
}

.cc-btn-secondary {
    background: #95a5a6;
    color: white;
}

.cc-btn-secondary:hover {
    background: #7f8c8d;
}

.cc-btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
}

.cc-btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

body.cc-locked {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .cc-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .cc-message {
        min-width: auto;
        justify-content: center;
    }
    
    .cc-buttons {
        justify-content: center;
    }
    
    .cc-btn {
        flex: 1;
        justify-content: center;
    }
    
    .cc-modal-footer {
        flex-direction: column;
    }
}