/* ==========================================================================
   Sol Caribe Group LLC — Reembolsos
   Política de reembolsos · Mis pedidos (cliente) · pestaña "Reembolsos" del
   panel de administración · sección de solo lectura del panel de la mipyme.

   Mismo lenguaje visual que las páginas legales y los paneles: verde azulado
   profundo, oro y Plus Jakarta Sans. Las insignias de estado (.rf-chip) las
   comparten las cuatro superficies.
   ========================================================================== */

:root {
    --rf-surface: rgba(255, 255, 255, 0.045);
    --rf-surface-strong: rgba(255, 255, 255, 0.085);
    --rf-sunken: rgba(0, 0, 0, 0.22);
    --rf-border: rgba(255, 255, 255, 0.11);
    --rf-border-gold: rgba(233, 196, 106, 0.34);
    --rf-text: rgba(255, 255, 255, 0.93);
    --rf-soft: rgba(255, 255, 255, 0.78);
    --rf-muted: rgba(255, 255, 255, 0.62);
    --rf-gold: #E9C46A;
    --rf-ok: #7fd8cc;
    --rf-warn: #f6b27a;
    --rf-bad: #ff9a85;
    --rf-info: #9cc9f0;
}

/* ==========================================================================
   Política (lista numerada del artículo legal)
   ========================================================================== */
.legal-article ol {
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    counter-reset: rf-step;
}

.legal-article ol li {
    position: relative;
    counter-increment: rf-step;
    padding-left: 2.4rem;
    margin-bottom: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.legal-article ol li::before {
    content: counter(rf-step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: rgba(233, 196, 106, 0.16);
    border: 1px solid rgba(233, 196, 106, 0.4);
    color: var(--rf-gold);
    font-size: 0.78rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

/* Aviso junto al formulario de remesas (fondo claro) */
.refund-notice {
    margin: 0 0 1.25rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.refund-notice a {
    color: var(--color-accent-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ==========================================================================
   Mis pedidos
   ========================================================================== */
.rf-body {
    --rf-pad: 1.5rem;
}

.legal-hero.rf-hero {
    padding: 8.5rem 0 3.25rem;
}

.rf-hero .legal-hero-content p {
    font-size: 1.02rem;
}

.rf-section {
    padding: 2.5rem 0 5rem;
}

.rf-container {
    max-width: 960px;
}

/* ── Estados vacíos, de carga y de error ─────────────────────────────── */
.rf-state {
    text-align: center;
    padding: 3rem 1.25rem;
    border: 1px dashed var(--rf-border);
    border-radius: 14px;
    background: var(--rf-surface);
    color: var(--rf-soft);
}

.rf-state h2 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: #fff;
    margin: 0 0 0.5rem;
}

.rf-state p {
    margin: 0 auto 1.25rem;
    max-width: 46ch;
    line-height: 1.6;
}

.rf-state p:last-child {
    margin-bottom: 0;
}

.rf-state-error {
    border-color: rgba(255, 154, 133, 0.45);
    color: var(--rf-bad);
}

.rf-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--rf-gold);
    border-radius: 50%;
    animation: rf-spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
    vertical-align: middle;
}

.rf-spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin: 0 0.4rem 0 0;
}

@keyframes rf-spin {
    to { transform: rotate(360deg); }
}

/* ── Botones ─────────────────────────────────────────────────────────── */
.rf-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0 1.3rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rf-btn-primary {
    background: var(--gradient-gold);
    color: var(--color-primary);
}

.rf-btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 24px -12px rgba(233, 196, 106, 0.9);
    transform: translateY(-1px);
}

.rf-btn-ghost {
    background: transparent;
    color: var(--rf-gold);
    border-color: var(--rf-border-gold);
}

.rf-btn-ghost:hover:not(:disabled) {
    background: rgba(233, 196, 106, 0.1);
    border-color: var(--rf-gold);
}

.rf-btn-sm {
    min-height: 36px;
    padding: 0 0.85rem;
    font-size: 0.82rem;
}

.rf-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.rf-btn:focus-visible,
.rf-tab:focus-visible,
.rf-link:focus-visible,
.rf-close:focus-visible,
.rf-stepper button:focus-visible {
    outline: 2px solid var(--rf-gold);
    outline-offset: 2px;
}

.rf-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0.5rem 0;
    min-height: 44px;
    color: var(--rf-gold);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ── Pestañas ────────────────────────────────────────────────────────── */
.rf-tabs {
    display: flex;
    gap: 0.3rem;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
    background: var(--rf-sunken);
    border: 1px solid var(--rf-border);
    border-radius: 12px;
}

.rf-tab {
    appearance: none;
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--rf-soft);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.rf-tab:hover {
    background: var(--rf-surface-strong);
    color: #fff;
}

.rf-tab[aria-selected="true"] {
    background: var(--gradient-gold);
    color: var(--color-primary);
}

.rf-tab-count {
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.rf-tab[aria-selected="true"] .rf-tab-count {
    background: rgba(10, 58, 64, 0.2);
}

.rf-panel[hidden] {
    display: none;
}

.rf-policy-link {
    margin: 2rem 0 0;
    text-align: center;
    color: var(--rf-muted);
    font-size: 0.88rem;
}

.rf-policy-link a,
.rf-state a:not(.rf-btn) {
    color: var(--rf-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── Tarjetas ────────────────────────────────────────────────────────── */
.rf-list {
    display: grid;
    gap: 1.1rem;
}

.rf-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: 14px;
    padding: 1.35rem var(--rf-pad);
    box-shadow: 0 14px 34px -24px rgba(0, 0, 0, 0.8);
}

.rf-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.rf-card-head h3 {
    margin: 0 0 0.2rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
}

.rf-muted {
    margin: 0;
    color: var(--rf-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.rf-card-total {
    display: grid;
    justify-items: end;
    gap: 0.1rem;
    text-align: right;
}

.rf-card-total span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rf-muted);
}

.rf-card-total strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.rf-card-total em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rf-ok);
}

.rf-card-total em.rf-card-currency {
    color: var(--rf-muted);
}

.rf-ships {
    display: grid;
    gap: 0.85rem;
}

.rf-ship {
    background: var(--rf-sunken);
    border: 1px solid var(--rf-border);
    border-radius: 11px;
    padding: 1rem 1.1rem;
}

.rf-ship-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.rf-ship-head h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rf-gold);
    overflow-wrap: anywhere;
}

