/* White Fox · Pedidos (listado y detalle del pedido).
   Se carga junto con wf-account.css en las páginas "history", "order-detail" y "guest-tracking" (seguimiento para invitados).
   Todas las clases empiezan con wfo-. Computadora = 992 px o más; celular/tablet = menos. */

.wfo-list, .wfo-detail, .wfo-empty {
    --wfo-navy: #1E2A3A;
    --wfo-gold: #B3956A;
    --wfo-cream: #F9F4F0;
    --wfo-muted: #5E6672;
    --wfo-green: #4E7A5B;
    --wfo-line: rgba(30, 42, 58, .12);
    --wfo-line-soft: rgba(30, 42, 58, .10);
    --wfo-gutter: 20px;           /* margen lateral en celular: lo usan los bloques que llegan hasta el borde */
    font-family: 'PT Serif', serif;
    color: var(--wfo-navy);
}
.wfo-muted { color: var(--wfo-muted); }
.wfo-ink { color: var(--wfo-navy); }
#wrapper .wfo-link { color: var(--wfo-navy); text-decoration: underline; text-underline-offset: 3px; }
#wrapper .wfo-link:hover { color: var(--wfo-gold); }

/* Títulos de sección */
#wrapper .wfo-h2 {
    margin: 0;
    padding: 0;
    color: var(--wfo-navy);
    font-family: inherit;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}
#wrapper .wfo-h2--lg { font-size: 24px; }
#wrapper .wfo-h2--md { font-size: 20px; }
#wrapper .wfo-h2 .wfo-h2__count { font-size: 16px; font-weight: 400; }
#wrapper .wfo-detail p { margin: 0; }

/* Botones */
#wrapper .wfo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 46px;
    padding: 0 22px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
#wrapper .wfo-btn--secondary { color: var(--wfo-navy); background: #fff; border: 1px solid rgba(30, 42, 58, .35); }
#wrapper .wfo-btn--secondary:hover,
#wrapper .wfo-btn--secondary:focus-visible { color: var(--wfo-navy); background: var(--wfo-cream); border-color: var(--wfo-navy); }
#wrapper .wfo-btn--primary { color: #fff; background: var(--wfo-navy); border: 1px solid var(--wfo-navy); }
#wrapper .wfo-btn--primary:hover,
#wrapper .wfo-btn--primary:focus-visible { color: #fff; background: #2B3B50; border-color: #2B3B50; }
#wrapper .wfo-btn:focus-visible,
#wrapper .wfo-copy:focus-visible,
#wrapper .wfo-toggle:focus-visible,
#wrapper .wfo-bill__btn:focus-visible,
#wrapper .wfo-fold__btn:focus-visible,
#wrapper .wfo-card__link:focus-visible { outline: 2px solid var(--wfo-navy); outline-offset: 2px; }

/* Punto de estado */
.wfo-state { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.3; }
.wfo-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--wfo-navy); }
.wfo-dot--gold { background: var(--wfo-gold); }
.wfo-dot--navy { background: var(--wfo-navy); }
.wfo-dot--green { background: var(--wfo-green); }
.wfo-dot--gray { background: #8A8F96; }

/* ====================== LISTADO ====================== */
.wfo-list { display: flex; flex-direction: column; gap: 16px; }
.wfo-card { position: relative; box-sizing: border-box; border: 1px solid var(--wfo-line); background: #fff; }
.wfo-card--open { display: flex; flex-direction: column; gap: 22px; padding: 28px 32px; }
.wfo-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wfo-card__id { display: flex; flex-direction: column; gap: 4px; }
.wfo-card__date { font-size: 18px; line-height: 1.3; }
.wfo-card__code { font-size: 14px; color: var(--wfo-muted); }
.wfo-card__status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.wfo-card__note { font-size: 14px; color: var(--wfo-muted); }
.wfo-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wfo-card__thumbs { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wfo-thumb {
    flex: none;
    display: block;
    box-sizing: border-box;
    width: 64px;
    height: 64px;
    overflow: hidden;
}
.wfo-thumb--more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--wfo-line);
    font-size: 14px;
    color: var(--wfo-muted);
}
.wfo-mm, .wfo-thumb--mobile-only { display: none; }
.wfo-card__count { margin-left: 4px; font-size: 15px; color: var(--wfo-muted); }
.wfo-card__code2 { display: none; }
.wfo-card__end { display: flex; align-items: center; gap: 32px; flex: none; }
.wfo-card__total { font-size: 18px; }
#wrapper .wfo-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--wfo-navy);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
}
#wrapper .wfo-card__link:hover { color: var(--wfo-gold); }
.wfo-card__link .wfo-chevron { display: none; }

