.cmp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.50);
    z-index: 99998;
    display: none;
}
.cmp-overlay.is-open {
    display: block;
}

.cmp-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 960px;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 24px;
    box-shadow: 0 -4px 28px rgba(0,0,0,0.18);
    z-index: 99999;
    display: none;
    border: 1px solid #e5e7eb;
    font-family: 'Gotham Book', 'Montserrat', Helvetica, Arial, sans-serif;
}
.cmp-banner.is-open {
    display: block;
}
.cmp-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.cmp-banner-text {
    max-width: 70%;
    font-size: 14px;
    color: #374151;
    line-height: 1.45;
}
.cmp-banner-title {
    font-weight: 800;
    color: #22377b;
    font-size: 16px;
    margin-bottom: 6px;
    font-family: 'Gotham Bold', 'Montserrat', Helvetica, Arial, sans-serif;
}
.cmp-banner-text a {
    color: #22377b;
    text-decoration: underline;
    font-weight: 600;
}
.cmp-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cmp-btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Gotham Bold', 'Montserrat', Helvetica, Arial, sans-serif;
    border: 1px solid #22377b;
    transition: background 0.15s, color 0.15s;
}
.cmp-btn-primary {
    background: #22377b;
    color: #fff;
    border-color: #22377b;
}
.cmp-btn-primary:hover {
    background: #00489e;
}
.cmp-btn-outline {
    background: #fff;
    color: #22377b;
}
.cmp-btn-outline:hover {
    background: #f0f3fa;
}

.cmp-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 640px;
    max-height: 80vh;
    background: #fff;
    border-radius: 14px;
    z-index: 99999;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    font-family: 'Gotham Book', 'Montserrat', Helvetica, Arial, sans-serif;
}
.cmp-modal.is-open {
    display: flex;
}
.cmp-modal-header {
    padding: 20px 24px 0;
    flex-shrink: 0;
}
.cmp-modal-title {
    font-size: 20px;
    font-weight: 800;
    color: #22377b;
    margin: 0 0 8px;
    font-family: 'Gotham Bold', 'Montserrat', Helvetica, Arial, sans-serif;
}
.cmp-modal-body-text {
    font-size: 14px;
    color: #363636;
    line-height: 1.45;
    margin: 0 0 16px;
}
.cmp-modal-body-text a {
    color: #22377b;
    text-decoration: underline;
    font-weight: 600;
}
.cmp-modal-categories {
    overflow-y: auto;
    padding: 0 24px;
    flex: 1;
    min-height: 0;
}
.cmp-category {
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 0;
}
.cmp-category:last-child {
    border-bottom: none;
}
.cmp-category-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.cmp-category-name {
    font-size: 15px;
    font-weight: 800;
    color: #22377b;
    font-family: 'Gotham Bold', 'Montserrat', Helvetica, Arial, sans-serif;
}
.cmp-category-always {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
    font-weight: 400;
}
.cmp-category-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cmp-toggle {
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: #ccc;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
    padding: 0;
}
.cmp-toggle[aria-checked="true"] {
    background: #22377b;
}
.cmp-toggle:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.cmp-toggle-knob {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
.cmp-toggle[aria-checked="true"] .cmp-toggle-knob {
    transform: translateX(20px);
}
.cmp-category-arrow {
    font-size: 12px;
    color: #888;
    transition: transform 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.cmp-category-arrow.is-open {
    transform: rotate(180deg);
}
.cmp-category-detail {
    display: none;
    padding: 10px 0 0;
}
.cmp-category-detail.is-open {
    display: block;
}
.cmp-cookie-item {
    background: #f9f9fb;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #363636;
}
.cmp-cookie-item strong {
    color: #22377b;
}
.cmp-modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .cmp-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    .cmp-banner-text {
        max-width: 100%;
    }
    .cmp-banner-actions {
        flex-direction: column;
    }
    .cmp-banner-actions .cmp-btn {
        width: 100%;
        text-align: center;
    }
    .cmp-modal-footer {
        flex-direction: column;
    }
}
