.er-checkout,
.er-checkout * { box-sizing: border-box; }

.er-checkout {
    --blue: #2563eb;
    --ink: #374151;
    --muted: #6b7280;
    --line: #d1d5db;
    max-width: 1180px;
    margin: 24px auto;
    padding: 16px;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.er-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 52px; align-items: start; }
.er-form-column { min-width: 0; }
.er-checkout h1 { margin: 24px 0 6px; color: #374151; font-size: 30px; font-weight: 500; }
.er-checkout h2, .er-summary h2 { margin: 0 0 18px; color: #374151; font-size: 23px; font-weight: 500; }
.er-note { margin: 0 0 28px; color: var(--muted); }
.er-section { margin: 0 0 30px; }

.er-field { display: block; margin-top: 15px; font-size: 16px; }
.er-field input[type="text"],
.er-field input[type="email"],
.er-field input[type="tel"],
.er-field textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 13px 11px;
    border: 1px solid #4b5563 !important;
    border-radius: 5px !important;
    color: var(--ink);
    background: #fff !important;
    font-size: 16px;
    outline: none;
    box-shadow: none !important;
    appearance: none;
}

.er-field input[type="text"],
.er-field input[type="email"],
.er-field input[type="tel"] { height: 52px !important; min-height: 52px !important; }
.er-field textarea { min-height: 80px; resize: vertical; }
.er-field input:focus, .er-field textarea:focus { border-color: var(--blue) !important; box-shadow: 0 0 0 2px #dbeafe !important; }
.er-field.er-invalid input, .er-field.er-invalid textarea { border-color: #dc2626 !important; background: #fff7f7 !important; }
.er-errors { margin: 18px 0 24px; padding: 14px 16px; border: 1px solid #dc2626; border-radius: 6px; color: #991b1b; background: #fff1f2; font-size: 14px; }
.er-errors a { color: #7f1d1d; font-weight: 800; text-decoration: underline; }
.er-errors strong { display: block; margin-bottom: 6px; }
.er-errors ul { margin: 0; padding-left: 20px; }
.er-help, .er-field small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.er-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.er-choice-list { display: grid; gap: 9px; margin: 0 0 12px; padding: 0; border: 0; }
.er-choice { display: flex; gap: 10px; align-items: flex-start; padding: 13px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.er-choice:has(input:checked) { border-color: var(--blue); background: #eff6ff; }
.er-choice span { display: grid; gap: 3px; }
.er-choice small { color: var(--muted); }

.er-alert { display: flex; gap: 10px; align-items: center; padding: 17px; border: 1px solid #ef4444; border-radius: 5px; background: #fff1f2; color: #991b1b; }
.er-alert span { color: #7f1d1d; font-size: 14px; }
.er-payment-info { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.er-payment-info h3 { margin: 0 0 10px; font-size: 17px; }
.er-payment-info p { margin: 7px 0; font-size: 14px; }
.er-payment-info .er-zelle-number { margin: 0; font-size: 17px; font-weight: 700; color: #1f2937; user-select: all; }

/* Bloque de pago renderizado por JS */
.er-pay-help { color: #6b7280; font-size: 13px !important; margin: 0 0 12px !important; }
.er-payment-tutorial { margin: 0 0 12px; border: 1px solid #d6b545; border-radius: 10px; background: #fff9df; overflow: hidden; }
.er-payment-tutorial summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; color: #27220e; font-size: 13px; font-weight: 850; cursor: pointer; list-style: none; }
.er-payment-tutorial summary::-webkit-details-marker { display: none; }
.er-payment-tutorial summary span { transition: transform .18s ease; }
.er-payment-tutorial[open] summary span { transform: rotate(180deg); }
.er-payment-tutorial ol { margin: 0; padding: 0 16px 13px 31px; color: #4c4220; font-size: 13px; line-height: 1.55; }
.er-payment-tutorial li + li { margin-top: 4px; }
.er-pay-number { font-size: 19px !important; font-weight: 800; color: #111827; user-select: all; margin: 10px 0 4px !important; }
.er-pay-number span { background: #fff; border: 2px solid #ffcc00; border-radius: 8px; padding: 6px 12px; display: inline-block; }
.er-copy-btn { margin-left: 8px; padding: 7px 11px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; color: #1f2937; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; outline: 0; -webkit-tap-highlight-color: transparent; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.er-copy-btn:hover { border-color: #ffcc00; background: #fff9df; }
.er-copy-btn:focus, .er-copy-btn:active { outline: 0; color: #1f2937 !important; background: #fff9df !important; border-color: #ffcc00 !important; transform: scale(.97); }
.er-copy-btn.copied { color: #166534 !important; background: #ecfdf3 !important; border-color: #22c55e !important; transform: none; }
.er-pay-holder { margin: 4px 0 0 !important; font-size: 14px !important; color: #374151; }
.er-pay-account { margin: 10px 0 0 !important; font-size: 13px !important; color: #6b7280; word-break: break-all; user-select: all; }
.er-payment-info .er-pay-link { margin-top: 12px; font-size: 15px; padding: 13px 26px; }
.er-choice small em { font-style: normal; font-weight: 700; color: #111827; }

/* Marcas de pago: se conservan legibles y proporcionadas en cualquier pantalla. */
.er-pay-brand {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 58px;
    min-width: 58px;
    height: 38px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.er-pay-brand img { display: block; width: 100%; height: 100%; object-fit: contain; }
.er-pay-brand-stripe,
.er-pay-brand-interac {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
}
.er-pay-brand-stripe { border-color: #635bff; background: #635bff; }
.er-pay-brand-stripe img { max-height: none; object-fit: cover; }
.er-pay-brand-interac { border-color: #f4b400; background: #f4b400; }
.er-pay-brand-card { border-color: #4b5563; background: #202938; color: #f8fafc; }
.er-pay-brand-card svg { stroke: currentColor; }
.er-pay-brand-wise {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    overflow: hidden;
    border-color: #1a73e8;
    background: #1a73e8;
    border-radius: 10px;
}
.er-pay-brand-wise img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.er-pay-brand-bizum,
.er-pay-brand-revolut,
.er-pay-brand-usdt { overflow: hidden; background: #fff; }
.er-pay-brand-bizum img,
.er-pay-brand-revolut img,
.er-pay-brand-usdt img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.er-pay-brand-bizum img { transform: scale(1.32); }
.er-pay-brand-revolut img { transform: scale(1.38); }
.er-pay-brand-usdt img { transform: scale(1.48); }

.er-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.er-option { padding: 11px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; cursor: pointer; font-weight: 700; }
.er-option.active,
.er-option.active:hover,
.er-option.active:focus { border-color: var(--blue) !important; color: #fff !important; background: var(--blue) !important; }
.er-proof { padding-top: 5px; }
.er-proof input[type="file"] { width: 100%; margin-top: 13px; padding: 12px; border: 2px dashed #93c5fd; border-radius: 6px; color: var(--blue); background: #eff6ff; }

.er-saved-addresses { margin-top: 4px; }
.er-saved-addresses small { display: block; margin-bottom: 8px; color: var(--muted); }
.er-addr-list { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 6px; }
.er-addr-chip { max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; text-align: left; font-family: inherit; overflow: hidden; text-overflow: ellipsis; }
.er-addr-chip:hover { border-color: var(--blue); background: #eff6ff; }
.er-addr-chip.active { border-color: var(--blue) !important; background: #eff6ff; font-weight: 700; }
.er-save-data { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-size: 14px; }
.er-save-data span { display: grid; gap: 4px; }
.er-save-data small { color: var(--muted); }
.er-submit { width: 100%; margin-top: 22px; padding: 15px; border: 0; border-radius: 6px; color: #fff; background: var(--blue); cursor: pointer; font-weight: 800; }
.er-status { min-height: 20px; margin: 10px 0; color: var(--muted); font-size: 13px; text-align: center; }

.er-summary { position: sticky; top: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.er-summary h2 { margin: 0; padding: 22px 18px 12px; font-size: 24px; }
.er-products { padding: 0 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.er-product { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #f9fafb; }
.er-product-image { display: grid; width: 40px; height: 40px; place-items: center; background: #fff; border-radius: 6px; margin-bottom: 4px; overflow: hidden; }
.er-product-image img { width: 38px; height: 38px; object-fit: cover; border-radius: 4px; }
.er-product-content { font-size: 11px; line-height: 1.2; width: 100%; }
.er-product-content b { display: block; font-weight: 600; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.er-product-content small { display: none; }
.er-product > strong { font-size: 11px; font-weight: 700; margin-top: 3px; color: var(--ink); }
.er-quantity { display: inline-grid; width: 16px; height: 16px; margin: 0 2px 1px 0; place-items: center; border-radius: 50%; color: #fff; background: #374151; font-size: 9px; vertical-align: top; }
.er-loading { margin: 10px 0; color: var(--muted); font-size: 14px; }
.er-summary-row { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.er-summary-total { display: flex; justify-content: space-between; padding: 20px 18px; font-size: 23px; }
.er-summary-total strong { font-weight: 500; }
.er-checkout .er-coupon,
.er-checkout .coupon { display: none !important; }
.er-hidden { display: none !important; }

.er-pay-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 11px 22px;
    border-radius: 24px;
    background: #0070ba;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s ease, transform .1s ease;
}

.er-pay-link:hover { background: #003087; transform: translateY(-1px); }
.er-pay-link:active { transform: scale(.98); }
.er-paypal-logo { flex: 0 0 auto; }

@media (max-width: 800px) {
    .er-checkout { margin: 10px auto; padding: 12px; }
    .er-checkout-layout { grid-template-columns: 1fr; gap: 24px; }
    .er-summary { position: static; order: 2; }
    .er-form-column { order: 1; }
    .er-grid-2 { grid-template-columns: 1fr; }
    .er-options { grid-template-columns: repeat(2, 1fr); }
    .er-products { grid-template-columns: repeat(3, 1fr); }
}

/* Override Electro styles and browser autofill consistently for every field. */
.er-checkout .er-field input,
.er-checkout .er-field input[type="text"],
.er-checkout .er-field input[type="email"],
.er-checkout .er-field input[type="tel"] {
    width: 100% !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 13px 11px !important;
    border: 1px solid #4b5563 !important;
    border-radius: 5px !important;
    background: #fff !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.er-checkout .er-field input:-webkit-autofill,
.er-checkout .er-field input:-webkit-autofill:hover,
.er-checkout .er-field input:-webkit-autofill:focus {
    border: 1px solid #4b5563 !important;
    border-radius: 5px !important;
    -webkit-text-fill-color: #374151 !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
}

/* ================================================
   IDENTIDAD FLORIDAME — overrides de marca
   ================================================ */

.er-checkout h1 { color: #111827; font-weight: 700; }
.er-checkout h2, .er-summary h2 { color: #111827; font-weight: 700; }

.er-field input[type="text"],
.er-field input[type="email"],
.er-field input[type="tel"],
.er-field textarea {
    border-radius: 9px !important;
}

.er-field input:focus, .er-field textarea:focus {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .3) !important;
}

.er-choice { border-radius: 10px; }
.er-choice:has(input:checked) { border-color: #111827 !important; background: #fffbe6; }

.er-option { border-radius: 9px; }
.er-option.active,
.er-option.active:hover,
.er-option.active:focus {
    border-color: #111827 !important;
    color: #ffcc00 !important;
    background: #111827 !important;
}

.er-options-3 { grid-template-columns: repeat(3, 1fr); }

.er-proof input[type="file"] {
    border: 2px dashed #ffcc00;
    border-radius: 10px;
    color: #111827;
    background: #fffbe6;
}

.er-submit {
    border-radius: 11px;
    background: #111827;
    color: #ffcc00;
    letter-spacing: .01em;
}

.er-submit:hover { background: #000000; }

.er-final {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
    padding: 16px 18px;
    background: #fffbe6;
    border: 2px solid #ffcc00;
    border-radius: 12px;
}

.er-final span {
    font-weight: 800;
    color: #111827;
    font-size: 15px;
}

.er-final strong {
    font-size: 28px;
    font-weight: 900;
    color: #111827;
}

.er-summary { border-radius: 12px; }
.er-summary-total strong { font-weight: 800; }

@media (max-width: 600px) {
    .er-options-3 { grid-template-columns: 1fr; }
    .er-final strong { font-size: 24px; }
    .er-products { grid-template-columns: 1fr; }
}

/* ================================================
   LAYOUT PROPIO FLORIDAME — columna unica centrada
   (rompe el layout de 2 columnas del checkout generico)
   ================================================ */

.er-checkout {
    --blue: #111827;
    max-width: 720px;
    margin: 12px auto 48px;
}

.er-checkout-layout {
    grid-template-columns: 1fr;
    gap: 0;
}

/* Resumen del pedido ARRIBA (primero el precio, luego los datos) */
.er-summary {
    order: -1;
    position: static;
    margin: 0 0 28px;
    border: 2px solid #ffcc00;
    border-radius: 14px;
}

.er-summary h2 { font-size: 20px; }

.er-form-column h1 {
    font-size: 26px;
    margin-top: 8px;
}

.er-note { margin-bottom: 22px; }

.er-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px 18px;
    margin: 0 0 16px;
}

.er-section h2 { font-size: 18px; margin-bottom: 12px; }
.er-section .er-help { margin-top: -6px; margin-bottom: 12px; }

.er-alert { border-radius: 10px; }

@media (max-width: 800px) {
    .er-checkout { margin: 10px auto; padding: 10px; }
    .er-section { padding: 14px 12px; }
    .er-products { grid-template-columns: repeat(3, 1fr); }
}

.er-no-tip {
    grid-column: 1 / -1;
    justify-self: center;
    padding: 2px 4px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12.5px;
    font-family: inherit;
    text-decoration: underline;
    text-decoration-color: #d1d5db;
    cursor: pointer;
}

.er-no-tip:hover { color: #111827; }

/* ─── Popup de reseña en el rastreo (pedido entregado) ─── */
.er-review-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.er-review-modal[hidden] { display: none; }

.er-review-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    border-top: 6px solid #ffcc00;
    padding: 26px 22px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: erReviewPop .25s cubic-bezier(.3, 1.2, .4, 1);
}

@keyframes erReviewPop {
    from { transform: translateY(24px) scale(.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.er-review-box h3 { margin: 0 0 6px; font-size: 21px; color: #111827; }
.er-review-sub { margin: 0 0 16px; font-size: 14px; color: #6b7280; line-height: 1.5; }

.er-review-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #374151;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.er-review-close:hover { background: #e5e7eb; }

.er-review-box form { display: flex; flex-direction: column; gap: 12px; }
.er-review-box label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #374151; }
.er-review-box input,
.er-review-box textarea {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    resize: vertical;
}
.er-review-box input:focus,
.er-review-box textarea:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .3);
}

.er-review-stars { display: flex; gap: 4px; justify-content: center; margin: 4px 0; }
.er-review-stars button {
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #e5e7eb;
    cursor: pointer;
    transition: color .1s ease, transform .1s ease;
    padding: 2px;
}
.er-review-stars button.on { color: #ffcc00; }
.er-review-stars button.half {
    color: #ffcc00;
    background: linear-gradient(90deg, #ffcc00 50%, #e5e7eb 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.er-review-stars button:hover { transform: scale(1.15); }

.er-review-points {
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    color: #6b7280;
    margin: -2px 0 4px;
}

.er-review-thanks {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    padding: 18px 0;
}

/* Estado seleccionado BIEN visible (píldora amarilla) */
.er-no-tip.active,
.er-no-tip.active:hover {
    background: #ffcc00;
    color: #111827 !important;
    font-weight: 800;
    text-decoration: none;
    border-radius: 999px;
    padding: 5px 16px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

/* Comprobante: input invisible + botón grande + preview en miniatura */
.er-proof { position: relative; }
.er-proof input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.er-proof-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 18px;
    border: 2px dashed #ffcc00;
    border-radius: 10px;
    background: #fffbe6;
    color: #111827;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
}
.er-proof-btn:hover { background: #fff5cc; }
.er-proof-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fafc;
}
.er-proof-preview img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}
.er-proof-preview small { color: var(--muted); word-break: break-all; }

/* Recogida en tienda */
.er-pickup-info {
    margin-top: 12px;
    padding: 13px 15px;
    border: 1px solid #ffcc00;
    border-radius: 10px;
    background: #fffbe6;
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
}

/* Opción de pago al recibir bloqueada */
.er-choice-cod { opacity: .55; }
.er-choice-cod input:disabled { cursor: not-allowed; }
.er-choice-cod.er-choice-cod-unlocked { opacity: 1; }

/* Sección Familiares */
.er-family {
    border: 2px solid #ffcc00;
    background: #fffdf5;
}

.er-family h2 { margin-bottom: 8px; }

.er-addr-list { display: flex; flex-wrap: wrap; gap: 8px; }

.er-addr-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    max-width: 100%;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.er-addr-chip b { font-size: 13.5px; }
.er-addr-chip small { color: var(--muted); }

.er-addr-chip:hover { border-color: var(--blue); background: #fffbe6; }

.er-addr-chip.active {
    border-color: #111827 !important;
    background: #fffbe6;
    box-shadow: inset 0 0 0 1px #111827;
}

/* ================================================
   PÁGINA DE CONFIRMACIÓN
   ================================================ */

.er-thanks {
    max-width: 560px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}

.er-thanks-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111827;
}

.er-thanks-card h1 {
    margin: 14px 0 6px;
    font-size: 26px;
    font-weight: 800;
}

.er-thanks-sub {
    margin: 0 0 22px;
    color: #6b7280;
    font-size: 15px;
}

.er-thanks-sub strong { color: #111827; }

.er-thanks-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #16a34a;
    color: #ffffff;
    box-shadow: 0 10px 28px rgba(22, 163, 74, .35);
}

.er-thanks-steps {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.er-thanks-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
}

.er-step-num {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffcc00;
    color: #000000;
    font-weight: 900;
    font-size: 14px;
    flex-shrink: 0;
}

.er-step-body { display: flex; flex-direction: column; gap: 2px; }
.er-step-body b { font-size: 14px; }
.er-step-body small { color: #6b7280; font-size: 12.5px; }

.er-btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    margin-bottom: 10px;
    transition: filter .15s ease;
}

.er-btn-block:hover { filter: brightness(1.08); }

.er-btn-primary { background: #111827; color: #ffcc00; }
.er-btn-whatsapp { background: #25d366; color: #06301b; }
.er-btn-secondary { background: #ffffff; color: #111827; border: 2px solid #111827; }
.er-btn-review { background: #ffcc00; color: #111827; border: 2px solid #111827; margin-top: 8px; font-weight: 700; }

/* ================================================
   ESPERA DEL ENVÍO + AYUDA + RASTREO
   ================================================ */

.er-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .94);
    padding: 20px;
}

.er-overlay[hidden] { display: none; }
.er-checkout [hidden], #erStripeEmail[hidden], .er-proof[hidden] { display: none !important; }

.er-overlay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #111827;
    max-width: 340px;
}

.er-overlay-box b { font-size: 17px; }

.er-overlay-box small {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.er-spinner {
    width: 46px;
    height: 46px;
    border: 4px solid #ffcc00;
    border-top-color: transparent;
    border-radius: 50%;
    animation: er-spin .8s linear infinite;
    margin-bottom: 4px;
}

@keyframes er-spin {
    to { transform: rotate(360deg); }
}

.er-help-line {
    margin: 18px 0 4px;
    text-align: center;
    color: #6b7280;
    font-size: 13.5px;
}

.er-help-line a {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 2px solid #ffcc00;
}

.er-track-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 18px;
}

.er-st-on-hold, .er-st-pending { background: #fff7d6; color: #7a4a00; }
.er-st-processing, .er-st-ready { background: #dbeafe; color: #1e3a8a; }
.er-st-completed { background: #dcfce7; color: #14532d; }
.er-st-cancelled, .er-st-failed { background: #fee2e2; color: #7f1d1d; }

.er-track-steps li.done {
    border-color: #16a34a;
    background: #f0fdf4;
}

.er-track-steps li.done .er-step-num {
    background: #16a34a;
    color: #ffffff;
}

.er-track-meta {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 13.5px;
}

.er-track-meta strong { color: #111827; }

.er-track-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 8px;
}

.er-track-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.er-track-form input {
    padding: 13px 11px;
    border: 1px solid #4b5563 !important;
    border-radius: 9px !important;
    font-size: 16px;
    background: #fff !important;
    outline: none;
}

.er-track-form input:focus {
    border-color: #ffcc00 !important;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, .3) !important;
}

.er-track-form .er-submit { margin-top: 4px; }

/* Fotos de prueba en el rastreo */
.er-track-photo {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    padding: 5px 10px 5px 5px;
    border: 1px solid #ffcc00;
    border-radius: 9px;
    background: #fffbe6;
    color: #111827;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    width: fit-content;
}

.er-track-photo img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
}

.er-track-photo:hover { background: #fff5cc; }

/* ─── Reseña en confirmación ─── */
.er-review-sep { height: 1px; background: #e5e7eb; margin: 24px 0; }
.er-review-title { margin: 0 0 6px; font-size: 16px; font-weight: 800; color: #111827; }
.er-review-sub { margin: 0 0 14px; color: #6b7280; font-size: 13.5px; }
.er-review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.er-review-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 700; color: #374151; }
.er-review-form input, .er-review-form textarea { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 14px; background: #fff; outline: none; resize: vertical; }
.er-review-form input:focus, .er-review-form textarea:focus { border-color: #ffcc00; box-shadow: 0 0 0 3px rgba(255,204,0,.15); }
.er-review-submit { padding: 12px; border: 0; border-radius: 10px; background: #111827; color: #ffcc00; font-weight: 800; font-size: 14px; cursor: pointer; }
.er-review-submit:hover { background: #000; }
.er-review-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Rastrear pedido: el contenido se mantiene compacto en pantallas grandes. */
.er-thanks:has(.er-track-items) { max-width: 620px; }
.er-track-items { width: min(100%, 480px); margin: 20px auto; padding: 15px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fafaf8; text-align: left; }
.er-track-items h2 { margin: 0 0 11px; color: #111827; font-size: 15px; }
.er-track-items ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.er-track-items li { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.er-track-item-image { display: grid; width: 42px; height: 42px; place-items: center; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; }
.er-track-item-image img { width: 100%; height: 100%; object-fit: contain; }
.er-track-item-name { overflow: hidden; color: #374151; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.er-track-items li > strong { color: #111827; font-size: 13px; }