/* Plegados (entregados, cancelados, reintegrados) */
.wfo-fold__btn {
    display: flex;
    align-items: center;
    gap: 24px;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
    margin: 0;
    padding: 20px 32px;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--wfo-navy);
    text-align: left;
    cursor: pointer;
}
.wfo-fold__date { width: 220px; flex: none; font-size: 17px; }
.wfo-fold__code { flex: 1; font-size: 14px; color: var(--wfo-muted); }
.wfo-fold__chev { flex: none; transition: transform .2s ease; }
.wfo-fold__btn[aria-expanded="true"] .wfo-fold__chev { transform: rotate(180deg); }
.wfo-fold__panel { padding: 0 32px 24px; }
.wfo-fold__panel[hidden] { display: none; }

/* Pedidos vacío */
.wfo-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    padding: 64px 32px;
    background: var(--wfo-cream);
    font-family: 'PT Serif', serif;
    color: var(--wfo-navy);
}
.wfo-empty > svg { color: var(--wfo-gold); }
#wrapper .wfo-empty__title { margin: 20px 0 10px; font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1.25; text-transform: none; letter-spacing: 0; color: var(--wfo-navy); }
#wrapper .wfo-empty__text { margin: 0 0 28px; max-width: 420px; font-size: 16px; line-height: 1.6; color: var(--wfo-muted); }

/* ====================== DETALLE ====================== */
.wfo-detail { display: flex; flex-direction: column; font-size: 16px; }

/* Estado */
.wfo-status {
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-sizing: border-box;
    padding: 32px;
    border: 1px solid var(--wfo-line);
}
.wfo-status__top { display: flex; flex-direction: column; gap: 28px; }
.wfo-status__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.wfo-status__text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#wrapper .wfo-status__text p { font-size: 16px; line-height: 1.6; }
.wfo-track-info { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; font-size: 15px; text-align: right; }
.wfo-track-info__code { font-size: 16px; word-break: break-all; }
#wrapper .wfo-track-info a { color: var(--wfo-navy); text-decoration: underline; text-underline-offset: 4px; }
#wrapper .wfo-track-info a:hover { color: var(--wfo-gold); }

/* Datos de transferencia */
.wfo-transfer { box-sizing: border-box; padding: 24px 28px; background: var(--wfo-cream); }
.wfo-fields { display: flex; flex-direction: column; max-width: 560px; padding: 2px 20px; background: #fff; }
.wfo-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--wfo-line-soft);
    font-size: 16px;
}
.wfo-field:last-child { border-bottom: 0; }
.wfo-field__val { display: flex; flex-direction: column; gap: 3px; min-width: 0; word-break: break-word; }
.wfo-label { font-size: 13.5px; color: var(--wfo-muted); }

/* Botón Copiar */
#wrapper .wfo-copy {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    height: 44px;
    min-width: 44px;
    padding: 0 14px;
    border: 1px solid rgba(30, 42, 58, .3);
    border-radius: 0;
    background: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
    text-transform: none;
    color: var(--wfo-navy);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
