/*
 * Carrito, checkout y pedido recibido (SPEC-32 · SPEC-26). Solo se carga en esas
 * páginas y en «Mi cuenta». Colores y tipos del tema (theme.json).
 */

/* ---------- Pasos numerados (RF-04) ---------- */
.vf-steps {
  max-width: var(--wp--style--global--wide-size, 1200px);
  margin: 0 auto 1.5rem;
  box-sizing: border-box;
}
.vf-steps__list {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.vf-steps__step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem;
  border-bottom: 3px solid var(--wp--preset--color--line, #d6e0ea);
  color: var(--wp--preset--color--grey, #586574);
  font-size: 0.95rem;
  line-height: 1.2;
}
.vf-steps__step a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}
.vf-steps__step a:hover .vf-steps__label { text-decoration: underline; }
.vf-steps__num {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-weight: 700;
  font-size: 0.85rem;
}
.vf-steps__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vf-steps__step.is-done {
  border-bottom-color: var(--wp--preset--color--primary, #0e68a7);
  color: var(--wp--preset--color--primary, #0e68a7);
}
.vf-steps__step.is-current {
  border-bottom-color: var(--wp--preset--color--navy, #132c46);
  color: var(--wp--preset--color--navy, #132c46);
  font-weight: 700;
}
.vf-steps__step.is-current .vf-steps__num {
  background: var(--wp--preset--color--navy, #132c46);
  border-color: var(--wp--preset--color--navy, #132c46);
  color: #fff;
}
@media (max-width: 600px) {
  .vf-steps__step { flex: 0 1 auto; justify-content: center; padding-inline: 0.45rem; }
  .vf-steps__step.is-current { flex: 1 0 auto; justify-content: flex-start; }
  .vf-steps__step.is-current .vf-steps__label { overflow: visible; }
  .vf-steps__step:not(.is-current) .vf-steps__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------- Líneas del carrito y del resumen (RF-01, RF-02, RF-03) ---------- */
/* La descripción corta sale cortada («Pack compuesto po…»): fuera. */
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-checkout .wc-block-components-product-metadata__description,
.wc-block-mini-cart__drawer .wc-block-components-product-metadata__description {
  display: none;
}
img.vf-design-thumb {
  object-fit: contain;
  background: var(--wp--preset--color--surface-2, #f3f8fc);
  border: 1px solid var(--wp--preset--color--line, #d6e0ea);
  border-radius: 4px;
}
.vf-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.35rem 0 0.6rem;
  font-size: 0.9rem;
}
.vf-line-actions__link {
  color: var(--wp--preset--color--primary, #0e68a7);
  font-weight: 600;
}
/* Mensaje por cantidad bajo el precio de la línea (SPEC-40 RF-05); estilo base en app.css */
.vf-line-nudge .vf-nudge {
  margin: 0.4rem 0 0.2rem;
  font-size: 0.85rem;
}

/* ---------- Confianza junto al botón final (RF-06) ---------- */
.vf-checkout-trust {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--wp--preset--color--line, #d6e0ea);
  border-radius: 8px;
  background: var(--wp--preset--color--surface-2, #f3f8fc);
  font-size: 0.92rem;
  line-height: 1.45;
}
.vf-checkout-trust__item { margin: 0 0 0.35rem; }
.vf-checkout-trust__item:last-child { margin-bottom: 0; }
.vf-checkout-trust a { color: var(--wp--preset--color--primary, #0e68a7); }

/* ---------- Pedido recibido: transferencia, «Qué pasa ahora» y diseños (RF-10) ---------- */
.vf-bacs,
.vf-next-steps {
  max-width: var(--wp--style--global--wide-size, 1200px);
  box-sizing: border-box;
  margin-block: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
}
.vf-bacs {
  border: 2px solid var(--wp--preset--color--primary, #0e68a7);
  background: var(--wp--preset--color--surface-2, #f3f8fc);
}
.vf-bacs__title,
.vf-next-steps__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.25;
}
.vf-bacs__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0 0 0.75rem;
}
.vf-bacs__row { margin: 0; }
.vf-bacs__row dt {
  margin: 0;
  color: var(--wp--preset--color--grey, #586574);
  font-size: 0.85rem;
}
.vf-bacs__row dd {
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}
.vf-bacs__mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.vf-bacs__note { margin: 0; font-size: 0.92rem; }

.vf-next-steps {
  border: 1px solid var(--wp--preset--color--line, #d6e0ea);
  background: var(--wp--preset--color--surface, #fff);
}
.vf-next-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: vf-next;
}
.vf-next-steps__step {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 2.4rem;
  counter-increment: vf-next;
}
.vf-next-steps__step::before {
  content: counter(vf-next);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--wp--preset--color--sky, #e7f2f9);
  color: var(--wp--preset--color--navy, #132c46);
  font-weight: 700;
  font-size: 0.9rem;
}
.vf-next-steps__step strong { display: block; color: var(--wp--preset--color--navy, #132c46); }
.vf-next-steps__step--delivery::before {
  background: var(--wp--preset--color--navy, #132c46);
  color: #fff;
}
.vf-next-steps__step--delivery strong { font-size: 1.05rem; }
.vf-order-designs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--wp--preset--color--line, #d6e0ea);
  list-style: none;
}
.vf-order-designs__item {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex: 1 1 18rem;
  min-width: 0;
}
.vf-order-designs__item img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: var(--wp--preset--color--surface-2, #f3f8fc);
  border: 1px solid var(--wp--preset--color--line, #d6e0ea);
  border-radius: 6px;
}
.vf-order-designs__name { display: block; font-weight: 600; overflow-wrap: anywhere; }
.vf-order-designs__item a { color: var(--wp--preset--color--primary, #0e68a7); }
@media (max-width: 600px) {
  .vf-bacs,
  .vf-next-steps { padding: 1rem; }
}
