/* ==========================================================
 * CKS QUICK - FRONTEND
 *
 * Solo estilos propios del Quick.
 * El grid principal continúa utilizando el CSS del theme.
 * ========================================================== */


/* ==========================================================
 * ICONO INFORMACIÓN
 * ========================================================== */

.quick-info-trigger {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 30;

    width: 30px;
    height: 30px;

    margin: 0;
    padding: 4px;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, .3);
    color: #fff;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background-color .18s ease,
        transform .18s ease;
}

.quick-info-trigger:hover,
.quick-info-trigger:focus-visible {
    background: rgba(0, 0, 0, .78);
    /*transform: scale(1.05);*/
    outline: none;
}

.quick-info-trigger svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #fff;
}


/* ==========================================================
 * MODAL
 * ========================================================== */

.quick-info-modal {
    position: fixed;
    inset: 0;

    z-index: 999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;
}

.quick-info-modal.is-open {
    display: flex;
}


/* Fondo */

.quick-info-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .62);
}


/* Caja */

.quick-info-dialog {
    position: relative;
    z-index: 1;

    width: min(100%, 430px);

    max-height:
        min(720px,
            calc(100vh - 40px));

    overflow: auto;

    box-sizing: border-box;

    padding: 24px;

    border-radius: 16px;

    background: #fff;
    color: #1d2327;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .28);
}


/* ==========================================================
 * CERRAR
 * ========================================================== */

.quick-info-close {
    position: absolute;

    top: 10px;
    right: 10px;

    width: 36px;
    height: 36px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #000;

    cursor: pointer;

    font-size: 27px;
    line-height: 36px;

    text-align: center;
}

.quick-info-close svg {
    width: 100%;
    height: 100%;
}

.quick-info-close:hover,
.quick-info-close:focus-visible {
    background: #f0f0f1;
    color: #000;
    outline: none;
}


/* ==========================================================
 * TÍTULO
 * ========================================================== */

.quick-info-title {
    margin:
        0 42px 20px 0;

    padding: 0;

    font-size: 24px;
    line-height: 1.2;

    font-weight: 700;
}


/* ==========================================================
 * FILAS
 * ========================================================== */

.quick-info-list {
    margin: 0;
    padding: 0;
}

.quick-info-row {
    margin: 0;

    padding: 13px 0;

    border-bottom:
        1px solid #ececec;
}

.quick-info-row:last-child {
    border-bottom: 0;
}


/* Etiqueta */

.quick-info-label {
    display: block;

    margin-bottom: 5px;

    font-size: 11px;
    line-height: 1.3;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;

    color: #777;
}


/* Valor */

.quick-info-value {
    display: block;

    font-size: 16px;
    line-height: 1.45;

    font-weight: 500;
}


/* ==========================================================
 * SERVICIOS / CARACTERÍSTICAS
 * ========================================================== */

.quick-info-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;
}

.quick-info-tag {
    display: inline-flex;

    align-items: center;

    padding:
        6px 10px;

    border-radius: 999px;

    background: #f1f1f1;

    font-size: 13px;
    line-height: 1.2;
}


/* ==========================================================
 * BODY
 * ========================================================== */

body.cks-quick-modal-open {
    overflow: hidden;
}


/* ==========================================================
 * MOBILE
 * ========================================================== */

@media (max-width: 480px) {

    .quick-info-modal {
        padding: 12px;
    }

    .quick-info-dialog {
        max-height:
            calc(100vh - 24px);

        padding:
            21px 18px;

        border-radius: 14px;
    }

    .quick-info-title {
        font-size: 21px;

        margin-bottom: 15px;
    }
}