#wrapper .wfo-copy:hover { background: var(--wfo-cream); border-color: var(--wfo-navy); }
.wfo-copy__ok { display: none; }
.wfo-copy.is-copied .wfo-copy__ok { display: inline-block; width: 15px; height: 15px; background: no-repeat center / 15px 15px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234E7A5B' stroke-width='1.8'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Transferencia: aviso del comprobante, con el botón de copiar el mail */
#wrapper .wfo-transfer__note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: var(--wfo-muted); }
#wrapper .wfo-transfer__txt { flex: 0 1 auto; min-width: 0; }
#wrapper .wfo-transfer__note .wfo-ink { color: var(--wfo-navy); overflow-wrap: anywhere; }
#wrapper .wfo-copy--inline { height: 36px; min-width: 0; }
/* Factura todavía no disponible */
#wrapper .wfo-invoice-note { font-size: 15px; line-height: 1.55; color: var(--wfo-navy); }

/* Recorrido */
.wfo-journey { display: flex; flex-direction: column; }
.wfo-track { display: flex; align-items: flex-start; position: relative; margin: 0; padding: 0; list-style: none; }
.wfo-step { flex: 1 1 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.wfo-step:last-child { flex: 0 0 auto; }
.wfo-step__row { display: flex; align-items: center; }
.wfo-step__dot { flex: none; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1px solid rgba(30, 42, 58, .3); }
.wfo-step__line { flex: 1; height: 2px; margin: 0 10px; background: rgba(30, 42, 58, .15); }
.wfo-step__label { display: block; line-height: 1.35; color: var(--wfo-muted); }
.wfo-step__date { display: block; color: var(--wfo-muted); font-size: 13.5px; }
.wfo-step.is-done .wfo-step__dot { background: var(--wfo-navy); border-color: var(--wfo-navy); }
.wfo-step.is-done .wfo-step__label { color: var(--wfo-navy); }
.wfo-step.is-current .wfo-step__dot { border: 3px solid var(--wfo-gold); }
.wfo-step.is-current .wfo-step__label { color: var(--wfo-navy); }
.wfo-step.is-linked .wfo-step__line { background: var(--wfo-navy); }
.wfo-progress { display: none; }

/* Productos + resumen */
.wfo-body { display: flex; align-items: flex-start; gap: 40px; margin-top: 40px; }
.wfo-items { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
#wrapper .wfo-items > .wfo-h2 { margin-bottom: 12px; }
.wfo-items__list { border-top: 1px solid var(--wfo-line-soft); }
.wfo-items__list--rest { margin-top: 0; border-top: 0; }
.wfo-items__more[hidden] { display: none; }
.wfo-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--wfo-line-soft); }
.wfo-item__img { --wf-thumb: 56px; }
.wfo-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#wrapper .wfo-item__name { font-size: 16px; line-height: 1.3; color: var(--wfo-navy); text-decoration: none; }
#wrapper a.wfo-item__name:hover { color: var(--wfo-gold); }
.wfo-item__meta { font-size: 13.5px; color: var(--wfo-muted); }
.wfo-item__total { flex: none; font-size: 16px; }
#wrapper .wfo-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--wfo-navy);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
}
.wfo-toggle svg { transition: transform .2s ease; }
.wfo-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.wfo-summary {
    flex: none;
    width: 300px;
    box-sizing: border-box;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--wfo-cream);
}
.wfo-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.wfo-line > span:first-child { min-width: 0; }
.wfo-line > span:last-child { flex: none; white-space: nowrap; }
.wfo-line--total { padding-top: 14px; border-top: 1px solid var(--wfo-line); font-size: 18px; }
.wfo-sum-item { display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.wfo-sum-item--first { margin-top: 10px; }
#wrapper .wfo-dl { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; color: var(--wfo-navy); text-decoration: underline; text-underline-offset: 4px; }
#wrapper .wfo-dl:hover { color: var(--wfo-gold); }
#wrapper .wfo-dl--quiet { font-size: 14px; color: var(--wfo-muted); }

/* Dirección y facturación */
.wfo-addr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 48px; }
.wfo-addr__col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#wrapper .wfo-addr__text { font-size: 16px; line-height: 1.65; }
#wrapper .wfo-addr__carrier { font-size: 15px; }
.wfo-bill__btn { display: none; }

