/* =========================================================
   FittingExpress · Despacho gratis en Santiago y envíos a regiones
   ========================================================= */

/* Barra superior */
.topbar-free { color: #fff; font-weight: 600; }
.topbar-free .ms { color: var(--accent) !important; }

/* Banner de la portada */
.freeship { padding: 56px 0 8px; }
.freeship-card {
  overflow: hidden; border-radius: var(--r-xl);
  background: var(--surface-lowest, #fff);
  box-shadow: 0 0 0 1px var(--outline-variant), 0 18px 40px rgba(1, 34, 55, .08);
}
.freeship-main {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(110deg, #e3f6fa 0%, #f2fbfd 55%, #fff 100%);
}
.freeship-main::after {
  content: ""; position: absolute; z-index: -1; right: -60px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 181, 205, .22), transparent 70%);
}
.freeship-badge { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--accent); color: var(--ink); box-shadow: 0 0 0 8px rgba(5, 181, 205, .15); }
.freeship-badge .ms { font-size: 34px; }
.freeship-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--secondary-ink, #006b82); margin-bottom: 6px; }
.freeship-main h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-size: clamp(22px, 2.6vw, 32px); color: var(--ink); margin: 0; text-wrap: balance; }
.freeship-main h2 em { font-style: normal; color: var(--secondary-ink, #006b82); white-space: nowrap; }
.freeship-main p { margin: 8px 0 0; color: var(--on-surface-variant); font-size: 15px; }
.freeship-cta { background: var(--ink); color: #fff; font-weight: 700; }
.freeship-cta:hover { box-shadow: 0 0 0 4px rgba(1, 34, 55, .18); }

.freeship-regions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 32px; border-top: 1px solid var(--outline-variant); }
.freeship-regions-txt { display: grid; gap: 2px; font-size: 14px; color: var(--on-surface-variant); }
.freeship-regions-txt b { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink); }
.freeship-regions-txt .ms { font-size: 20px; color: var(--primary); }
.freeship-couriers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.freeship-couriers li { height: 34px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-full); background: var(--surface-low); box-shadow: inset 0 0 0 1px var(--outline-variant); font-size: 13px; font-weight: 700; color: var(--ink); }

