/* Banner base */
.ance-cc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    padding: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-sizing: border-box;
}

.ance-cc-banner.ance-cc-visible {
    transform: translateY(0);
}

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

.ance-cc-banner-text {
    flex: 1 1 260px;
}

.ance-cc-message {
    margin: 0 0 6px 0;
}

.ance-cc-read-more {
    color: #fff;
    text-decoration: underline;
    font-weight: 500;
}

.ance-cc-banner-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* Bottoni */
.ance-cc-btn {
    border-radius: 4px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.ance-cc-btn-primary {
    background: #0073aa;
    color: #fff;
}

.ance-cc-btn-secondary {
    background: #444;
    color: #fff;
}

.ance-cc-btn-outline {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

/* Modal */
.ance-cc-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
}

.ance-cc-modal-visible {
    display: block;
}

.ance-cc-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ance-cc-modal-dialog {
    position: relative;
    max-width: 640px;
    margin: 60px auto;
    background: #fff;
    color: #222;
    border-radius: 6px;
    padding: 20px 24px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.ance-cc-modal-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

.ance-cc-modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

.ance-cc-modal-description {
    margin-top: 0;
    margin-bottom: 14px;
}

.ance-cc-category {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.ance-cc-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ance-cc-category-title {
    font-weight: 600;
}

.ance-cc-category-status-fixed {
    font-size: 13px;
    color: #666;
}

.ance-cc-category-desc {
    margin: 6px 0 0 0;
    font-size: 13px;
    color: #555;
}

.ance-cc-modal-footer {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* Switch */
.ance-cc-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 20px;
}

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

.ance-cc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: .2s;
    border-radius: 20px;
}

.ance-cc-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: .2s;
    border-radius: 50%;
}

.ance-cc-switch input:checked + .ance-cc-slider {
    background-color: #0073aa;
}

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

/* Responsive */
@media (max-width: 600px) {
    .ance-cc-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ance-cc-banner-buttons {
        width: 100%;
        justify-content: flex-start;
    }
}