/* Ayuda */
.wfo-help {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "text btn" "chips chips";
    align-items: start;
    gap: 20px 32px;
    box-sizing: border-box;
    margin-top: 48px;
    padding: 32px;
    background: var(--wfo-cream);
}
.wfo-help__text { grid-area: text; display: flex; flex-direction: column; gap: 8px; }
#wrapper .wfo-help__text p { font-size: 16px; line-height: 1.6; }
.wfo-btn--mail { grid-area: btn; }
.wfo-chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: 16px; }
.wfo-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    padding: 6px 6px 6px 16px;
    background: #fff;
    border: 1px solid var(--wfo-line);
    font-size: 15px;
}
.wfo-chip__val { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wfo-chip .wfo-copy { height: 36px; min-width: 0; }

.wfo-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ====================== CELULAR Y TABLET ====================== */
@media (max-width: 991px) {
    .wfo-list {
        gap: 0;
        border-top: 1px solid var(--wfo-line-soft);
    }
    .wfo-card { border: 0; border-bottom: 1px solid var(--wfo-line-soft); background: transparent; }

    /* Pedido en curso: fila con fecha + total, estado, miniaturas + código */
    .wfo-card--open {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "date total" "state state" "thumbs link";
        align-items: center;
        gap: 10px 12px;
        padding: 20px 0;
    }
    .wfo-card--open .wfo-card__top,
    .wfo-card--open .wfo-card__id,
    .wfo-card--open .wfo-card__bottom,
    .wfo-card--open .wfo-card__end { display: contents; }
    .wfo-card--open .wfo-card__date { grid-area: date; font-size: 17px; align-self: baseline; }
    .wfo-card--open .wfo-card__code { display: none; }
    .wfo-card--open .wfo-card__total { grid-area: total; font-size: 17px; align-self: baseline; }
    .wfo-card--open .wfo-card__status { grid-area: state; align-items: flex-start; text-align: left; }
    .wfo-card--open .wfo-card__thumbs { grid-area: thumbs; gap: 8px; }
    .wfo-card--open .wfo-thumb { width: 56px; height: 56px; }
    .wfo-card--open .wfo-thumb--3 { display: none; }
    .wfo-card--open .wfo-md { display: none; }
    .wfo-card--open .wfo-mm { display: inline; }
    .wfo-card--open .wfo-thumb--mobile-only { display: flex; }
    .wfo-card--open .wfo-card__count { display: none; }
    .wfo-card--open .wfo-card__code2 { display: inline; margin-left: 2px; font-size: 14px; color: var(--wfo-muted); overflow-wrap: anywhere; }
    .wfo-card--open .wfo-card__link { grid-area: link; position: static; justify-self: end; }
    /* El link ocupa toda la fila: se toca en cualquier parte del pedido. */
    .wfo-card--open .wfo-card__link::after { content: ""; position: absolute; inset: 0; }
    .wfo-card--open .wfo-card__link-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .wfo-card--open .wfo-arrow { display: none; }
    .wfo-card--open .wfo-chevron { display: block; opacity: .45; }

    /* Plegados */
    .wfo-fold__btn {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "date code chev" "state state chev";
        align-items: center;
        gap: 4px 6px;
        min-height: 0;
        padding: 16px 0;
    }
    .wfo-fold__date { grid-area: date; width: auto; font-size: 16px; }
    .wfo-fold__code { grid-area: code; flex: none; }
    .wfo-fold__code::before { content: "\00b7\00a0"; }
    .wfo-fold__state { grid-area: state; }
    .wfo-fold__state .wfo-state { font-size: 14px; }
    .wfo-fold__chev { grid-area: chev; opacity: .6; }
    .wfo-fold__panel { padding: 0 0 20px; }
    .wfo-fold__panel .wfo-card__bottom { flex-direction: column; align-items: stretch; gap: 14px; }
    .wfo-fold__panel .wfo-card__thumbs { flex-wrap: wrap; gap: 8px; }
    .wfo-fold__panel .wfo-thumb { width: 56px; height: 56px; }
    .wfo-fold__panel .wfo-card__end { justify-content: space-between; gap: 16px; }

    .wfo-empty { padding: 48px 24px; }
    #wrapper .wfo-empty__title { font-size: 22px; }

    /* Detalle: las franjas crema llegan hasta el borde de la pantalla (sin depender del margen exacto del tema:
       se calcula con el ancho de la pantalla). El body recorta lo que sobre, para que nunca aparezca scroll horizontal. */
    #history, #order-detail, #guest-tracking { overflow-x: clip; }
    .wfo-status { display: contents; }
    .wfo-status__top {
        gap: 10px;
        margin: 0 calc(-1 * var(--wfo-br, calc(50vw - 50%))) 0 calc(-1 * var(--wfo-bl, calc(50vw - 50%)));
        padding: 26px var(--wfo-br, calc(50vw - 50%)) 20px var(--wfo-bl, calc(50vw - 50%));
        background: var(--wfo-cream);
    }
    .wfo-status__head { flex-direction: column; gap: 16px; }
    .wfo-status__text { gap: 10px; }
    #wrapper .wfo-h2--lg { font-size: 22px; }
    #wrapper .wfo-status__text p { font-size: 15px; }
    .wfo-track-info { align-items: flex-start; text-align: left; gap: 4px; }
    .wfo-transfer { padding: 0; background: transparent; margin-top: 6px; }
    .wfo-fields { max-width: none; padding: 2px 14px; }

    .wfo-journey { margin-top: 28px; gap: 16px; }
    /* Recorrido del pedido en celular: los 4 pasos entran completos en el ancho de la pantalla (sin deslizar). */
    .wfo-track { gap: 0; overflow: visible; }
    .wfo-step { flex: 1 1 0; min-width: 0; gap: 8px; }
    .wfo-step:last-child { flex: 1 1 0; }
    .wfo-step__line { margin: 0 6px 0 8px; }
    .wfo-step__label { font-size: 13px; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
    .wfo-step__date { font-size: 12.5px; }
    .wfo-progress { display: none; }

    .wfo-body { flex-direction: column; gap: 32px; margin-top: 32px; }
    .wfo-summary { width: auto; align-self: stretch; padding: 0; background: transparent; gap: 14px; }
    .wfo-summary > .wfo-h2 { display: none; }
    .wfo-summary .wfo-line--total { padding-top: 12px; }
    .wfo-sum-item--first { margin-top: 4px; }
    .wfo-items { align-self: stretch; }
    .wfo-item { gap: 14px; }
    #wrapper .wfo-item__name { font-size: 15px; }

    .wfo-addr { grid-template-columns: 1fr; gap: 0; margin-top: 32px; }
    .wfo-addr__col { gap: 10px; }
    .wfo-bill { margin-top: 24px; gap: 0; }
    .wfo-bill__title { display: none; }
    .wfo-bill__btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        height: 56px;
        margin: 0;
        padding: 0;
        border: 0;
        border-top: 1px solid var(--wfo-line-soft);
        border-bottom: 1px solid var(--wfo-line-soft);
        border-radius: 0;
        background: none;
        font-family: inherit;
        font-size: 17px;
        color: var(--wfo-navy);
        cursor: pointer;
    }
    .wfo-bill__btn svg { transition: transform .2s ease; }
    .wfo-bill__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
    .wfo-bill.is-ready:not(.is-open) .wfo-bill__body { display: none; }
    .wfo-bill__body { padding: 14px 0; border-bottom: 1px solid var(--wfo-line-soft); }

    .wfo-help {
        grid-template-columns: 1fr;
        grid-template-areas: "text" "chips" "btn";
        gap: 12px;
        margin: 32px calc(-1 * var(--wfo-br, calc(50vw - 50%))) 0 calc(-1 * var(--wfo-bl, calc(50vw - 50%)));
        padding: 28px var(--wfo-br, calc(50vw - 50%)) 28px var(--wfo-bl, calc(50vw - 50%));
    }
    #wrapper .wfo-help__text p { font-size: 15px; }
    .wfo-chips { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 2px 14px; background: #fff; }
    .wfo-chip { padding: 12px 0; border: 0; border-bottom: 1px solid var(--wfo-line-soft); justify-content: space-between; }
    .wfo-chip:last-child { border-bottom: 0; }
    .wfo-chip__val { flex-direction: column; align-items: flex-start; gap: 3px; }
    .wfo-chip .wfo-copy { height: 44px; min-width: 44px; }
    #wrapper .wfo-copy--inline { height: 44px; min-width: 44px; }
    #wrapper .wfo-btn--mail { width: 100%; margin-top: 4px; }
    #wrapper .wfo-btn--reorder { height: 44px; }
}


/* ---------- Arrepentimiento (módulo wfarrepentimiento) ---------- */
/* Etiqueta junto al estado del pedido (listado): "Devolución solicitada" */
.wfo-arr-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--wfo-cream, #F9F4F0);
    color: var(--wfo-navy, #1E2A3A);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* Bloque "Devolución solicitada" (detalle del pedido): recuadro crema de ancho completo, sin sombras */
.wfo-arr { box-sizing: border-box; margin: 40px 0 0; padding: 28px 32px; background: var(--wfo-cream); box-shadow: none; }
#wrapper .wfo-arr .wfo-arr__list { margin: 16px 0 0; padding: 0; }
.wfo-arr__row { display: grid; grid-template-columns: 110px 1fr; gap: 4px 16px; align-items: baseline; padding: 8px 0; }
#wrapper .wfo-arr dt, #wrapper .wfo-arr dd { margin: 0; padding: 0; font-weight: 400; }
.wfo-arr__val { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 16px; line-height: 1.5; color: var(--wfo-navy); min-width: 0; overflow-wrap: anywhere; }
#wrapper .wfo-arr__prods { margin: 0; padding: 0; list-style: none; }
#wrapper .wfo-arr__prods li { margin: 0 0 4px; padding: 0; }
#wrapper .wfo-arr__prods li:last-child { margin-bottom: 0; }
#wrapper .wfo-arr .wfo-arr__note { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--wfo-navy); }

/* "Copiar" como link de texto */
#wrapper .wfo-copy.wfo-copy--link {
    height: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    color: var(--wfo-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#wrapper .wfo-copy.wfo-copy--link:hover { background: none; color: var(--wfo-navy); }

/* Link "Arrepentirme de esta compra" dentro de la ayuda */
#wrapper .wfo-help__text p.wfo-help__arr { margin-top: 4px; font-size: 15px; }

@media (max-width: 991px) {
    .wfo-arr { padding: 22px 20px; margin: 32px 0 0; }
    .wfo-arr__row { grid-template-columns: 1fr; gap: 2px; padding: 8px 0; }
    #wrapper .wfo-copy.wfo-copy--link { min-height: 44px; min-width: 44px; }
}

/* ---------- Seguimiento del envío (estado "En camino") ---------- */
.wfo-ship { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.wfo-ship__row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.wfo-ship__code { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; line-height: 1.4; color: var(--wfo-navy); word-break: break-all; }
#wrapper a.wfo-ship__code--link { color: var(--wfo-navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
#wrapper a.wfo-ship__code--link:hover { color: var(--wfo-gold); }
#wrapper .wfo-ship .wfo-ship__btn { margin-top: 10px; gap: 8px; }
#wrapper .wfo-ship__note { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--wfo-muted); }

/* Transferencia: aviso con ícono de información, debajo de los datos */
#wrapper .wfo-transfer__info { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--wfo-muted); }
#wrapper .wfo-transfer__info svg { flex: none; margin-top: 3px; color: var(--wfo-muted); }
#wrapper .wfo-transfer__info .wfo-link { color: var(--wfo-navy); }

@media (max-width: 991px) {
    #wrapper .wfo-ship .wfo-ship__btn { align-self: stretch; justify-content: center; width: 100%; }
    #wrapper .wfo-ship__code { font-size: 17px; }
    #wrapper .wfo-transfer__info { font-size: 14.5px; margin-top: 14px; }
}