/* Avance en el carro */
.freeship-progress { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 16px 18px; border-radius: var(--r-lg); background: #e8f7fa; box-shadow: inset 0 0 0 1px rgba(5, 181, 205, .35); }
.freeship-progress-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.freeship-progress-ico .ms { font-size: 24px; }
.freeship-progress-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.freeship-progress p { margin: 0; font-size: 15px; color: var(--ink); }
.freeship-progress small { font-size: 12.5px; color: var(--on-surface-variant); }
.freeship-bar { height: 8px; border-radius: 99px; background: rgba(1, 34, 55, .1); overflow: hidden; }
.freeship-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cyan-deep, #0298b9), var(--accent)); transition: width .5s var(--ease-emph, ease); }
.freeship-progress.is-done { background: #e6f5ec; box-shadow: inset 0 0 0 1px rgba(46, 139, 87, .35); }
.freeship-progress.is-done .freeship-progress-ico { background: #2e8b57; color: #fff; }
.freeship-progress.is-done .freeship-bar i { background: #2e8b57; }

@media (max-width: 960px) {
  .freeship-main { grid-template-columns: auto minmax(0, 1fr); padding: 24px; }
  .freeship-cta { grid-column: 1 / -1; justify-self: start; }
  .freeship-regions { padding: 18px 24px; }
}
@media (max-width: 640px) {
  .freeship { padding-top: 40px; }
  .freeship-main { grid-template-columns: 1fr; gap: 14px; padding: 20px 18px; }
  .freeship-badge { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 0 0 6px rgba(5, 181, 205, .15); }
  .freeship-badge .ms { font-size: 26px; }
  .freeship-cta { justify-self: stretch; }
  .freeship-regions { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .freeship-bar i { transition: none; } }

/* Comunas incluidas (desplegable) */
.freeship-comunas { margin-top: 10px; font-size: 13.5px; }
.freeship-comunas summary { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 600; color: var(--secondary-ink, #006b82); list-style: none; border-radius: var(--r-xs); }
.freeship-comunas summary::-webkit-details-marker { display: none; }
.freeship-comunas summary .ms { font-size: 18px; }
.freeship-comunas summary:hover { text-decoration: underline; }
.freeship-comunas summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.freeship-comunas p { margin: 8px 0 0; color: var(--on-surface-variant); line-height: 1.6; }

/* Regiones: despacho por volumen sin costo */
.freeship-volume { display: flex; align-items: center; gap: 14px; padding: 16px 32px; background: #fff8e6; border-top: 1px solid rgba(201, 145, 0, .25); font-size: 14px; color: var(--on-surface-variant); transition: background-color .15s var(--ease); }
.freeship-volume:hover { background: #fff1cc; }
.freeship-volume b { color: var(--ink); }
.freeship-volume-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #ffd166; color: var(--ink); }
.freeship-volume-ico .ms { font-size: 22px; }
.freeship-volume > span:not(.freeship-volume-ico) { flex: 1; }
.freeship-volume-go { color: var(--ink); transition: transform .2s var(--ease); }
.freeship-volume:hover .freeship-volume-go { transform: translateX(4px); }

/* Aviso compacto bajo el hero (fondo oscuro, sobre el banner del mismo día) */
.freeship-strip { background: var(--night, #011a2b); padding: 0 0 14px; }
.freeship-strip-card { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: var(--r-lg); background: rgba(5, 181, 205, .1); box-shadow: inset 0 0 0 1px rgba(5, 181, 205, .35); color: #fff; transition: background-color .15s var(--ease); }
.freeship-strip-card:hover { background: rgba(5, 181, 205, .18); }
.freeship-strip-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.freeship-strip-ico { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--ink); }
.freeship-strip-ico .ms { font-size: 24px; }
.freeship-strip-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.freeship-strip-txt b { font-size: 15.5px; }
.freeship-strip-txt span { font-size: 13px; color: #9fbccb; }
.freeship-strip-go { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.freeship-strip-go .ms { font-size: 18px; transition: transform .2s var(--ease); }
.freeship-strip-card:hover .freeship-strip-go .ms { transform: translateY(2px); }

/* Cobertura: fila de despacho por volumen */
.cr-volume { color: inherit; box-shadow: inset 0 0 0 1px rgba(201, 145, 0, .3); background: #fff8e6 !important; }
.cr-volume strong { font-size: 15px !important; color: var(--ink) !important; text-decoration: underline; text-underline-offset: 3px; }

.freeship-progress small a { color: var(--secondary-ink, #006b82); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
#despacho { scroll-margin-top: 140px; }

@media (max-width: 640px) {
  .freeship-volume { padding: 14px 18px; align-items: flex-start; }
  .freeship-volume-go { display: none; }
  .freeship-strip-card { flex-wrap: wrap; padding: 12px 14px; }
  .freeship-strip-txt { flex: 1 1 calc(100% - 54px); }
  .freeship-strip-go { margin-left: 54px; }
}

/* Tarifas de la provincia en el banner */
.freeship-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.freeship-facts li { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 6px 14px 6px 10px; border-radius: var(--r-full); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(5, 181, 205, .3); font-size: 13.5px; color: var(--on-surface-variant); }
.freeship-facts li .ms { font-size: 19px; color: var(--primary); }
.freeship-facts li b { color: var(--ink); font-variant-numeric: tabular-nums; }
.freeship-facts li:first-child b { color: var(--success, #2e8b57); }

/* Cobertura: encabezado de zona y aviso del mismo día */
.cr-zone { margin: 0 0 2px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--on-surface-variant); }
.cr-zone b { color: var(--ink); }
.cr-sameday { background: #fff8e6 !important; box-shadow: inset 0 0 0 1px rgba(201, 145, 0, .3); }
.cr-sameday .ms { color: #b07d00 !important; font-variation-settings: 'FILL' 1; }
.cr-sameday span { font-weight: 600; color: var(--ink); }

/* Carro y checkout más limpios: sin la descripción del producto en cada línea
   y sin el selector de país (solo vendemos en Chile). */
.wc-block-cart-item__product .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }
.wc-block-checkout .wc-block-components-address-form__country { display: none; }

/* Cantidad y eliminar en carro y mini carro: áreas táctiles cómodas (mín. 40 px) */
.wc-block-components-quantity-selector { min-height: 40px; border-radius: var(--r-full, 999px) !important; }
.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { min-width: 40px; min-height: 40px; font-size: 18px; }
.wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input { min-height: 40px; font-size: 15px; font-weight: 600; }
.wc-block-cart-item__remove-link, .wc-block-mini-cart-items .wc-block-cart-item__remove-link { min-width: 40px; min-height: 40px; display: inline-grid !important; place-items: center; }