.rf-items {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.rf-items li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: baseline;
    gap: 0.9rem;
    font-size: 0.92rem;
    color: var(--rf-text);
    padding-bottom: 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rf-items li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rf-item-name {
    overflow-wrap: anywhere;
    min-width: 0;
}

.rf-item-qty {
    color: var(--rf-muted);
    font-variant-numeric: tabular-nums;
}

.rf-item-price {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    min-width: 4.5rem;
    text-align: right;
}

.rf-items-compact li {
    grid-template-columns: minmax(0, 1fr) auto;
}

.rf-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    margin: 0.9rem 0 0;
}

.rf-amounts div {
    display: grid;
    gap: 0.1rem;
}

.rf-amounts dt {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rf-muted);
}

.rf-amounts dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--rf-text);
    font-variant-numeric: tabular-nums;
}

.rf-amounts .rf-amount-refunded dd {
    color: var(--rf-ok);
}

.rf-action {
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px dashed var(--rf-border);
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
}

.rf-action p {
    margin: 0;
}

.rf-action-info p {
    color: var(--rf-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Insignias de estado (compartidas con los paneles) ───────────────── */
.rf-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--rf-border);
    background: rgba(255, 255, 255, 0.07);
    color: var(--rf-soft);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    white-space: nowrap;
}

.rf-chip-pendiente,
.rf-chip-ship-pendiente {
    background: rgba(246, 178, 122, 0.14);
    border-color: rgba(246, 178, 122, 0.4);
    color: var(--rf-warn);
}

.rf-chip-aprobada {
    background: rgba(233, 196, 106, 0.14);
    border-color: rgba(233, 196, 106, 0.42);
    color: var(--rf-gold);
}

.rf-chip-reembolsada,
.rf-chip-ship-realizada,
.rf-chip-rem-completed,
.rf-chip-rem-delivered,
.rf-chip-rem-refunded {
    background: rgba(127, 216, 204, 0.13);
    border-color: rgba(127, 216, 204, 0.4);
    color: var(--rf-ok);
}

.rf-chip-rechazada,
.rf-chip-fallida {
    background: rgba(255, 154, 133, 0.13);
    border-color: rgba(255, 154, 133, 0.42);
    color: var(--rf-bad);
}

.rf-chip-ship-cancelada,
.rf-chip-rem-cancelled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--rf-muted);
}

.rf-chip-rem-payment_received,
.rf-chip-rem-processing,
.rf-chip-rem-available_for_pickup,
.rf-chip-rem-out_for_delivery,
.rf-chip-rem-under_review {
    background: rgba(156, 201, 240, 0.12);
    border-color: rgba(156, 201, 240, 0.38);
    color: var(--rf-info);
}

/* ── Solicitudes ─────────────────────────────────────────────────────── */
.rf-request-body {
    display: grid;
    gap: 0.9rem;
}

.rf-request-body .rf-amounts {
    margin-top: 0;
}

.rf-quote {
    margin: 0;
    padding: 0.7rem 1rem;
    border-left: 3px solid var(--rf-border-gold);
    background: var(--rf-sunken);
    border-radius: 0 8px 8px 0;
    color: var(--rf-soft);
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rf-hint {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--rf-soft);
}

