/* Checkout minimalista (AC509): tokens, barra superior y columna única.
   Compatible con navegadores de 2020 (el piso de functions.js): sin gap en
   flex ni propiedades lógicas (padding-block) ni :has().
   Solo capa visual. Todo cuelga de body.pm-min, que pone únicamente el layout
   main_payments; Pagomóvil y el resto de layouts no se ven afectados. */
.pm-min {
    --pm-ink: #121633;
    --pm-ink-2: #3d4263;
    --pm-muted: #6b7093;
    --pm-line: #e2e5f0;
    --pm-line-2: #eceef6;
    --pm-page: #f6f7fb;
    --pm-brand: #1c2bab;
    --pm-brand-soft: #eef0fd;
    --pm-testing: #d93a3a;
    --pm-ok: #16804d;
    --pm-bad: #c0352b;
    background: #fff;
    color: var(--pm-ink);
    font-family: "Manrope", "Segoe UI", system-ui, sans-serif !important;
}

.pm-min a:focus-visible,
.pm-min summary:focus-visible,
.pm-min .language span:focus-visible {
    outline: 2px solid var(--pm-brand);
    outline-offset: 2px;
}

/* Barra superior: mismo ancho que .pm-main para alinear sus bordes */
.pm-min .pm-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    padding-top: 16px;
}

.pm-min .pm-top-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.pm-min .pm-merchant {
    display: flex;
    align-items: center;
    margin-right: 12px;
    min-width: 0;
    font-weight: 700;
    font-size: 0.9rem;
}

.pm-min .pm-merchant-logo {
    display: flex;
    margin-right: 10px;
    align-items: center;
    flex: none;
    height: 36px;
}

.pm-min .pm-merchant-logo img {
    max-height: 36px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 6px;
}

.pm-min .pm-merchant-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pm-min .pm-top-right {
    display: flex;
    align-items: center;
    flex: none;
    font-size: 0.82rem;
    color: var(--pm-muted);
}

.pm-min .pm-top-right > * + * {
    margin-left: 14px;
}

.pm-min .pm-badge-testing {
    background: var(--pm-testing);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
}

.pm-min .timer {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--pm-ink-2);
}

.pm-min .language {
    display: block;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
}

.pm-min .timer .fa {
    margin-right: 6px;
}

.pm-min .language .flags {
    display: inline-flex;
}

.pm-min .language .flags span + span {
    margin-left: 2px;
}

.pm-min .language .flag-icon {
    margin-right: 5px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(18, 22, 51, 0.08);
    vertical-align: -1px;
}

.pm-min .language .flags span {
    padding: 2px 6px;
    border-radius: 6px;
    color: var(--pm-muted);
}

.pm-min .language .flags .en::after {
    content: none;
}

.pm-min .language .flags span.is-active {
    color: var(--pm-ink);
    box-shadow: 0 0 0 1px var(--pm-line);
}

/* Columna única */
.pm-min .pm-main {
    max-width: 560px;
    padding-top: 32px;
    padding-bottom: 24px;
}

/* Grilla y no flex: su gap funciona en los navegadores de 2020 */
.pm-min .card-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}

.pm-min .card-section .card-left,
.pm-min .card-section .card-right {
    width: 100%;
    margin: 0;
}

@media (max-width: 575.98px) {
    .pm-min .pm-merchant-name {
        display: none;
    }

    .pm-min .pm-top-right > * + * {
        margin-left: 10px;
    }

    .pm-min .pm-main {
        padding-top: 22px;
        padding-bottom: 16px;
    }
}
