/* Overlay */
.mcc-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* Pop-up */
.mcc-popup {
    position: relative;
    width: 60%;
    max-width: 800px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: #333;
}

.mcc-popup h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #00ccff;
}

/* Botón de cierre */
.mcc-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
}

.mcc-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Contenido */
.mcc-content p {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.6;
}

.mcc-content a {
    color: #00ccff;
    text-decoration: none;
}

.mcc-content a:hover {
    text-decoration: underline;
}

/* Acordeón */
.mcc-accordion {
    margin-bottom: 30px;
}

.mcc-accordion-item {
    border-bottom: 1px solid #e6e6e6;
}

.mcc-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.mcc-accordion-header:hover {
    background: #f5f5f5;
}

.mcc-accordion-toggle {
    margin-right: 10px;
    transition: transform 0.3s;
}

.mcc-accordion-toggle.active {
    transform: rotate(90deg);
}

.mcc-accordion-content {
    display: none;
    padding: 0 0 15px 20px;
    font-size: 14px;
    color: #666;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ccff #e6e6e6;
}

.mcc-accordion-content::-webkit-scrollbar {
    width: 8px;
}

.mcc-accordion-content::-webkit-scrollbar-track {
    background: #e6e6e6;
    border-radius: 4px;
}

.mcc-accordion-content::-webkit-scrollbar-thumb {
    background: #00ccff;
    border-radius: 4px;
}

.mcc-accordion-content::-webkit-scrollbar-thumb:hover {
    background: #00aacc;
}

/* Estilo del switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

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

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e6e6e6;
    transition: 0.3s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background: #00ccff;
}

input:checked + .slider:before {
    transform: translateX(30px);
}

input:disabled + .slider {
    background: #cccccc;
    cursor: not-allowed;
}

/* Botones de acción */
.mcc-actions {
    display: flex;
    gap: 15px;
}

.mcc-action-btn {
    flex: 1;
    padding: 12px;
    background: #00ccff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mcc-action-btn:hover {
    background: #00aacc;
    transform: translateY(-2px);
}

.mcc-save-btn {
    background: #0088cc;
}

.mcc-save-btn:hover {
    background: #006699;
}

/* Powered by */
.mcc-powered-by {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

/* Círculo flotante */
.mcc-floating-circle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #00ccff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    z-index: 9999;
}

.mcc-floating-circle:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

/* Cuadro de diálogo */
.mcc-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.mcc-dialog {
    position: absolute;
    bottom: 100px;
    left: 100px;
    width: 300px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: #333;
}

.mcc-dialog p {
    margin: 0 0 15px;
    font-size: 14px;
}

.mcc-dialog strong {
    display: block;
    font-size: 16px;
    color: #00ccff;
}

.mcc-dialog a {
    color: #00ccff;
    text-decoration: none;
}

.mcc-dialog a:hover {
    text-decoration: underline;
}

.mcc-dialog-actions {
    display: flex;
    gap: 10px;
}

.mcc-dialog-btn {
    flex: 1;
    padding: 10px;
    background: #00ccff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mcc-dialog-btn:hover {
    background: #00aacc;
    transform: translateY(-2px);
}

/* Estilos para la tabla del acordeón "Analítica" */
.cky-accordion-body {
    margin-top: 10px;
}

.cky-audit-table {
    color: #212121;
    border: 1px solid #ebebeb;
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 8px;
}

.cky-cookie-des-table {
    list-style: none;
    margin: 0 0 10px 0;
    padding: 0;
}

.cky-cookie-des-table li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #ebebeb;
}

.cky-cookie-des-table li:last-child {
    border-bottom: none;
}

.cky-cookie-des-table li div:first-child {
    font-weight: bold;
    width: 30%;
    color: #00ccff;
}

.cky-cookie-des-table li div:last-child {
    width: 65%;
    color: #666;
}

/* Media Queries para Tablet (768px - 1023px) */
@media (max-width: 1023px) {
    .mcc-popup {
        width: 80%;
        padding: 20px;
    }

    .mcc-popup h2 {
        font-size: 20px;
    }

    .mcc-content p {
        font-size: 14px;
    }

    .mcc-accordion-header {
        padding: 10px 0;
    }

    .mcc-accordion-content {
        font-size: 13px;
        max-height: 350px;
    }

    .mcc-actions {
        gap: 10px;
        flex-direction: column;
    }

    .mcc-action-btn {
        font-size: 14px;
        padding: 10px;
    }

    .mcc-floating-circle {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .mcc-dialog {
        width: 280px;
        bottom: 80px;
        left: 80px;
        padding: 15px;
    }

    .mcc-dialog p {
        font-size: 13px;
    }

    .mcc-dialog strong {
        font-size: 15px;
    }

    .mcc-dialog-btn {
        font-size: 13px;
        padding: 8px;
    }

    .cky-cookie-des-table li div:first-child {
        width: 35%;
    }

    .cky-cookie-des-table li div:last-child {
        width: 60%;
    }
}

/* Media Queries para Móvil (hasta 767px) */
@media (max-width: 767px) {
    .mcc-overlay {
        align-items: center;
        justify-content: center;
    }

    .mcc-popup {
        width: 85%;
        max-width: 320px;
        padding: 20px;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        max-height: 80vh;
        overflow-y: auto;
    }

    .mcc-popup h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .mcc-close {
        font-size: 24px;
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #00ccff;
        color: #fff;
        border-radius: 50%;
        padding: 0;
    }

    .mcc-close:hover {
        background: #00aacc;
        transform: rotate(90deg);
    }

    .mcc-content p {
        font-size: 14px;
        line-height: 1.5;
    }

    .mcc-accordion {
        margin-bottom: 20px;
    }

    .mcc-accordion-header {
        padding: 10px 0;
        flex-wrap: nowrap;
    }

    .mcc-accordion-header span:nth-child(2) {
        flex: 1;
        margin-right: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mcc-accordion-toggle {
        margin-right: 8px;
    }

    .mcc-accordion-content {
        font-size: 13px;
        padding: 0 0 10px 15px;
        max-height: 50vh;
    }

    .switch {
        width: 48px;
        height: 24px;
    }

    .slider {
        border-radius: 24px;
    }

    .slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(24px);
    }

    .mcc-actions {
        gap: 10px;
        flex-direction: column;
    }

    .mcc-action-btn {
        font-size: 14px;
        padding: 10px;
        border-radius: 8px;
    }

    .mcc-powered-by {
        font-size: 10px;
        margin-top: 10px;
    }

    .mcc-floating-circle {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .mcc-dialog-overlay {
        align-items: center;
        justify-content: center;
    }

    .mcc-dialog {
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 374px; /* Ajustado según tu configuración */
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        color: #333;
    }

    .mcc-dialog p {
        font-size: 13px;
    }

    .mcc-dialog strong {
        font-size: 15px;
    }

    .mcc-dialog-actions {
        gap: 8px;
        flex-direction: column;
    }

    .mcc-dialog-btn {
        font-size: 13px;
        padding: 8px;
    }

    .cky-cookie-des-table li {
        flex-direction: column;
        padding: 6px 0;
    }

    .cky-cookie-des-table li div:first-child {
        width: 100%;
        margin-bottom: 4px;
        color: #00ccff;
    }

    .cky-cookie-des-table li div:last-child {
        width: 100%;
        font-size: 12px;
    }
}