.rf-hint-rechazada,
.rf-hint-fallida {
    color: var(--rf-bad);
}

.rf-hint-reembolsada {
    color: var(--rf-ok);
}

.rf-reply {
    padding: 0.85rem 1rem;
    background: rgba(233, 196, 106, 0.09);
    border: 1px solid var(--rf-border-gold);
    border-radius: 10px;
}

.rf-reply strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--rf-gold);
}

.rf-reply p {
    margin: 0;
    color: var(--rf-text);
    font-size: 0.93rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.rf-evidence {
    display: grid;
    gap: 0.4rem;
    justify-items: start;
}

.rf-evidence[hidden] {
    display: none;
}

.rf-evidence img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--rf-border);
    background: var(--rf-sunken);
}

/* ==========================================================================
   Modal de solicitud
   ========================================================================== */
body.rf-lock {
    overflow: hidden;
}

.rf-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 14, 16, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rf-modal {
    display: flex;
    flex-direction: column;
    width: min(660px, 100%);
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    background: linear-gradient(180deg, #073238 0%, #04252a 100%);
    border: 1px solid var(--rf-border-gold);
    border-radius: 16px;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    color: var(--rf-text);
    font-family: var(--font-body);
}

.rf-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 1.5rem 1rem;
    border-bottom: 1px solid var(--rf-border);
}

.rf-modal-head h2 {
    margin: 0 0 0.2rem;
    font-family: var(--font-title);
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    outline: none;
}

.rf-close {
    appearance: none;
    flex: none;
    width: 44px;
    height: 44px;
    margin: -0.4rem -0.5rem 0 0;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--rf-soft);
    cursor: pointer;
}

.rf-close:hover {
    background: var(--rf-surface-strong);
    color: #fff;
}

.rf-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.rf-modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.rf-notice {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.95rem;
    background: rgba(233, 196, 106, 0.1);
    border: 1px solid var(--rf-border-gold);
    border-radius: 9px;
    font-size: 0.88rem;
    color: var(--rf-text);
}

.rf-notice strong {
    color: var(--rf-gold);
}

.rf-field {
    margin: 0 0 1.3rem;
    padding: 0;
    border: 0;
    min-width: 0;
}

.rf-field legend,
.rf-field > label,
.rf-label {
    display: block;
    padding: 0;
    margin-bottom: 0.55rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--rf-gold);
}

.rf-field-help {
    margin: -0.2rem 0 0.7rem;
}

.rf-required,
.rf-recommended {
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--rf-muted);
}

.rf-required.is-needed {
    color: var(--rf-warn);
}

.rf-reasons {
    display: grid;
    gap: 0.5rem;
}

.rf-reason {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.16s ease, background-color 0.16s ease;
}

.rf-reason:hover {
    background: var(--rf-surface-strong);
}

.rf-reason input {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 0.15rem 0 0;
    accent-color: #E9C46A;
}

.rf-reason:has(input:checked) {
    border-color: var(--rf-gold);
    background: rgba(233, 196, 106, 0.1);
}

.rf-reason:has(input:focus-visible) {
    outline: 2px solid var(--rf-gold);
    outline-offset: 2px;
}

.rf-reason-text {
    display: grid;
    gap: 0.1rem;
}

.rf-reason-text strong {
    font-size: 0.95rem;
    color: #fff;
}

.rf-reason-text small {
    font-size: 0.82rem;
    color: var(--rf-muted);
    line-height: 1.45;
}

.rf-scope {
    padding: 0.9rem 1rem;
    background: var(--rf-sunken);
    border: 1px solid var(--rf-border);
    border-radius: 10px;
}

.rf-scope p {
    margin: 0 0 0.6rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--rf-soft);
}

.rf-scope p:last-child {
    margin-bottom: 0;
}

.rf-scope .rf-items {
    margin-top: 0.4rem;
}

/* Selector de unidades */
.rf-pick {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.rf-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.7rem 0.9rem;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: 10px;
}

.rf-pick-row.is-picked {
    border-color: var(--rf-gold);
    background: rgba(233, 196, 106, 0.09);
}

.rf-pick-row.is-disabled {
    opacity: 0.55;
}

.rf-pick-info {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
    font-size: 0.93rem;
}

.rf-pick-info small {
    color: var(--rf-muted);
    font-size: 0.8rem;
}

.rf-stepper {
    display: inline-flex;
    flex: none;
    align-items: center;
    border: 1px solid var(--rf-border-gold);
    border-radius: 9px;
    overflow: hidden;
}

.rf-stepper button {
    appearance: none;
    width: 44px;
    height: 44px;
    background: rgba(233, 196, 106, 0.1);
    border: 0;
    color: var(--rf-gold);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
}

