/* Cookie Consent Banner Styles */
.cc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Open Sans', Arial, sans-serif;
}

.cc-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 520px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    padding: 32px;
    box-sizing: border-box;
}

.cc-modal h2 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

.cc-modal p {
    margin: 0 0 24px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.cc-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.cc-btn {
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    text-align: center;
    transition: opacity 0.2s;
    font-family: inherit;
}

.cc-btn:hover {
    opacity: 0.85;
}

.cc-btn-accept {
    background: #2563eb;
    color: #fff;
}

.cc-btn-reject {
    background: #e5e7eb;
    color: #1a1a1a;
}

.cc-btn-customize {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.cc-btn-save {
    background: #2563eb;
    color: #fff;
    margin-top: 16px;
    width: 100%;
    flex: none;
}

/* Customize panel */
.cc-customize-panel {
    display: none;
    margin-top: 20px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.cc-customize-panel.cc-open {
    display: block;
}

.cc-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cc-category:last-child {
    border-bottom: none;
}

.cc-category-info {
    flex: 1;
    padding-right: 16px;
}

.cc-category-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
}

.cc-category-desc {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* Toggle switch via checkbox */
.cc-toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.cc-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.cc-toggle input:checked + .cc-toggle-slider {
    background: #2563eb;
}

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

.cc-toggle input:disabled + .cc-toggle-slider {
    background: #2563eb;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 480px) {
    .cc-modal {
        padding: 24px 20px;
        border-radius: 12px 12px 0 0;
        max-width: 100%;
        width: 100%;
    }

    .cc-overlay {
        align-items: flex-end;
    }

    .cc-buttons {
        flex-direction: column;
    }

    .cc-btn {
        min-width: unset;
    }
}
