/*
 * Maka Pricing Blocks — Booking Popup CSS v2.5.0
 * Cubre: Bookly, Amelia, Calendly inline, Cal.com
 * Maka Solutions SAS — https://makasolutions.com
 */

/* ── Modal genérico ──────────────────────────────────────── */
.mpb-booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.mpb-booking-modal[aria-hidden="false"],
.mpb-booking-modal.is-open { display: flex; }

.mpb-booking-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* ── Content panel ───────────────────────────────────────── */
.mpb-booking-modal__content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    animation: mpb-modal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes mpb-modal-in {
    from { opacity: 0; transform: scale(0.92) translateY(12px); }
    to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

/* ── Botón cerrar ────────────────────────────────────────── */
.mpb-booking-modal__close {
    position: sticky;
    top: 0;
    float: right;
    margin: 10px 10px 0 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.08);
    color: #555;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    z-index: 2;
}
.mpb-booking-modal__close:hover { background: rgba(0, 0, 0, 0.18); }

/* ── Formulario interno ──────────────────────────────────── */
.mpb-booking-service-form {
    padding: 8px 20px 24px;
    clear: both;
}
/* Amelia: quitar padding extra que añade el shortcode */
.mpb-booking-service-form .amelia-container { padding: 0 !important; }
/* Bookly: quitar background que puede chocar */
.mpb-booking-service-form .bookly-div { background: transparent !important; }

/* ── Mobile: sheet desde abajo ───────────────────────────── */
@media (max-width: 680px) {
    .mpb-booking-modal { padding: 0; align-items: flex-end; }
    .mpb-booking-modal__content {
        border-radius: 18px 18px 0 0;
        max-height: 96vh;
        animation: mpb-modal-sheet 0.3s ease both;
    }
    @keyframes mpb-modal-sheet {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
}

/* ── Calendly inline embed ───────────────────────────────── */
.mpb-calendly-inline {
    width: 100%;
    min-height: 630px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
}

/* ── Badge "Requiere Pro" en admin para tabs bloqueados ─────── */
.mpb-btn-type-tab--locked {
    opacity: 0.55;
    cursor: default !important;
    position: relative;
}
.mpb-btn-type-tab--locked::after {
    content: '⚡';
    font-size: 9px;
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #f5a623, #e8392a);
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 14px;
    text-align: center;
}