.rf-stepper button:hover:not(:disabled) {
    background: rgba(233, 196, 106, 0.22);
}

.rf-stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.rf-stepper input {
    width: 3rem;
    height: 44px;
    padding: 0;
    text-align: center;
    background: var(--rf-sunken);
    border: 0;
    border-left: 1px solid var(--rf-border);
    border-right: 1px solid var(--rf-border);
    border-radius: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
    appearance: textfield;
}

.rf-stepper input::-webkit-outer-spin-button,
.rf-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Campos de texto del modal */
.rf-modal textarea {
    display: block;
    width: 100%;
    min-height: 92px;
    padding: 0.75rem 0.9rem;
    background: var(--rf-sunken);
    border: 1px solid var(--rf-border);
    border-radius: 9px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
}

.rf-modal textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.rf-modal textarea:focus {
    outline: 2px solid var(--rf-gold);
    outline-offset: 1px;
    border-color: transparent;
}

/* Foto */
.rf-photo {
    display: flex;
    align-items: center;
    gap: 0.5rem 0.9rem;
    flex-wrap: wrap;
}

.rf-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.7rem;
    padding: 0.6rem;
    background: var(--rf-sunken);
    border: 1px solid var(--rf-border);
    border-radius: 10px;
}

.rf-preview[hidden] {
    display: none;
}

.rf-preview img {
    flex: none;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
}

.rf-preview div {
    display: grid;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.rf-preview strong {
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rf-preview small {
    color: var(--rf-muted);
}

/* Cotización */
.rf-quote-box {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    background: rgba(233, 196, 106, 0.08);
    border: 1px solid var(--rf-border-gold);
    border-radius: 11px;
}

.rf-quote-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.rf-quote-total span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--rf-gold);
}

.rf-quote-total strong {
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.rf-breakdown {
    margin: 0.7rem 0 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--rf-border);
    display: grid;
    gap: 0.3rem;
}

.rf-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

.rf-breakdown dt {
    color: var(--rf-soft);
}

.rf-breakdown dd {
    margin: 0;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.rf-quote-note {
    margin-top: 0.7rem;
    font-size: 0.8rem;
}

.rf-error {
    margin: 0.5rem 0 0;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--rf-bad);
}

.rf-error[hidden] {
    display: none;
}

.rf-error-form {
    margin: 0 0 1rem;
}

.rf-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Confirmación */
.rf-success {
    text-align: center;
    display: grid;
    gap: 0.8rem;
    justify-items: center;
    padding: 0.5rem 0 0;
}

.rf-success p {
    margin: 0;
}

.rf-success .rf-modal-actions {
    margin-top: 0.5rem;
    justify-content: center;
}

.rf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(127, 216, 204, 0.14);
    border: 2px solid var(--rf-ok);
}

.rf-success-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--rf-ok);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rf-success-number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--rf-gold);
    font-variant-numeric: tabular-nums;
    user-select: all;
}

/* ==========================================================================
   Responsive (Mis pedidos)
   ========================================================================== */
@media (max-width: 640px) {
    .rf-body { --rf-pad: 1.1rem; }

    .legal-hero.rf-hero { padding: 6.75rem 0 2.5rem; }
    .rf-section { padding: 1.75rem 0 3.5rem; }

    .rf-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .rf-tab { padding: 0 0.5rem; font-size: 0.86rem; }

    .rf-card { padding: 1.1rem var(--rf-pad); }
    .rf-card-head { flex-direction: column; gap: 0.6rem; }
    .rf-card-total { justify-items: start; text-align: left; }

    .rf-ship { padding: 0.9rem; }
    .rf-items li { grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.8rem; }
    .rf-items li .rf-item-qty { grid-column: 2; grid-row: 1; }
    .rf-items li .rf-item-price { grid-column: 1 / -1; grid-row: 2; text-align: left; font-weight: 500; color: var(--rf-muted); }
    .rf-items-compact li { grid-template-columns: minmax(0, 1fr) auto; }

    .rf-action .rf-btn { width: 100%; }

    .rf-overlay { align-items: flex-end; padding: 0; }
    .rf-modal {
        width: 100%;
        max-height: 94vh;
        max-height: 94dvh;
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
    }
    .rf-modal-head { padding: 1.1rem 1.1rem 0.85rem; }
    .rf-modal-body { padding: 1.1rem 1.1rem 1.4rem; }
    .rf-pick-row { flex-direction: column; align-items: stretch; gap: 0.6rem; }
    .rf-stepper { align-self: flex-start; }
    .rf-modal-actions { flex-direction: column-reverse; }
    .rf-modal-actions .rf-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .rf-spinner { animation-duration: 2.4s; }
    .rf-btn, .rf-tab, .rf-reason { transition: none; }
}
