body.feasycc-locked {
    overflow: hidden;
}

#feasycc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9998;
    display: none;
}

#feasycc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px 24px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #222;
    display: none;
}

#feasycc-banner .feasycc-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.feasycc-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.feasycc-text {
    margin: 0 0 8px;
}

.feasycc-link {
    display: inline-block;
    margin-bottom: 12px;
    text-decoration: underline;
    color: #0050ff;
}

/* Botones principales (nivel 1) */
.feasycc-main-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.feasycc-main-actions {
    display: flex;
    gap: 8px;
}

/* Panel de preferencias plegable */
.feasycc-preferences {
    display: none;
    margin-top: 8px;
}

.feasycc-preferences-open {
    display: block;
}

.feasycc-preferences-inner {
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

.feasycc-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .feasycc-categories {
        grid-template-columns: 1fr;
    }

    .feasycc-main-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .feasycc-main-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.feasycc-category {
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 12px;
}

.feasycc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.feasycc-cat-title {
    font-weight: 600;
}

.feasycc-cat-badge {
    font-size: 11px;
    background: #e0e0e0;
    padding: 2px 6px;
    border-radius: 999px;
}

.feasycc-cat-desc {
    margin: 0;
    font-size: 13px;
}

/* Switch (tipo iOS) */
.feasycc-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}

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

.feasycc-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.2s;
    border-radius: 999px;
}

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

.feasycc-switch input:checked + .feasycc-slider {
    background-color: #0050ff;
}

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

/* Botones genéricos */
.feasycc-buttons,
.feasycc-buttons-preferences {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.feasycc-btn {
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 6px 14px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.feasycc-btn-primary {
    background: #0050ff;
    color: #fff;
    border-color: #0050ff;
}

.feasycc-btn-primary:hover {
    background: #003ecc;
    border-color: #003ecc;
}

.feasycc-btn-secondary {
    background: #e0e0e0;
    color: #222;
    border-color: #d0d0d0;
}

.feasycc-btn-secondary:hover {
    background: #d5d5d5;
}

.feasycc-btn-outline {
    background: #ffffff;
    color: #0050ff;
    border-color: #0050ff;
}

.feasycc-btn-outline:hover {
    background: #eaf0ff;
}
