/* Avance hacia los regalos mientras el cliente compra. */

.geo-gp[hidden] { display: none !important; }
.geo-gp, .geo-gp * { box-sizing: border-box; }

.geo-gp__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.geo-gp__icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--geo-yellow, #F5C518);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    color: var(--geo-black, #0D0D0D);
}
/* Una sola línea: los nombres largos de regalos se recortan con "…" (texto completo en el title). */
.geo-gp__msg {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.geo-gp__msg strong { font-weight: 800; }
.geo-gp__amount { font-size: 1.12em; }

/* Barra con un punto por umbral y su monto debajo. */
.geo-gp__track {
    position: relative;
    height: 6px;
    margin: 8px 8px 17px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}
.geo-gp__fill {
    position: absolute;
    inset: 0 auto 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #E0B210, var(--geo-yellow, #F5C518));
    transition: width .5s ease;
}
.geo-gp__dot {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: #2a2a2a;
    border: 2px solid var(--geo-yellow, #F5C518);
}
.geo-gp__dot.is-reached { background: var(--geo-yellow, #F5C518); }
.geo-gp__dot-label {
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    opacity: .75;
}
.geo-gp__dot-label.is-end { left: auto; right: -2px; transform: none; }
.geo-gp__dot-label.is-start { left: -2px; transform: none; }
.geo-gp__dot.is-reached .geo-gp__dot-label { opacity: 1; color: var(--geo-yellow, #F5C518); }

/* Lista de hitos. */
.geo-gp__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.geo-gp__step { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; line-height: 1.3; }
.geo-gp__step-text { display: flex; flex-direction: column; min-width: 0; }
.geo-gp__step-min { font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; opacity: .8; }
.geo-gp__step-gift { font-weight: 600; }
.geo-gp__step.is-reached .geo-gp__step-min { color: var(--geo-success-light, #66BB6A); opacity: 1; }
.geo-gp__step.is-next .geo-gp__step-min { color: var(--geo-yellow, #F5C518); opacity: 1; }
.geo-gp__thumb {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--geo-black, #0D0D0D);
}
.geo-gp__thumb--icon { background: var(--geo-yellow, #F5C518); }

@media (max-width: 600px) {
    .geo-gp__msg { font-size: 13px; }
    .geo-gp__icon { width: 26px; height: 26px; font-size: 14px; }
}

/* ── Carrito y mini-carrito ────────────────────────────────────── */
.geo-gp--inline {
    margin: 0 0 16px;
    padding: 12px 14px 4px;
    border-radius: 10px;
    background: var(--geo-black, #0D0D0D);
    border: 2px solid var(--geo-yellow, #F5C518);
    color: #fff;
}
.geo-gp--inline .geo-gp__msg { white-space: normal; }
.geo-gp--inline .geo-gp__msg strong { color: var(--geo-yellow, #F5C518); }
.geo-gp--inline.is-done .geo-gp__msg strong { color: var(--geo-success-light, #66BB6A); }
.geo-gp--inline .geo-gp__steps { padding: 0 0 10px; }
.widget_shopping_cart .geo-gp--inline .geo-gp__thumb { width: 32px !important; height: 32px !important; }

/* ── Ficha del producto ────────────────────────────────────────── */
.geo-gp-product {
    margin: 10px 0 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(245, 197, 24, .15);
    border-left: 3px solid var(--geo-yellow, #F5C518);
    color: #5c4500;
    font-size: .92em;
    line-height: 1.4;
}
.geo-gp-product p { margin: 0; }
.geo-gp-product p + p { margin-top: 6px; }
.geo-gp-product__note { opacity: .8; font-size: .9em; }

/* ── Avisos ────────────────────────────────────────────────────── */
.geo-gp-notice { display: block; margin-top: 4px; font-weight: 700; }

.geo-gp-toast {
    position: fixed;
    left: 50%;
    top: 16px;
    z-index: 99999;
    max-width: min(92vw, 520px);
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--geo-black, #0D0D0D);
    color: var(--geo-yellow, #F5C518);
    border: 1px solid var(--geo-yellow, #F5C518);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.geo-gp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ══════════════════════════════════════════════════════════════════
   Botón de regalos: diseño A "fab" (botón flotante) o C "tab" (pestaña
   lateral). El JS pone .is-fab / .is-tab según el dispositivo.
   ══════════════════════════════════════════════════════════════════ */
.geo-gw { display: none; --gw-ink: #141414; --gw-yellow: var(--geo-yellow, #F5C518); }
.geo-gw.is-fab, .geo-gw.is-tab { display: block; }
.geo-gw[hidden] { display: none !important; }
.geo-gw, .geo-gw * { box-sizing: border-box; }

/* Los temas dan estilos a <button>: aquí se neutralizan. */
.geo-gw button { -webkit-appearance: none; appearance: none; margin: 0; font: inherit; line-height: 1.2; text-transform: none; letter-spacing: normal; box-shadow: none; min-height: 0; cursor: pointer; }
.geo-gw button:focus, .geo-gw a:focus { outline: none; }
.geo-gw button:focus-visible, .geo-gw a:focus-visible { outline: 3px solid var(--gw-yellow); outline-offset: 2px; }

.geo-gw .geo-gw__launcher {
    position: fixed;
    z-index: 99980;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: var(--gw-ink);
    color: var(--gw-yellow);
}
.geo-gw .geo-gw__launcher:hover, .geo-gw .geo-gw__launcher:focus { background: var(--gw-ink); color: var(--gw-yellow); }
.geo-gw__icon { position: relative; display: inline-flex; color: var(--gw-yellow); }
.geo-gw__ring, .geo-gw__badge, .geo-gw__gauge, .geo-gw__label { display: none; }

/* ── A: botón redondo flotante con anillo ─────────────────────── */
.geo-gw.is-fab .geo-gw__launcher {
    right: 20px;
    bottom: calc(var(--geo-gw-offset, 24px) + env(safe-area-inset-bottom, 0px));
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .32);
    transition: transform .2s;
}
.geo-gw.is-fab.is-left .geo-gw__launcher { right: auto; left: 20px; }
.geo-gw.is-fab .geo-gw__launcher:hover { transform: scale(1.05); }
.geo-gw.is-fab .geo-gw__ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.geo-gw__ring-bg { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: 5; }
.geo-gw__ring-fg { fill: none; stroke: var(--gw-yellow); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2, .8, .2, 1); }
.geo-gw.is-done .geo-gw__ring-fg { stroke: var(--geo-success-light, #66BB6A); }
.geo-gw.is-fab .geo-gw__badge {
    display: flex;
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 2px solid #fff;
    background: var(--gw-yellow);
    color: var(--gw-ink);
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.geo-gw.is-fab .geo-gw__launcher.is-nudge { animation: geo-gw-pop .6s ease; }
@keyframes geo-gw-pop { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

/* Nota al agregar (solo A): burbuja encima del botón */
.geo-gw__pill { display: none; }
.geo-gw.is-fab .geo-gw__pill {
    display: block;
    position: fixed;
    z-index: 99981;
    right: 20px;
    bottom: calc(var(--geo-gw-offset, 24px) + 78px + env(safe-area-inset-bottom, 0px));
    max-width: min(340px, calc(100vw - 40px));
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    background: var(--gw-ink);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.geo-gw.is-fab.is-left .geo-gw__pill { right: auto; left: 20px; border-radius: 14px 14px 14px 4px; }
.geo-gw.is-fab .geo-gw__pill.is-visible { opacity: 1; transform: none; }

/* ── C: pestaña pegada al borde derecho con medidor vertical ──── */
.geo-gw.is-tab .geo-gw__launcher {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 9px;
    padding: 14px 9px 12px;
    border-radius: 14px 0 0 14px;
    box-shadow: -6px 6px 18px rgba(0, 0, 0, .25);
}
.geo-gw.is-tab .geo-gw__gauge { display: block; position: relative; width: 6px; height: 64px; border-radius: 6px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.geo-gw.is-tab .geo-gw__gauge i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gw-yellow); transition: height .6s ease; }
.geo-gw.is-done.is-tab .geo-gw__gauge i { background: var(--geo-success-light, #66BB6A); }
.geo-gw.is-tab .geo-gw__label { display: block; writing-mode: vertical-rl; transform: rotate(180deg); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.geo-gw.is-tab .geo-gw__launcher.is-nudge { animation: geo-gw-nudge .7s ease; }
@keyframes geo-gw-nudge { 30% { transform: translate(-7px, -50%); } 60% { transform: translate(0, -50%); } }

/* ── Panel ──────────────────────────────────────────────────────── */
.geo-gw__scrim {
    position: fixed;
    inset: 0;
    /* Encima del botón "Ingresa tu ubicación" (999998); el popup de ubicación (999999, después en la página) sigue por encima. */
    z-index: 999999;
    background: rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.geo-gw.is-open .geo-gw__scrim { opacity: 1; pointer-events: auto; }
.geo-gw__panel {
    position: fixed;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    color: var(--gw-ink);
    background: #fff;
    font-size: 14px;
    line-height: 1.4;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s .3s;
}
.geo-gw.is-open .geo-gw__panel { visibility: visible; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s, visibility 0s; }
.geo-gw .geo-gw__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: rgba(0, 0, 0, .07);
    color: inherit;
    font-size: 14px;
}
.geo-gw__title { margin: 0; padding-right: 40px; font-size: 20px; font-weight: 800; line-height: 1.15; }
.geo-gw__sub { margin: 0; font-size: 13px; opacity: .85; }
.geo-gw__sub strong { font-weight: 800; }

/* Camino de regalos */
.geo-gw__path { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.geo-gw__step { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; padding: 8px 0; }
.geo-gw__step + .geo-gw__step::before { content: ""; position: absolute; left: 25px; top: -10px; width: 2px; height: 20px; background: rgba(0, 0, 0, .12); }
.geo-gw__step.is-got + .geo-gw__step::before { background: var(--gw-yellow); }
.geo-gw__thumb { position: relative; width: 52px; height: 52px; }
.geo-gw__thumb .geo-gp__thumb { width: 52px !important; height: 52px !important; border-radius: 14px; background: #F3F1EA; color: #9A9A9A; }
.geo-gw__step.is-got .geo-gw__thumb .geo-gp__thumb--icon { background: var(--gw-yellow); color: var(--gw-ink); }
.geo-gw__step:not(.is-got) .geo-gw__thumb img { filter: grayscale(1); opacity: .7; }
.geo-gw__lock {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--gw-ink);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
}
.geo-gw__step.is-got .geo-gw__lock { background: var(--geo-success, #2E7D32); }
.geo-gw__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.geo-gw__text small { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.geo-gw__step.is-got .geo-gw__text small { color: var(--geo-success, #2E7D32); opacity: 1; }
.geo-gw__step.is-next .geo-gw__text small { color: #A87C00; opacity: 1; }
.geo-gw__text b { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.geo-gw__mini { display: block; height: 5px; margin-top: 5px; border-radius: 5px; background: rgba(0, 0, 0, .09); overflow: hidden; }
.geo-gw__mini i { display: block; height: 100%; border-radius: inherit; background: var(--gw-yellow); }

.geo-gw__foot { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.geo-gw a.geo-gw__cta {
    display: block;
    padding: 12px;
    border-radius: 999px;
    background: var(--gw-yellow);
    color: var(--gw-ink);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}
.geo-gw a.geo-gw__cta:hover { filter: brightness(.95); color: var(--gw-ink); }
.geo-gw .geo-gw__more { border: 0; padding: 8px; background: none; color: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; opacity: .75; }
.geo-gw .geo-gw__more:hover { background: none; color: inherit; opacity: 1; }

/* A en computador: tarjeta flotante sobre el botón (sin oscurecer la página) */
.geo-gw.is-fab .geo-gw__scrim { background: transparent; }
.geo-gw.is-fab .geo-gw__panel {
    right: 20px;
    bottom: calc(var(--geo-gw-offset, 24px) + 80px + env(safe-area-inset-bottom, 0px));
    width: 380px;
    max-height: calc(100vh - var(--geo-gw-offset, 24px) - 120px);
    padding: 20px 18px 16px;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transform-origin: bottom right;
}
.geo-gw.is-fab.is-left .geo-gw__panel { right: auto; left: 20px; transform-origin: bottom left; }
.geo-gw.is-fab.is-open .geo-gw__panel { opacity: 1; transform: none; }

/* C: panel lateral oscuro */
.geo-gw.is-tab .geo-gw__panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(380px, 86vw);
    padding: 24px 20px calc(18px + env(safe-area-inset-bottom, 0px));
    background: var(--gw-ink);
    color: #fff;
    transform: translateX(105%);
    box-shadow: -12px 0 32px rgba(0, 0, 0, .3);
}
.geo-gw.is-tab.is-open .geo-gw__panel { transform: none; }
.geo-gw.is-tab .geo-gw__title { color: var(--gw-yellow); font-size: 22px; }
.geo-gw.is-tab .geo-gw__sub strong { color: #fff; }
.geo-gw.is-tab .geo-gw__close { background: rgba(255, 255, 255, .12); }
.geo-gw.is-tab .geo-gw__step + .geo-gw__step::before { background: rgba(255, 255, 255, .15); }
.geo-gw.is-tab .geo-gw__step.is-got + .geo-gw__step::before { background: var(--gw-yellow); }
.geo-gw.is-tab .geo-gw__thumb .geo-gp__thumb { background: #262626; color: #777; }
.geo-gw.is-tab .geo-gw__lock { border-color: var(--gw-ink); }
.geo-gw.is-tab .geo-gw__step.is-got .geo-gw__text small { color: var(--geo-success-light, #66BB6A); }
.geo-gw.is-tab .geo-gw__step.is-next .geo-gw__text small { color: var(--gw-yellow); }
.geo-gw.is-tab .geo-gw__mini { background: rgba(255, 255, 255, .12); }

/* Celular */
@media (max-width: 768px) {
    .geo-gw.is-fab .geo-gw__launcher { right: 16px; width: 58px; height: 58px; }
    .geo-gw.is-fab.is-left .geo-gw__launcher { left: 16px; }
    .geo-gw.is-fab .geo-gw__pill { right: 16px; bottom: calc(var(--geo-gw-offset, 24px) + 70px + env(safe-area-inset-bottom, 0px)); }
    .geo-gw.is-fab.is-left .geo-gw__pill { left: 16px; }
    /* A en celular: hoja que sube desde abajo, con fondo oscurecido */
    .geo-gw.is-fab .geo-gw__scrim { background: rgba(0, 0, 0, .35); }
    .geo-gw.is-fab .geo-gw__panel,
    .geo-gw.is-fab.is-left .geo-gw__panel {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 82vh;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px));
        border-radius: 22px 22px 0 0;
        opacity: 1;
        transform: translateY(105%);
    }
    .geo-gw.is-fab.is-open .geo-gw__panel { transform: none; }
    .geo-gw.is-tab .geo-gw__launcher { padding: 12px 7px 10px; gap: 8px; }
    .geo-gw.is-tab .geo-gw__gauge { height: 52px; }
    .geo-gw.is-tab .geo-gw__label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .geo-gp__fill, .geo-gp-toast, .geo-gw__panel, .geo-gw__scrim, .geo-gw__pill, .geo-gw__ring-fg, .geo-gw__gauge i { transition: none !important; }
    .geo-gw__launcher.is-nudge { animation: none !important; }
}

/* Regalo que exige un método de pago */
.geo-gw__pay { display: inline-block; align-self: flex-start; margin-top: 3px; padding: 2px 8px; border-radius: 999px; background: rgba(245, 197, 24, .18); color: #7A5C00; font-size: 11px; font-weight: 700; }
.geo-gw.is-tab .geo-gw__pay { background: rgba(245, 197, 24, .16); color: var(--gw-yellow); }

/* Algunos temas pintan todos los <button> (fondo claro, bordes, padding,
   opacidad) con reglas más fuertes: el botón de regalos siempre oscuro. */
.geo-gw .geo-gw__launcher,
.geo-gw .geo-gw__launcher:hover,
.geo-gw .geo-gw__launcher:focus,
.geo-gw .geo-gw__launcher:active {
    background: var(--gw-ink) !important;
    background-image: none !important;
    color: var(--gw-yellow) !important;
    border: 0 !important;
    opacity: 1 !important;
    filter: none !important;
    text-indent: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
.geo-gw.is-tab .geo-gw__launcher { width: auto !important; height: auto !important; padding: 14px 9px 12px !important; border-radius: 14px 0 0 14px !important; box-shadow: -6px 6px 18px rgba(0, 0, 0, .25) !important; }
.geo-gw.is-fab .geo-gw__launcher { padding: 0 !important; border-radius: 50% !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .32) !important; }
.geo-gw.is-tab .geo-gw__gauge { display: block !important; background: rgba(255, 255, 255, .18) !important; }
.geo-gw.is-tab .geo-gw__gauge i { display: block !important; background: var(--gw-yellow) !important; }
.geo-gw.is-done.is-tab .geo-gw__gauge i { background: var(--geo-success-light, #66BB6A) !important; }
.geo-gw.is-tab .geo-gw__label { display: block !important; color: #fff !important; }
.geo-gw .geo-gw__icon, .geo-gw .geo-gw__icon svg { color: var(--gw-yellow) !important; stroke: currentColor; }
@media (max-width: 768px) {
    .geo-gw.is-tab .geo-gw__launcher { padding: 12px 7px 10px !important; }
}

/* ── Barra en espacios angostos (mini-carrito del encabezado) ───────
   Solo mensaje, barra y "1 de 3 regalos ganados"; la lista completa
   está en la página del carrito y en el botón de regalos. */
.geo-gp__count { display: none; margin: 0 0 10px !important; font-size: 12px; font-weight: 700; color: var(--geo-yellow, #F5C518); }
.geo-gp--inline { container-type: inline-size; }
@container (max-width: 420px) {
    .geo-gp__steps, .geo-gp__dot-label { display: none !important; }
    .geo-gp__count { display: block; }
    .geo-gp__track { margin: 10px 6px 8px; }
    .geo-gp__msg { font-size: 13px; }
}
.widget_shopping_cart_content .geo-gp--inline .geo-gp__steps,
.widget_shopping_cart_content .geo-gp--inline .geo-gp__dot-label { display: none !important; }
.widget_shopping_cart_content .geo-gp--inline .geo-gp__count { display: block; }
.widget_shopping_cart_content .geo-gp--inline .geo-gp__track { margin: 10px 6px 8px; }
.widget_shopping_cart_content .geo-gp--inline { margin: 12px 0; padding: 10px 12px 2px; }
