/**
 * Tibor B2B — WooCommerce overrides
 * TIBOR-CART-BUILD: 5.6.1  (si ves este texto en el archivo en vivo, el CSS está actualizado)
 */

/* Ocultar sidebar en tienda */
.woocommerce-page .widget-area { display: none; }
.woocommerce-page .site-main { width: 100%; }

/* Breadcrumb */
.woocommerce-breadcrumb {
  font-size: .8rem;
  color: var(--color-text-muted);
  padding: 14px 0;
  margin-bottom: 0;
  background: var(--color-bg);
}
.woocommerce-breadcrumb a { color: var(--color-primary-lt); }
.woocommerce-breadcrumb a:hover { color: var(--color-accent); }

/* Mensajes / Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: var(--radius-md);
  border: none;
  padding: 14px 18px;
  font-size: .875rem;
  margin-bottom: 20px;
}
.woocommerce-message { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #27ae60; }
.woocommerce-info    { background: #eef3fb; color: #0b3989; border-left: 4px solid #0b3989; }
.woocommerce-error   { background: #ffebee; color: #c62828; border-left: 4px solid #e53e3e; }
.woocommerce-message .button,
.woocommerce-info .button {
  background: var(--color-primary);
  color: #fff;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: .8rem;
  font-weight: 600;
  border: none;
  float: right;
}
.woocommerce-message .button:hover { background: var(--color-accent); color: #fff; }

/* Archive shop */
.woocommerce-products-header { display: none; }
.woocommerce-result-count {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}
.woocommerce-ordering select {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 7px 12px;
  font-size: .82rem;
  background: #fff;
  outline: none;
}

/* Paginación */
.woocommerce-pagination {
  margin-top: 32px;
  text-align: center;
}
.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.woocommerce-pagination ul li {
  display: flex;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text);
  transition: all var(--transition);
}
.woocommerce-pagination ul li a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.woocommerce-pagination ul li span.current { background: var(--color-accent); color: #fff; border-color: var(--color-accent); font-weight: 700; }

/* Producto individual */
.woocommerce div.product {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}
.woocommerce div.product div.images {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 12px;
}
.woocommerce div.product p.price ins { text-decoration: none; }
.woocommerce div.product p.price del {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-right: 8px;
}
.woocommerce div.product .product_title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.woocommerce div.product .woocommerce-product-details__short-description {
  font-size: .9rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ============================================================
   Checkout progresivo — Datos, Envío y Pago
   Se activa solo cuando checkout-steps.js confirma que funciona.
============================================================ */
.woocommerce-checkout .tibor-checkout-progress,
.woocommerce-checkout .tibor-checkout-step__title,
.woocommerce-checkout .tibor-checkout-step__intro,
.woocommerce-checkout .tibor-checkout-step__actions,
.woocommerce-checkout .tibor-checkout-step__back--top {
  display: none;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 920px);
  margin: 0 auto 32px;
}

.woocommerce-checkout form.checkout.is-enhanced [hidden] {
  display: none !important;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::before,
.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::after {
  position: absolute;
  top: 16px;
  left: 12.5%;
  height: 3px;
  border-radius: 999px;
  content: "";
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::before {
  right: 12.5%;
  background: var(--color-border, #dbe4ef);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::after {
  z-index: 1;
  width: 25%;
  background: var(--color-primary, #0b3989);
  transition: width .25s ease;
}

.woocommerce-checkout form.checkout.is-enhanced.is-step-shipping .tibor-checkout-progress::after { width: 50%; }
.woocommerce-checkout form.checkout.is-enhanced.is-step-payment .tibor-checkout-progress::after { width: 75%; }

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted, #64748b);
  align-items: center;
  flex-direction: column;
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item:disabled {
  cursor: default;
  opacity: 1;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border: 2px solid var(--color-border, #dbe4ef);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text-muted, #64748b);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__label {
  margin-top: 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item.is-current,
.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item.is-complete {
  color: var(--color-primary, #0b3989);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item.is-current .tibor-checkout-progress__number,
.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item.is-complete .tibor-checkout-progress__number {
  border-color: var(--color-primary, #0b3989);
  background: var(--color-primary, #0b3989);
  color: #fff;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__item:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(11, 57, 137, .2);
  outline-offset: 4px;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-co-grid {
  display: block;
  width: min(100%, 920px);
  margin: 0 auto;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-co-main,
.woocommerce-checkout form.checkout.is-enhanced .tibor-co-side {
  position: static;
  top: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-co-main,
.woocommerce-checkout form.checkout.is-enhanced .tibor-co-side {
  padding: 32px;
  border: 1px solid var(--color-border, #dbe4ef);
  border-radius: var(--radius-lg, 16px);
  background: var(--color-bg-white, #fff);
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-co-side #order_review {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__title {
  display: block;
  margin: 0 0 8px;
  color: var(--color-primary, #0b3989);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__intro {
  display: block;
  margin: 0 0 24px;
  color: var(--color-text-muted, #64748b);
  font-size: 14px;
  line-height: 1.55;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details .woocommerce-billing-fields > h3:first-child {
  display: none;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--payment #payment {
  margin-top: 16px;
  padding-top: 0;
  border-top: 0;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__actions {
  display: flex;
  margin-top: 24px;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__actions--end {
  justify-content: flex-end;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__next,
.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-md, 10px);
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__next {
  min-width: 220px;
  border: 1px solid var(--color-primary, #0b3989);
  background: var(--color-primary, #0b3989);
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 57, 137, .18);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__next:hover {
  border-color: #072866;
  background: #072866;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back {
  border: 1px solid var(--color-border, #dbe4ef);
  background: #fff;
  color: var(--color-primary, #0b3989);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back:hover {
  border-color: var(--color-primary, #0b3989);
  background: rgba(11, 57, 137, .04);
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back--top {
  display: inline-flex;
  min-height: 44px;
  margin: 0 0 8px;
  padding: 8px 12px;
  box-shadow: none;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__next:focus-visible,
.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back:focus-visible {
  outline: 3px solid rgba(11, 57, 137, .2);
  outline-offset: 2px;
}

.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__error {
  margin: 12px 0 20px;
  padding: 12px 14px;
  border: 1px solid #f0b4b4;
  border-radius: 8px;
  background: #fff4f4;
  color: #8a1f1f;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.woocommerce-checkout form.checkout.is-enhanced .woocommerce-invalid input,
.woocommerce-checkout form.checkout.is-enhanced .woocommerce-invalid select,
.woocommerce-checkout form.checkout.is-enhanced .woocommerce-invalid textarea {
  border-color: #b42318;
}

@media (max-width: 767px) {
  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress {
    margin-bottom: 24px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::before,
  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress::after {
    top: 14px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-progress__label {
    margin-top: 6px;
    font-size: 11px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-co-main,
  .woocommerce-checkout form.checkout.is-enhanced .tibor-co-side {
    padding: 20px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__title {
    font-size: 20px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__intro {
    margin-bottom: 20px;
    font-size: 13px;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__next,
  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back {
    width: 100%;
    min-width: 0;
  }

  .woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step__back--top {
    width: auto;
  }
}

/* Información compacta de producto: disponible con hover, foco y toque. */
.tibor-item-info {
  position: relative !important;
  display: inline-block !important;
  margin: 4px 0 6px;
  vertical-align: middle;
}
.tibor-item-info > summary {
  display: inline-flex !important;
  width: 28px;
  height: 28px;
  padding: 0;
  align-items: center;
  justify-content: center;
  list-style: none;
  border: 1px solid var(--color-primary, #0b3989);
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary, #0b3989);
  cursor: pointer;
  box-sizing: border-box;
}
.tibor-item-info > summary::-webkit-details-marker { display: none; }
.tibor-item-info > summary:hover,
.tibor-item-info > summary:focus-visible {
  background: var(--color-primary, #0b3989);
  color: #fff;
  outline: none;
}
.tibor-item-info > summary:focus-visible {
  box-shadow: 0 0 0 3px rgba(11, 57, 137, .18);
}
.tibor-item-info-icon {
  display: block !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
}
.tibor-item-info-popover {
  position: absolute !important;
  z-index: 80;
  top: calc(100% + 8px);
  left: 0;
  display: none !important;
  width: min(320px, calc(100vw - 48px));
  max-height: min(420px, 65vh) !important;
  padding: 14px 16px;
  overflow: auto !important;
  border: 1px solid var(--color-border, #dbe4ef);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
  color: var(--color-text, #25324a);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  box-sizing: border-box;
}
.tibor-item-info[open] > .tibor-item-info-popover,
.tibor-item-info:hover > .tibor-item-info-popover,
.tibor-item-info:focus-within > .tibor-item-info-popover {
  display: block !important;
}
.tibor-item-info-popover dl.variation,
.tibor-item-info-popover .wc-item-meta {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.tibor-item-info-popover .tibor-cart-delivery { margin-bottom: 0; }

/* El checkout conserva los metadatos originales, pero evita mostrarlos dos veces. */
body.woocommerce-checkout .cart_item td.product-name > dl.variation,
body.woocommerce-checkout .cart_item td.product-name > .wc-item-meta {
  display: none !important;
}
body.woocommerce-checkout .tibor-checkout-item-info {
  display: inline-block !important;
  margin: 6px 0 0 6px;
}

@media (max-width: 767px) {
  body.woocommerce-cart .tibor-cart-desktop-meta {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-table tbody tr.cart_item {
    grid-template-columns: 72px minmax(0, 1fr) 32px;
    grid-template-rows: auto auto auto;
    gap: 4px 12px;
    min-height: 96px;
    padding: 12px;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 72px !important;
    margin: 0;
    align-self: start;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail img {
    width: 72px !important;
    height: 72px !important;
    padding: 4px;
    border-radius: 8px;
  }

  body.woocommerce-cart .tibor-cart-table .product-name {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  body.woocommerce-cart .tibor-cart-table .product-name .tibor-cart-pname {
    display: -webkit-box !important;
    margin: 0 0 2px !important;
    overflow: hidden !important;
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  body.woocommerce-cart .tibor-cart-table .tibor-cart-pprice {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-table .tibor-cart-item-info {
    margin: 4px 0 0;
  }

  body.woocommerce-cart .tibor-cart-table .product-subtotal {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    padding: 0 !important;
    text-align: left;
    font-size: 14px;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    text-align: right;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove a.remove {
    width: 32px;
    height: 32px;
  }

  body.woocommerce-cart .tibor-cart-item-info .tibor-item-info-popover {
    left: -84px;
  }

  body.woocommerce-cart .tibor-checkout-btn {
    position: fixed;
    z-index: 9998;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: calc(100% - 32px);
    max-width: 448px;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 16px;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .96), 0 -8px 24px rgba(15, 23, 42, .16);
  }

}

/* ============================================================
   Checkout — productos compactos con información desplegable
============================================================ */
html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item {
  transition: background-color .2s ease, box-shadow .2s ease;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item:hover {
  background: rgba(11, 57, 137, .025);
  box-shadow: inset 3px 0 0 rgba(11, 57, 137, .28);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name {
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 72px;
  min-height: 56px;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-thumb {
  width: 56px;
  height: 56px;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-thumb img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-name {
  display: inline !important;
  color: var(--color-primary, #0b3989);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .product-quantity {
  display: inline !important;
  margin-left: 4px;
  color: var(--color-text-muted, #64748b);
  font-size: 13px;
  font-weight: 700;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > dl.variation,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .wc-item-meta {
  display: none !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
  position: static !important;
  display: block !important;
  width: 100%;
  margin: 8px 0 0;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary {
  display: inline-flex !important;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
  padding: 8px 12px;
  gap: 8px;
  border: 1px solid var(--color-border, #dbe4ef);
  border-radius: 9px;
  background: #fff;
  color: var(--color-primary, #0b3989);
  align-items: center;
  justify-content: flex-start;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary:hover {
  border-color: rgba(11, 57, 137, .45);
  background: rgba(11, 57, 137, .045);
  color: var(--color-primary, #0b3989);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary:focus-visible {
  border-color: var(--color-primary, #0b3989);
  background: #fff;
  color: var(--color-primary, #0b3989);
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 57, 137, .16);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] > summary {
  border-color: rgba(11, 57, 137, .35);
  background: rgba(11, 57, 137, .07);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info .tibor-item-info-icon {
  display: inline-flex !important;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info .tibor-item-info-label,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info .tibor-item-info-chevron {
  display: inline-block !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info .tibor-item-info-chevron {
  margin-left: 2px;
  font-size: 16px;
  line-height: .75;
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform .2s ease;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] .tibor-item-info-chevron {
  transform: rotate(180deg);
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > .tibor-item-info-popover,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:hover > .tibor-item-info-popover,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:focus-within:not([open]) > .tibor-item-info-popover {
  position: static !important;
  display: none !important;
  width: 100%;
  max-height: none !important;
  margin: 10px 0 0;
  padding: 14px 16px;
  overflow: visible !important;
  border: 1px solid rgba(11, 57, 137, .14);
  border-radius: 10px;
  background: rgba(11, 57, 137, .035);
  box-shadow: none;
  color: var(--color-text, #25324a);
  font-size: 13px;
  line-height: 1.5;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] > .tibor-item-info-popover {
  display: block !important;
  animation: tibor-checkout-info-in .18s ease-out;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation {
  display: grid !important;
  grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
  gap: 6px 12px;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation dt,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation dd,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation dd p {
  display: block !important;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation dt {
  color: var(--color-text, #25324a);
  font-weight: 700;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation dd {
  color: var(--color-text-muted, #64748b);
}

@keyframes tibor-checkout-info-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-name {
    font-size: 14px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
    width: calc(100% + 64px);
    margin-top: 8px;
    margin-left: -64px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary {
    min-height: 44px;
    margin-left: 64px;
    padding: 9px 12px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > .tibor-item-info-popover {
    margin-top: 8px;
    padding: 12px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info-popover dl.variation {
    grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
    gap: 5px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info .tibor-item-info-chevron {
    transition: none;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] > .tibor-item-info-popover {
    animation: none;
  }
}

/* Escritorio conserva exactamente la presentacion amplia anterior. */
@media (min-width: 768px) {
  body.woocommerce-cart .tibor-cart-item-info {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-item-info > summary {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-item-info > .tibor-item-info-popover {
    position: static !important;
    display: block !important;
    width: auto;
    max-height: none !important;
    padding: 0;
    overflow: visible !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
  }

  html body.woocommerce-checkout .tibor-checkout-item-info {
    display: none !important;
  }

  html body.woocommerce-checkout .cart_item td.product-name > dl.variation,
  html body.woocommerce-checkout .cart_item td.product-name > .wc-item-meta {
    display: block !important;
  }
}

/* El checkout queda fuera de este cambio y conserva siempre sus descripciones. */
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > dl.variation,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .wc-item-meta {
  display: block !important;
}

/* Gran Formato: los datos unitarios y de superficie son internos de produccion.
   La ficha comercial conserva unicamente base imponible, IVA y total. */
body.single-product .tibor-vinilo-calc .tvc-price-side,
body.single-product .tibor-lonas-calc .tlc-meta .tlc-unit,
body.single-product .tibor-lonas-calc .tlc-meta .tlc-m2 {
  display: none;
}
/* Botón add to cart */
.woocommerce div.product form.cart .button,
.woocommerce .button.alt,
.woocommerce #respond input#submit.alt {
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  transition: background var(--transition);
  letter-spacing: .2px;
}
.woocommerce div.product form.cart .button:hover,
.woocommerce .button.alt:hover { background: #c63d09; color: #fff; }

/* Carrito */
.woocommerce-cart table.cart { border-collapse: collapse; width: 100%; }
.woocommerce-cart table.cart td,
.woocommerce-cart table.cart th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: .875rem;
}
.woocommerce-cart table.cart th { font-weight: 700; color: var(--color-text-muted); font-size: .78rem; text-transform: uppercase; background: var(--color-bg); }
.woocommerce-cart .cart-collaterals { margin-top: 24px; }
.woocommerce-cart .cart_totals {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 24px;
}
.woocommerce-cart .cart_totals h2 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.woocommerce-cart .cart_totals table { width: 100%; }
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td { padding: 8px 0; font-size: .875rem; }
.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td { font-weight: 700; font-size: 1rem; border-top: 1px solid var(--color-border); padding-top: 14px; }
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--color-accent) !important;
  color: #fff !important;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  margin-top: 16px;
  display: block;
  transition: background var(--transition);
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover { background: #c63d09 !important; }

/* Checkout */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout h3#order_review_heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: .875rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus { border-color: var(--color-primary-lt); }
.woocommerce-checkout #place_order {
  background: var(--color-accent);
  color: #fff;
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.woocommerce-checkout #place_order:hover { background: #c63d09; }

/* Login B2B */
.woocommerce-account .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-account.logged-in .woocommerce-MyAccount-navigation { display: none; }
.woocommerce-form-login, .woocommerce-form-register {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--color-border);
  max-width: 460px;
  margin: 40px auto;
}
.woocommerce-form-login h2, .woocommerce-form-register h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 24px;
}
.woocommerce-form-login .form-row label,
.woocommerce-form-register .form-row label { font-size: .85rem; font-weight: 600; color: var(--color-text); }
.woocommerce-form-login .form-row input,
.woocommerce-form-register .form-row input {
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: .9rem;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
}
.woocommerce-form-login .form-row input:focus,
.woocommerce-form-register .form-row input:focus { border-color: var(--color-primary-lt); }
.woocommerce-form-login .button,
.woocommerce-form-register .button {
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  padding: 11px 28px;
  font-weight: 700;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.woocommerce-form-login .button:hover,
.woocommerce-form-register .button:hover { background: var(--color-accent); color: #fff; }
.btn-login-price {
  display: inline-block;
  font-size: .75rem;
  color: var(--color-primary-lt);
  border: 1px solid var(--color-primary-lt);
  border-radius: 4px;
  padding: 4px 10px;
  transition: all var(--transition);
}
.btn-login-price:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* =============================================
   CARRITO CLÁSICO ([woocommerce_cart])
   Estilo de marca Tibor — diseño limpio
============================================= */
.woocommerce-cart .woocommerce {
  max-width: var(--container, 1280px);
  margin: 0 auto;
}

/* ── Tabla del carrito ── */
.woocommerce-cart table.shop_table {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-bg-white);
  margin-bottom: 28px;
}
.woocommerce-cart table.shop_table thead th {
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 16px 18px;
  border: none;
  text-align: left;
}
.woocommerce-cart table.shop_table tbody td {
  padding: 22px 18px;
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
  background: var(--color-bg-white);
}

/* ── Miniatura del diseño ── */
.woocommerce-cart .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ── Nombre del producto ── */
.woocommerce-cart .product-name a {
  color: var(--color-primary);
  font-weight: 700;
  font-size: .95rem;
}
.woocommerce-cart .product-name .variation,
.woocommerce-cart .product-name dl,
.woocommerce-cart .product-name small {
  color: var(--color-text-muted);
  font-size: .8rem;
  margin-top: 4px;
}

/* ── Precio y subtotal ── */
.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
  color: var(--color-primary);
  font-weight: 600;
}

/* ── Cantidad con botones +/- (inyectados por cart.js) ── */
.woocommerce-cart .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-white);
}
.woocommerce-cart .quantity .tibor-qty-btn {
  width: 36px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition);
  font-family: inherit;
}
.woocommerce-cart .quantity .tibor-qty-btn:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}
.woocommerce-cart .quantity input.qty {
  border: none;
  width: 46px;
  height: 40px;
  text-align: center;
  background: transparent;
  font-weight: 600;
  color: var(--color-primary);
  -moz-appearance: textfield;
  padding: 0;
}
.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ── Control de copias (pedidos del cotizador en /cart) ── */
.woocommerce-cart .tibor-cart-copies {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-white);
}
.woocommerce-cart .tibor-cart-copies .tibor-copies-btn {
  width: 36px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: background var(--transition);
  font-family: inherit;
}
.woocommerce-cart .tibor-cart-copies .tibor-copies-btn:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}
.woocommerce-cart .tibor-cart-copies .tibor-copies-val {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Botón eliminar (icono papelera Font Awesome) ── */
.woocommerce-cart td.product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted) !important;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  font-size: 0; /* oculta la × original */
  transition: all var(--transition);
}
.woocommerce-cart td.product-remove a.remove::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f1f8"; /* fa-trash */
  font-size: 1rem;
}
.woocommerce-cart td.product-remove a.remove:hover {
  background: var(--color-bg) !important;
  color: #dc2626 !important;
}
/* ── Fila de acciones (cupón + actualizar) ── */
.woocommerce-cart .actions {
  padding: 18px;
  background: var(--color-bg);
}
.woocommerce-cart .coupon { display: inline-flex; gap: 8px; }
.woocommerce-cart .coupon .input-text {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 180px;
}
.woocommerce-cart .coupon .button {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 10px 20px;
  transition: background var(--transition);
}
.woocommerce-cart .coupon .button:hover { background: #c73c09; }
.woocommerce-cart .actions > .button[name="update_cart"] {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 10px 20px;
  transition: all var(--transition);
}
.woocommerce-cart .actions > .button[name="update_cart"]:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ── Caja Totales del carrito ── */
.woocommerce-cart .cart_totals {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.woocommerce-cart .cart_totals h2 {
  color: var(--color-primary);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.woocommerce-cart .cart_totals table {
  border: none;
}
.woocommerce-cart .cart_totals table th,
.woocommerce-cart .cart_totals table td {
  border: none;
  border-top: 1px solid var(--color-border);
  padding: 14px 0;
}
.woocommerce-cart .cart_totals .cart-subtotal th,
.woocommerce-cart .cart_totals .order-total th {
  color: var(--color-primary);
  font-weight: 700;
}
.woocommerce-cart .cart_totals .order-total .amount {
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 900;
}

/* ── Botón Finalizar compra ── */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block;
  background: var(--color-accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 8px;
  transition: background var(--transition);
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
  background: #c73c09;
}

/* ── Mensaje carrito vacío ── */
.woocommerce-cart .cart-empty.woocommerce-info {
  border-radius: var(--radius-md);
}

/* ── Layout 2 columnas (override de plantilla cart.php) ── */
.tibor-cart-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}
.tibor-cart-main {
  flex: 1 1 auto;
  min-width: 0;
}
.tibor-cart-side {
  flex: 0 0 380px;
  position: sticky;
  top: 100px;
}
.tibor-cart-side .cart-collaterals { width: 100%; }
.tibor-cart-side .cart_totals {
  width: 100% !important;
  float: none !important;
}

/* Ocultar cross-sells en el carrito (reversible: borra esta regla si los quieres) */
.tibor-cart-layout .cross-sells { display: none; }

/* Nombre del producto bien formateado */
.woocommerce-cart .product-name { line-height: 1.45; }
.woocommerce-cart .product-name .wc-item-meta,
.woocommerce-cart .product-name dl.variation {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: var(--color-text-muted);
}
.woocommerce-cart .product-name .wc-item-meta li,
.woocommerce-cart .product-name dl.variation dt,
.woocommerce-cart .product-name dl.variation dd {
  margin: 0;
  display: inline;
  font-weight: 400;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .tibor-cart-layout { flex-direction: column; }
  .tibor-cart-side { flex: 1 1 auto; width: 100%; position: static; }
}
@media (max-width: 768px) {
  .woocommerce-cart table.shop_table thead { display: none; }
  .woocommerce-cart .product-thumbnail img { width: 60px; height: 60px; }
  .woocommerce-cart .coupon { display: flex; width: 100%; }
  .woocommerce-cart .coupon .input-text { flex: 1; min-width: 0; }
}

/* ============================================================
   /cart — Estilo Store API (carrito clásico)
============================================================ */
.tibor-cart-table {
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;
  width: 100%;
  overflow: visible !important; /* la tabla shop_table trae overflow:hidden que recortaba el meta */
  border-collapse: collapse !important; /* shop_table trae 'separate' → divisorias escalonadas por columna */
  border-spacing: 0 !important;
}
.tibor-cart-table thead th {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--color-border) !important;
  padding: 0 4px 14px !important;
  color: var(--color-text-muted);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tibor-cart-table thead th.product-subtotal { text-align: right; }
.tibor-cart-table tbody td {
  padding: 24px 4px 30px !important; /* más aire abajo: el meta + entrega ya no se recortan */
  border: none !important; /* la divisoria va en el <tr> (línea única continua) */
  background: transparent !important;
  vertical-align: top;
  overflow: visible !important;
}
/* Una sola divisoria por fila, de ancho completo (en border-collapse:collapse el
   borde del <tr> se dibuja continuo y no se parte por columnas). */
.tibor-cart-table tbody tr {
  border-bottom: 1px solid var(--color-border) !important;
}

/* Miniatura */
.tibor-cart-table .product-thumbnail { width: 96px; }
.tibor-cart-table .product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f1f3f5;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* Nombre + precio unitario */
.tibor-cart-table .product-name .tibor-cart-pname {
  display: block;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
}
.tibor-cart-table .product-name .tibor-cart-pprice {
  display: block;
  color: var(--color-text-muted);
  font-size: .9rem;
  margin-bottom: 8px;
}

/* Meta (Tipo/Metros/Unidades/Archivos/Corte): cada dato en su línea, sin solapes.
   Cada pareja dt+dd queda inline y un pseudo-elemento de bloque tras el dd fuerza
   el salto de línea de forma fiable (el truco "\A"+white-space:pre era frágil y
   provocaba que las líneas se solaparan). */
.tibor-cart-table .product-name dl.variation {
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.tibor-cart-table .product-name dl.variation dt,
.tibor-cart-table .product-name dl.variation dd {
  float: none !important;
  clear: none !important;
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  white-space: normal !important;   /* sin recorte "Tipo: DTF..." */
  overflow: visible !important;
  text-overflow: clip !important;
  font-weight: 400;
}
.tibor-cart-table .product-name dl.variation dt { font-weight: 600; }
.tibor-cart-table .product-name dl.variation dt::after { content: "\00a0"; }
.tibor-cart-table .product-name dl.variation dd::after { content: ""; display: block; }
.tibor-cart-table .product-name dl.variation dd p,
.tibor-cart-table .product-name dl.variation p { display: inline; margin: 0; }

.tibor-cart-table .product-subtotal {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-primary);
}
.tibor-cart-table .product-remove { text-align: right; width: 48px; }
.tibor-cart-table .product-remove a.remove {
  color: var(--color-text-muted);
  font-size: 1.35rem;
  text-decoration: none;
}
.tibor-cart-table .product-remove a.remove:hover { color: var(--color-accent); }

.tibor-cart-delivery {
  display: block;
  clear: both;
  margin-top: 8px;
  margin-bottom: 2px;
  font-size: .8rem;
  color: #16a34a;
  font-weight: 600;
  overflow: visible;
}
.tibor-cart-delivery::before {
  content: "\f0d1"; /* fa-truck */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 6px;
}

/* ── Tarjeta de totales propia (derecha) ── */
.tibor-cart-totals {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-white);
  padding: 26px 24px;
}
.tibor-cart-totals-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 18px;
}
.tibor-coupon-acc {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.tibor-coupon-acc summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: .9rem;
}
.tibor-coupon-acc summary::-webkit-details-marker { display: none; }
.tibor-coupon-acc summary::after {
  content: "⌄";
  font-size: 1.1rem;
  transition: transform .2s;
}
.tibor-coupon-acc[open] summary::after { transform: rotate(180deg); }
.tibor-coupon-form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.tibor-coupon-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .85rem;
}
.tibor-coupon-btn {
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
}
.tibor-coupon-btn:hover { background: #000; }

.tibor-totals-rows { margin-bottom: 20px; }
.tibor-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: .9rem;
  color: var(--color-text);
}
.tibor-totals-grand {
  border-top: 1px solid var(--color-border);
  margin-top: 6px;
  padding-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
}
.tibor-totals-grand span:last-child { color: var(--color-accent); }

.tibor-checkout-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
}
.tibor-checkout-btn:hover { background: #c73c09; color: #fff; }

/* ── CAUSA RAÍZ del solape/recorte ──
   La clase global .product-name (style.css, para las tarjetas de la tienda) usa
   display:-webkit-box + -webkit-line-clamp:2 + overflow:hidden, que recortaba TODA
   la celda del carrito a 2 líneas. Aquí lo anulamos SOLO en la celda del carrito. */
.tibor-cart-table td.product-name {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  line-clamp: unset !important;
}

/* ── La fila crece con su contenido, nada se recorta ── */
.tibor-cart-table,
.tibor-cart-table tbody,
.tibor-cart-table tr,
.tibor-cart-table td,
.tibor-cart-table .product-name {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}
.tibor-cart-table tr,
.tibor-cart-table td { position: static !important; }

/* Alinear TODAS las celdas arriba (la regla global shop_table las centraba y
   desalineaba el thumbnail / TOTAL / papelera respecto al nombre + meta). */
.tibor-cart-table tbody td { vertical-align: top !important; }
.tibor-cart-table .product-name,
.tibor-cart-table .product-name * {
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;   /* mata el "30,49 €..." y el "Tipo: DTF..." */
  text-overflow: clip !important;
}
/* El salto de línea de cada dato del meta se mantiene */
.tibor-cart-table .product-name dl.variation dd::after {
  content: "" !important;
  display: block !important;
}
.tibor-cart-table .product-name .tibor-cart-pname { display: block !important; }
.tibor-cart-table .product-name .tibor-cart-pprice { display: block !important; margin-bottom: 8px !important; }
.tibor-cart-table .product-name dl.variation { margin: 2px 0 0 !important; }

/* ============================================================
   /cart — Resumen simple (solo lectura)
============================================================ */
.tibor-cart-simple {
  max-width: 860px;
  margin: 0 auto;
}
.tibor-cart-simple-table { width: 100%; }
.tibor-cart-simple-table .product-subtotal {
  text-align: right;
  white-space: nowrap;
}
.tibor-cart-simple-table .product-remove { text-align: right; width: 40px; }
.tibor-cart-simple-table .product-remove a.remove {
  color: var(--color-text-muted);
  font-size: 1.3rem;
  text-decoration: none;
}
.tibor-cart-simple-table .product-remove a.remove:hover { color: var(--color-accent); }

/* Fila producto: imagen + resumen */
.tibor-cart-srow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tibor-cart-srow-thumb img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.tibor-cart-srow-info { display: flex; flex-direction: column; gap: 2px; }
.tibor-cart-srow-name {
  color: var(--color-primary);
  font-weight: 700;
  font-size: .95rem;
}
.tibor-cart-srow-info dl,
.tibor-cart-srow-info .variation {
  color: var(--color-text-muted);
  font-size: .8rem;
  margin: 4px 0 0;
}

/* Total general */
.tibor-cart-simple-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 2px solid var(--color-border);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}
.tibor-cart-simple-total-val { color: var(--color-accent); }

/* Acciones */
.tibor-cart-simple-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.tibor-cart-simple-actions .tibor-btn-continue,
.tibor-cart-simple-actions .tibor-btn-empty,
.tibor-cart-simple-actions .tibor-btn-checkout {
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}
.tibor-cart-simple-actions .tibor-btn-continue {
  border: 1.5px solid var(--color-primary);
  background: var(--color-bg-white);
  color: var(--color-primary);
}
.tibor-cart-simple-actions .tibor-btn-empty {
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-white);
  color: var(--color-text-muted);
}
.tibor-cart-simple-actions .tibor-btn-checkout {
  border: none;
  background: var(--color-accent);
  color: #fff;
  margin-left: auto;
}
.tibor-cart-simple-actions .tibor-btn-continue:hover { background: var(--color-bg); }
.tibor-cart-simple-actions .tibor-btn-empty:hover { color: var(--color-accent); border-color: var(--color-accent); }
.tibor-cart-simple-actions .tibor-btn-checkout:hover { background: #c73c09; }

@media (max-width: 600px) {
  .tibor-cart-simple-actions .tibor-btn-checkout { margin-left: 0; width: 100%; }
}

/* ============================================================
   /cart vacío — estado con diseño de marca
============================================================ */
.tibor-cart-empty-state {
  max-width: 520px;
  margin: 24px auto;
  padding: 56px 24px;
  text-align: center;
}
.tibor-cart-empty-icon {
  width: 110px;
  height: 110px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-primary);
  font-size: 2.6rem;
}
.tibor-cart-empty-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.tibor-cart-empty-text {
  color: var(--color-text-muted);
  font-size: .95rem;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 380px;
}
.tibor-cart-empty-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 34px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition);
}
.tibor-cart-empty-btn:hover { background: #c73c09; color: #fff; }

/* Referencia del carrito (TIB-AAMMDD-XXXX) en /cart */
.tibor-cart-ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #eef3fb;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  font-size: 14px;
}
.tibor-cart-ref-label {
  color: #0b3989;
  font-weight: 600;
}
.tibor-cart-ref-val {
  color: #0c4a6e;
  font-weight: 800;
  letter-spacing: .03em;
  font-family: ui-monospace, Menlo, monospace;
}

/* ============================================================
   /cart — tarjeta de producto móvil a ancho completo
   La tabla conserva su estructura y lógica; solo cambia su composición visual.
============================================================ */
@media (max-width: 767px) {
  body.woocommerce-cart #page-content > .container {
    width: 100%;
    max-width: none;
    padding: 16px 8px 32px !important;
    box-sizing: border-box;
  }

  body.woocommerce-cart #page-content > .container > .woocommerce {
    width: 100%;
    max-width: none;
    padding: 24px 12px !important;
    box-sizing: border-box;
  }

  body.woocommerce-cart #page-content > .container > .woocommerce > h1 {
    margin: 0 0 24px;
    color: var(--color-primary, #0b3989);
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  body.woocommerce-cart .tibor-cart-layout,
  body.woocommerce-cart .tibor-cart-main,
  body.woocommerce-cart .woocommerce-cart-form,
  body.woocommerce-cart .tibor-cart-table,
  body.woocommerce-cart .tibor-cart-table tbody {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-cart .tibor-cart-layout {
    padding: 0 !important;
    gap: 24px;
  }

  body.woocommerce-cart .tibor-cart-ref {
    display: flex;
    width: 100%;
    margin-bottom: 24px;
    padding: 12px 16px;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  body.woocommerce-cart .tibor-cart-ref-val {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.woocommerce-cart .tibor-cart-table tbody tr.cart_item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 32px;
    gap: 8px 12px;
    width: 100%;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid var(--color-border, #dbe4ef) !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    box-sizing: border-box;
  }

  body.woocommerce-cart .tibor-cart-table tbody td {
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    min-width: 0;
    background: transparent !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail {
    display: block !important;
    grid-column: 1 / -1;
    width: 100% !important;
    margin: 0 0 8px;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail img {
    display: block;
    width: 100% !important;
    height: 180px !important;
    max-width: none;
    margin: 0;
    padding: 8px;
    object-fit: contain;
    object-position: center;
    background: #f6f8fb;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 10px;
    box-sizing: border-box;
  }

  body.woocommerce-cart .tibor-cart-table .product-name {
    grid-column: 1;
    min-width: 0 !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-name .tibor-cart-pname {
    font-size: 18px;
    line-height: 1.3;
    overflow-wrap: anywhere !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-name dl.variation {
    font-size: 14px;
    line-height: 1.5;
  }

  body.woocommerce-cart .tibor-cart-table .product-subtotal {
    grid-column: 2;
    align-self: start;
    padding-top: 2px !important;
    font-size: 15px;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove {
    grid-column: 3;
    align-self: start;
    text-align: right;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove a.remove {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
  }

  body.woocommerce-cart .tibor-cart-delivery {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
  }

  body.woocommerce-cart .tibor-cart-side,
  body.woocommerce-cart .tibor-cart-totals {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body.woocommerce-cart #page-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body.woocommerce-cart .wc-proceed-to-checkout {
    position: fixed;
    z-index: 9998;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border, #dbe4ef);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
    backdrop-filter: blur(10px);
  }

  body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: flex;
    width: 100%;
    max-width: 448px;
    min-height: 48px;
    margin: 0 auto !important;
    padding: 12px 16px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
  }
}

@media (min-width: 768px) {
  .tibor-cart-table thead th.product-name,
  .tibor-cart-table thead th.product-subtotal,
  .tibor-cart-table thead th.product-remove {
    display: table-cell !important;
  }
}

/* ============================================================
   Checkout Blocks — composición móvil
   Scope estricto para no alterar carrito, producto ni escritorio.
============================================================ */
@media (max-width: 767px) {
  body.woocommerce-checkout #page-content > .container {
    width: 100%;
    max-width: none;
    padding: 20px 12px 28px;
  }

  body.woocommerce-checkout #page-content > .container > div {
    width: 100%;
    max-width: none !important;
    padding: 20px 16px !important;
    border-radius: 14px;
    box-sizing: border-box;
  }

  body.woocommerce-checkout #page-content > .container > div > h1 {
    margin: 0 0 18px;
    color: var(--color-primary, #0b3989);
    font-size: clamp(1.65rem, 8vw, 2rem);
    line-height: 1.15;
    letter-spacing: -.025em;
  }

  body.woocommerce-checkout .entry-content,
  body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout,
  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .wp-block-woocommerce-checkout.wc-block-checkout {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout,
  body.woocommerce-checkout .wc-block-checkout__main,
  body.woocommerce-checkout .wc-block-checkout__sidebar {
    padding: 0 !important;
  }

  body.woocommerce-checkout .wc-block-components-sidebar-layout {
    gap: 24px;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step {
    width: 100%;
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__heading-container {
    margin-bottom: 12px;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__title,
  body.woocommerce-checkout .wc-block-components-express-payment__title {
    color: #14213d;
    font-size: 1.15rem;
    line-height: 1.3;
    font-weight: 800;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__description {
    color: #66758c;
    font-size: .875rem;
    line-height: 1.5;
  }

  body.woocommerce-checkout .wc-block-components-text-input,
  body.woocommerce-checkout .wc-block-components-combobox,
  body.woocommerce-checkout .wc-block-components-combobox-control,
  body.woocommerce-checkout .wc-block-components-form .wc-block-components-text-input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .wc-block-components-text-input input,
  body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input,
  body.woocommerce-checkout .wc-block-components-form input,
  body.woocommerce-checkout .wc-block-components-form select,
  body.woocommerce-checkout .wc-block-components-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    border-color: #cbd7e6;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
  }

  body.woocommerce-checkout .wc-block-components-text-input input:focus,
  body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input:focus,
  body.woocommerce-checkout .wc-block-components-form input:focus,
  body.woocommerce-checkout .wc-block-components-form select:focus,
  body.woocommerce-checkout .wc-block-components-form textarea:focus {
    border-color: var(--color-primary, #0b3989);
    box-shadow: 0 0 0 3px rgba(11, 57, 137, .12);
    outline: none;
  }

  body.woocommerce-checkout .wc-block-components-address-card,
  body.woocommerce-checkout .wc-block-components-radio-control,
  body.woocommerce-checkout .wc-block-checkout__order-notes,
  body.woocommerce-checkout .wc-block-checkout__order-summary {
    width: 100%;
    min-width: 0;
    border-color: #dbe4ef;
    border-radius: 10px;
    box-sizing: border-box;
  }

  body.woocommerce-checkout .wc-block-components-address-card {
    padding: 16px;
    background: #f8fafd;
  }

  body.woocommerce-checkout .wc-block-components-radio-control__option {
    min-height: 56px;
    padding: 14px 14px 14px 46px;
    border-color: #dbe4ef;
  }

  body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
    background: #f3f7fd;
    box-shadow: inset 3px 0 0 var(--color-primary, #0b3989);
  }

  body.woocommerce-checkout .wc-block-components-radio-control__label,
  body.woocommerce-checkout .wc-block-components-radio-control__description {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout .wc-block-components-express-payment {
    width: 100%;
    min-width: 0;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    box-sizing: border-box;
    background: #fff;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__content,
  body.woocommerce-checkout .wc-block-components-express-payment__event-buttons {
    width: 100%;
    min-width: 0;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__event-buttons {
    gap: 8px;
  }

  body.woocommerce-checkout .wc-block-components-express-payment__event-buttons > li,
  body.woocommerce-checkout .wc-block-components-express-payment__event-buttons > div {
    width: 100%;
    min-width: 0;
  }

  body.woocommerce-checkout .wc-block-checkout__terms {
    margin: 20px 0;
    padding-top: 18px;
    color: #53637a;
    font-size: .875rem;
    line-height: 1.55;
  }

  body.woocommerce-checkout .wc-block-checkout__terms a {
    color: var(--color-primary, #0b3989);
    font-weight: 700;
    text-underline-offset: 2px;
  }

  body.woocommerce-checkout .wc-block-checkout__actions {
    width: 100%;
    min-width: 0;
  }

  body.woocommerce-checkout .wc-block-checkout__actions_row {
    display: block;
    width: 100%;
  }

  body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    width: 100% !important;
    min-height: 54px;
    margin: 0;
    border: 0;
    border-radius: 8px;
    background: var(--color-primary, #0b3989) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(11, 57, 137, .18);
    font-size: 1rem;
    font-weight: 800;
  }

  body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
    background: #082d70 !important;
  }

  body.woocommerce-checkout .wc-block-components-checkout-place-order-button:focus-visible {
    outline: 3px solid rgba(11, 57, 137, .25);
    outline-offset: 3px;
  }

  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block {
    width: 100%;
    min-width: 0;
    border: 1px solid #dbe4ef;
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
  }

  body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-checkout-step,
  body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block > div {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item,
  body.woocommerce-checkout .wc-block-components-totals-item {
    min-width: 0;
  }

  body.woocommerce-checkout .wc-block-components-order-summary-item__description,
  body.woocommerce-checkout .wc-block-components-product-name,
  body.woocommerce-checkout .wc-block-components-product-metadata,
  body.woocommerce-checkout .wc-block-components-totals-item__label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout .wc-block-components-totals-item__value {
    flex-shrink: 0;
    color: #14213d;
    font-weight: 800;
  }

  body.woocommerce-checkout .wc-block-components-checkout-step__container,
  body.woocommerce-checkout .wc-block-components-checkout-step__content,
  body.woocommerce-checkout .wc-block-components-order-summary,
  body.woocommerce-checkout .wc-block-components-order-summary__content,
  body.woocommerce-checkout .wc-block-components-totals-wrapper {
    min-width: 0;
    box-sizing: border-box;
  }

  body.woocommerce-checkout button,
  body.woocommerce-checkout [role="button"] {
    touch-action: manipulation;
  }
}


/* ══════════════════════════════════════════════════════════════════════════════
   CHECKOUT CLÁSICO — DISEÑO 2026                              (19 agosto 2026)
   ------------------------------------------------------------------------------
   Al volver al checkout clásico la página se quedó sin maquetar: una sola columna
   estrecha, sin tarjetas y con el meta de cada línea recortado a puntos
   suspensivos. Este bloque la pone al nivel del carrito y de la ficha.

   Reglas de la casa que se respetan aquí:
     · Va al FINAL del archivo y sin !important (gana por orden). La UNICA
       excepción es el line-clamp heredado de la tienda, que ya se anuló igual en
       el carrito y no cede de otra forma.
     · Solo tokens del tema. El único hexadecimal suelto es #072866, el navy
       oscuro que ya se usa en el resto del sitio para los hover.
     · Borrar este bloque entero deja la página exactamente como estaba.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── 1. Maquetación: COPIADA TAL CUAL DE /cart ───────────────────────────────
   No se reinventa nada: son las mismas declaraciones de `.tibor-cart-layout`,
   `.tibor-cart-main` y `.tibor-cart-side` (líneas 528-544 de este archivo), que
   ahí llevan funcionando desde siempre. Flex, no grid.

   `top: 100px` NO es decorativo: la cabecera `.t26-chrome` es sticky a top:0 y
   mide 135px. Con un valor menor el resumen se metería por debajo de ella. Ese
   fue el fallo de los intentos anteriores (20px y 24px), además de usar grid.

   Medido en la web real (19 ago 2026, ventana 820px, resumen de 689px):
   se pega a 100px desde scroll 276 y aguanta hasta que el formulario se acaba.
   Sin barra de scroll propia. */
.woocommerce-checkout .tibor-co-grid { display: block; }

@media (min-width: 993px) {
  .woocommerce-checkout .tibor-co-grid {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }
  /* LAS DOS COLUMNAS son sticky. No hay que decidir cuál: se pega sola la que
     sobre, porque una columna tan alta como el contenedor no tiene recorrido
     por el que deslizarse y simplemente scrollea.

     Comprobado en la web real (19 ago 2026):
       · Formulario 1704 / resumen 689 → se pega el RESUMEN a 100px; el
         formulario baja (360 → 73 → -244 → -552).
       · Formulario 287 / resumen 689 → se pega el FORMULARIO a 100px; el
         resumen baja (360 → 128 → -115 → -302).
     Es el único punto en que esto va más allá de /cart, donde solo el lateral
     es pegajoso. */
  .woocommerce-checkout .tibor-co-main {
    flex: 1 1 auto;
    min-width: 0;
    position: sticky;
    top: 100px;
  }
  .woocommerce-checkout .tibor-co-side {
    flex: 0 0 380px;
    position: sticky;
    top: 100px;
  }
}

/* ── 2. Ley de región común: cada mitad en su tarjeta ────────────────────────── */
.woocommerce-checkout .tibor-co-main,
.woocommerce-checkout .tibor-co-side #order_review {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.woocommerce-checkout .tibor-co-side { margin-top: 24px; }
@media (min-width: 993px) { .woocommerce-checkout .tibor-co-side { margin-top: 0; } }

/* El grupo de facturación ocupa su columna entera: sin envío físico separado no
   hay razón para dos medias columnas que dejan los campos al 47 %. */
.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce-checkout #customer_details .col-2:empty { display: none; }

/* ── 3. Títulos ─────────────────────────────────────────────────────────────── */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3,
.woocommerce-checkout h3#order_review_heading {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.01em;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-checkout h3#order_review_heading { margin-bottom: 14px; }

/* ── 4. Campos ──────────────────────────────────────────────────────────────── */
.woocommerce-checkout .woocommerce-billing-fields .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce-checkout .form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-text);
}
.woocommerce-checkout .form-row .required { color: var(--color-primary); text-decoration: none; }
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: .9375rem;
  height: auto;
}
.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 57, 137, .12);
}

/* ── 5. Resumen del pedido ──────────────────────────────────────────────────── */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table thead th {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  font-weight: 800;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tbody td {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: .875rem;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total {
  text-align: right;
  white-space: nowrap;
}
.woocommerce-checkout .cart_item .product-name { font-weight: 700; color: var(--color-primary); line-height: 1.4; }
.woocommerce-checkout .cart_item .product-name .product-quantity {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* El meta de cada línea: legible, secundario y con un dato por renglón. */
.woocommerce-checkout .cart_item .product-name .wc-item-meta,
.woocommerce-checkout .cart_item .product-name dl.variation {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.woocommerce-checkout .cart_item .product-name dl.variation dt,
.woocommerce-checkout .cart_item .product-name .wc-item-meta strong { font-weight: 600; }
.woocommerce-checkout .cart_item .product-name dl.variation dd { margin: 0 0 2px; }
.woocommerce-checkout .cart_item .product-name dl.variation dd p { margin: 0; }

/* CAUSA RAÍZ del "Producto:…" recortado — la misma que ya se arregló en el
   carrito: la clase global .product-name de la tienda trae -webkit-line-clamp:2
   y corta la celda a dos líneas. Se anula solo dentro del checkout. */
.woocommerce-checkout .cart_item .product-name,
.woocommerce-checkout .cart_item .product-name * {
  display: block !important;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  line-clamp: unset !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}
.woocommerce-checkout .cart_item .product-name dl.variation dt,
.woocommerce-checkout .cart_item .product-name .product-quantity { display: inline !important; }

/* El anulado de arriba ponia `display:block` TAMBIEN en la propia celda, y una
   celda en block deja de ser columna: la fila se partia en celdas anonimas y
   quedaba una banda muerta de ~99 px entre la descripcion y el importe. La
   celda vuelve a ser celda; el `block` sigue valiendo para lo de dentro. */
.woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout .cart_item .product-name { display: table-cell !important; }

/* ── 6. Totales: el importe final es lo único que debe destacar ─────────────── */
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td {
  padding: 10px 0;
  font-size: .875rem;
  font-weight: 600;
  border: 0;
}
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child td { padding-top: 16px; }
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot .order-total td {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ── 7. Métodos de pago ─────────────────────────────────────────────────────── */
.woocommerce-checkout #payment { background: transparent; border-radius: 0; margin-top: 20px; }
.woocommerce-checkout #payment ul.payment_methods {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  list-style: none;
}
.woocommerce-checkout #payment ul.payment_methods > li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--color-bg-white);
  transition: border-color var(--transition), background var(--transition);
}
.woocommerce-checkout #payment ul.payment_methods > li:hover { border-color: var(--color-accent-lt); }
.woocommerce-checkout #payment ul.payment_methods > li label { font-weight: 700; font-size: .9375rem; }
.woocommerce-checkout #payment div.payment_box {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin: 12px 0 0;
  padding: 14px;
  font-size: .8125rem;
  color: var(--color-text-muted);
}
.woocommerce-checkout #payment div.payment_box::before { display: none; }

/* ── 8. Botón final ─────────────────────────────────────────────────────────── */
.woocommerce-checkout #place_order {
  background: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px rgba(11, 57, 137, .22);
}
.woocommerce-checkout #place_order:hover { background: #072866; }

/* Naranja heredado de la paleta antigua: el token de marca es el navy. */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #072866 !important; }

/* ── 9. Letra pequeña ───────────────────────────────────────────────────────── */
.woocommerce-checkout .woocommerce-privacy-policy-text,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  font-size: .75rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 14px 0;
}
.woocommerce-checkout .woocommerce-privacy-policy-text p { margin: 0; }

/* ── 10. Móvil ──────────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
  .woocommerce-checkout .tibor-co-main,
  .woocommerce-checkout .tibor-co-side #order_review { padding: 20px 16px; }
  .woocommerce-checkout .woocommerce-checkout-review-order-table tbody td { font-size: .8125rem; }
}

/* ── 11. Pago en la columna IZQUIERDA + miniaturas + referencia   (19 ago 2026)
   El bloque de pago se movió desde el resumen a la columna del formulario. Este
   trozo solo lo viste; la mudanza la hace functions.php. Borrable por separado. */

/* Separación clara entre "datos del cliente" y "método de pago": misma tarjeta,
   dos bloques, una línea entre medias. */
.woocommerce-checkout .tibor-co-main #payment {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}
.woocommerce-checkout .tibor-co-payment-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.01em;
  margin: 0 0 16px;
}

/* El botón final ya no vive en una columna de 400px: se le da un respiro y un
   ancho máximo para que no quede como una barra desmesurada en escritorio. */
.woocommerce-checkout .tibor-co-main #payment .form-row.place-order { margin: 18px 0 0; padding: 0; }
.woocommerce-checkout .tibor-co-main #place_order { max-width: 420px; }
@media (max-width: 992px) {
  .woocommerce-checkout .tibor-co-main #place_order { max-width: none; }
}

/* ── Miniatura de cada línea del resumen ───────────────────────────────────── */
.woocommerce-checkout .cart_item .product-name {
  position: relative;
  padding-left: 60px;
  min-height: 48px;
}
.woocommerce-checkout .cart_item .product-name .tibor-co-thumb {
  position: absolute;
  left: 0;
  top: 2px;
  width: 48px;
  height: 48px;
}
.woocommerce-checkout .cart_item .product-name .tibor-co-thumb img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: cover;
  background: var(--color-bg);
}
/* Si un producto no tiene imagen, el hueco se cierra en vez de dejar un sangrado
   huérfano. :has() no está en todos los navegadores: el respaldo es que el
   marcador de WooCommerce siempre devuelve un placeholder, así que nunca queda vacío. */
.woocommerce-checkout .cart_item .product-name:not(:has(.tibor-co-thumb)) {
  padding-left: 0;
  min-height: 0;
}

/* ── Referencia del pedido, encima del resumen ─────────────────────────────── */
.woocommerce-checkout .tibor-co-ref { margin: 0 0 16px; }

/* ── Resumen: ahora solo lleva la lista y los totales, respira más ─────────── */
.woocommerce-checkout .tibor-co-side #order_review { padding-top: 22px; }

/* ── 12. Checkout ancho: menos margen exterior, más aire entre columnas ──────
   Solo se activa en el formulario de pago de escritorio. Carrito, pedido
   recibido, tablet y móvil conservan exactamente su composición actual. */
@media (min-width: 1200px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) #page-content > .container {
    width: 100%;
    max-width: 1600px;
  }

  body.woocommerce-checkout:not(.woocommerce-order-received) #page-content > .container > div {
    max-width: none !important;
  }

  .woocommerce-checkout .tibor-co-grid { gap: 48px; }

  /* Mitades reales: el formulario y el resumen reciben el mismo espacio útil. */
  .woocommerce-checkout .tibor-co-main,
  .woocommerce-checkout .tibor-co-side {
    flex: 1 1 0;
    min-width: 0;
  }

  /* La escala de 32px da aire interior sin cambiar la línea visual existente. */
  .woocommerce-checkout .tibor-co-main,
  .woocommerce-checkout .tibor-co-side #order_review {
    padding: 32px;
  }

  /* Resumen del producto: imagen, descripción e importe tienen zonas claras. */
  .woocommerce-checkout table.woocommerce-checkout-review-order-table {
    table-layout: fixed;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th.product-name,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-name {
    width: 70%;
    padding-right: 24px;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table th.product-total,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    width: 30%;
    padding-left: 24px;
    border-left: 1px solid var(--color-border);
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table tbody td {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .woocommerce-checkout .cart_item .product-name {
    padding-left: 112px;
    min-height: 88px;
    font-size: .9375rem;
  }

  .woocommerce-checkout .cart_item .product-name .tibor-co-thumb {
    top: 0;
    width: 88px;
    height: 88px;
  }

  .woocommerce-checkout .cart_item .product-name .tibor-co-thumb img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius-lg);
  }

  .woocommerce-checkout .cart_item .product-name dl.variation {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    margin-top: 12px;
  }

  .woocommerce-checkout .cart_item .product-name dl.variation dt,
  .woocommerce-checkout .cart_item .product-name dl.variation dd,
  .woocommerce-checkout .cart_item .product-name dl.variation dd p {
    display: block !important;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .woocommerce-checkout .cart_item .product-name .wc-item-meta > li {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 12px;
    margin-bottom: 4px;
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--color-text);
  }

  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total .tax_label,
  .woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total .woocommerce-price-suffix {
    display: block;
    margin-top: 4px;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-text-muted);
    white-space: normal;
  }
}

/* ── 13. Remitente del pedido: decisión visible y reconocible ─────────────── */
.woocommerce-checkout .tibor-checkout-sender {
  margin: 24px 0 8px;
  padding: 24px;
  border: 1px solid rgba(11, 57, 137, .22);
  border-radius: var(--radius-lg);
  background: #f7faff;
  box-shadow: 0 1px 3px rgba(11, 57, 137, .08);
}

.woocommerce-checkout .tibor-sender-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.woocommerce-checkout .tibor-sender-heading h3 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.woocommerce-checkout .tibor-sender-required {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 57, 137, .1);
  color: var(--color-primary);
  font-size: .6875rem;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.woocommerce-checkout .tibor-sender-help {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--color-text-muted);
  font-size: .875rem;
  line-height: 1.55;
}

.woocommerce-checkout .tibor-sender-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.woocommerce-checkout .tibor-sender-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 88px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.woocommerce-checkout .tibor-sender-option:hover {
  border-color: rgba(11, 57, 137, .4);
}

.woocommerce-checkout .tibor-sender-option:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(11, 57, 137, .12);
}

.woocommerce-checkout .tibor-sender-option:has(input:checked) {
  border-color: var(--color-primary);
  background: #eef4ff;
  box-shadow: 0 1px 3px rgba(11, 57, 137, .12);
}

.woocommerce-checkout .tibor-sender-option input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.woocommerce-checkout .tibor-sender-option-copy {
  display: block;
  min-width: 0;
}

.woocommerce-checkout .tibor-sender-option-copy strong,
.woocommerce-checkout .tibor-sender-option-copy small {
  display: block;
}

.woocommerce-checkout .tibor-sender-option-copy strong {
  margin-bottom: 4px;
  color: var(--color-primary);
  font-size: .9375rem;
  font-weight: 800;
  line-height: 1.35;
}

.woocommerce-checkout .tibor-sender-option-copy small {
  color: var(--color-text-muted);
  font-size: .75rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .woocommerce-checkout .tibor-checkout-sender { padding: 20px 16px; }
  .woocommerce-checkout .tibor-sender-heading { align-items: flex-start; }
  .woocommerce-checkout .tibor-sender-options { grid-template-columns: 1fr; }
  .woocommerce-checkout .tibor-sender-option { min-height: 0; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   PÁGINA "PEDIDO RECIBIDO" — DISEÑO 2026                       (19 agosto 2026)
   ------------------------------------------------------------------------------
   No había ni una regla para esta pantalla: salía en crudo de WooCommerce, con
   los datos del pedido como lista de puntos y el detalle recortado a dos líneas.

   Mismas reglas de la casa: al final del archivo, sin !important salvo el
   anti-recorte heredado de la tienda, y solo tokens del tema. Borrar el bloque
   entero devuelve la página a como estaba.
   ══════════════════════════════════════════════════════════════════════════════ */

.woocommerce-order { max-width: 1120px; margin: 0 auto; }

/* ── 1. El mensaje de "recibido": es la buena noticia, que se note ─────────── */
.woocommerce-order .woocommerce-notice--success,
.woocommerce-order .woocommerce-thankyou-order-received {
  background: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  color: #1b5e20;
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 16px 20px;
  margin: 0 0 24px;
}

/* ── 2. Los cuatro datos del pedido, en tarjetas en vez de viñetas ─────────── */
.woocommerce-order ul.order_details,
.woocommerce-order ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.woocommerce-order ul.order_details li,
.woocommerce-order ul.woocommerce-order-overview li {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin: 0;
  float: none;
  border-right: 1px solid var(--color-border);
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  line-height: 1.35;
  /* En grid, un item vale por defecto min-width:auto y NO puede encogerse:
     un correo largo (sin espacios donde partir) desbordaba la tarjeta. */
  min-width: 0;
}
.woocommerce-order ul.order_details li strong,
.woocommerce-order ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--color-primary);
  /* Un correo o una referencia larga parten donde haga falta antes que salirse. */
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* El correo es el dato más largo y el que menos se mira: un punto más pequeño. */
.woocommerce-order ul.order_details li.email strong,
.woocommerce-order ul.woocommerce-order-overview li.email strong {
  font-size: .9375rem;
  letter-spacing: 0;
}
/* El importe es el dato que más se mira: se le da un punto más de peso. */
.woocommerce-order ul.order_details li.total strong,
.woocommerce-order ul.woocommerce-order-overview li.total strong { font-size: 1.25rem; }
.woocommerce-order ul.order_details li.order strong,
.woocommerce-order ul.woocommerce-order-overview li.order strong {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

/* ── 3. Títulos de sección ─────────────────────────────────────────────────── */
.woocommerce-order .woocommerce-order-details__title,
.woocommerce-order .woocommerce-column__title,
.woocommerce-order h2 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -.01em;
  margin: 0 0 16px;
}

/* ── 4. Detalle del pedido, en tarjeta ─────────────────────────────────────── */
.woocommerce-order .woocommerce-order-details,
.woocommerce-order .woocommerce-customer-details {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin: 0 0 22px;
}
.woocommerce-order .tibor-order-ref-box { margin-bottom: 20px !important; }

.woocommerce-order table.woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
  border: 0;
}
.woocommerce-order table.woocommerce-table--order-details th.woocommerce-table__product-total,
.woocommerce-order table.woocommerce-table--order-details td.woocommerce-table__product-total { width: 130px; }
.woocommerce-order table.woocommerce-table--order-details thead th {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  font-weight: 800;
  text-align: left;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--color-border);
}
.woocommerce-order table.woocommerce-table--order-details thead th.woocommerce-table__product-total { text-align: right; }
.woocommerce-order table.woocommerce-table--order-details tbody td {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: .875rem;
  background: transparent;
}
.woocommerce-order table.woocommerce-table--order-details td.woocommerce-table__product-total {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  color: var(--color-primary);
}

/* Nombre + miniatura */
/* El sangrado que deja hueco a la miniatura va con la MISMA especificidad que
   `tbody td { padding: 16px 0 }`, o pierde. Medido: sin esto el padding-left
   valía 0 y la imagen se dibujaba encima del nombre del producto. */
.woocommerce-order table.woocommerce-table--order-details tbody td.woocommerce-table__product-name {
  padding-left: 62px;
}

.woocommerce-order .woocommerce-table__product-name {
  position: relative;
  min-height: 50px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}
.woocommerce-order .woocommerce-table__product-name a { color: inherit; text-decoration: none; }
.woocommerce-order .woocommerce-table__product-name a:hover { text-decoration: underline; }
.woocommerce-order .tibor-or-thumb { position: absolute; left: 0; top: 2px; width: 50px; height: 50px; }
.woocommerce-order .tibor-or-thumb img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: cover;
  background: var(--color-bg);
}
.woocommerce-order .woocommerce-table__product-name .product-quantity {
  font-weight: 600;
  color: var(--color-text-muted);
}

/* El detalle de cada línea: secundario, aireado y COMPLETO. */
.woocommerce-order .woocommerce-table__product-name small,
.woocommerce-order .woocommerce-table__product-name .wc-item-meta {
  display: block;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.woocommerce-order .woocommerce-table__product-name .wc-item-meta li { margin: 0 0 2px; }
.woocommerce-order .woocommerce-table__product-name .wc-item-meta strong { font-weight: 600; }
.woocommerce-order .woocommerce-table__product-name .wc-item-meta p { margin: 0; display: inline; }

/* MISMA CAUSA RAÍZ que en el carrito y en el checkout: la clase global
   .product-name de las tarjetas de tienda trae -webkit-line-clamp:2 y recortaba
   el detalle a dos líneas con puntos suspensivos. Se anula solo aquí. */
/* `display: table-cell` es la parte imprescindible: la celda hereda
   `display: -webkit-box` de la regla global `.product-name` de las tarjetas de
   tienda. Anular solo el line-clamp NO basta — con `-webkit-box-orient: initial`
   el valor que queda es `horizontal`, así que el nombre, la cantidad y el
   detalle se colocaban EN FILA y se salían de la tarjeta por la derecha.
   Se usa `table-cell` y no `block` porque un `<td>` en block rompe la tabla. */
.woocommerce-order .woocommerce-table__product-name { display: table-cell !important; }

.woocommerce-order .woocommerce-table__product-name,
.woocommerce-order .woocommerce-table__product-name * {
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset !important;
  -webkit-box-orient: initial !important;
  line-clamp: unset !important;
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

/* ── 5. Totales ────────────────────────────────────────────────────────────── */
.woocommerce-order table.woocommerce-table--order-details tfoot th,
.woocommerce-order table.woocommerce-table--order-details tfoot td {
  padding: 10px 0;
  font-size: .875rem;
  font-weight: 600;
  border: 0;
  background: transparent;
}
.woocommerce-order table.woocommerce-table--order-details tfoot th { text-align: left; }
.woocommerce-order table.woocommerce-table--order-details tfoot td { text-align: right; }
.woocommerce-order table.woocommerce-table--order-details tfoot tr:first-child th,
.woocommerce-order table.woocommerce-table--order-details tfoot tr:first-child td { padding-top: 16px; }
.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-order table.woocommerce-table--order-details tfoot tr:last-child td {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* ── 6. Dirección ──────────────────────────────────────────────────────────── */
.woocommerce-order .woocommerce-customer-details address {
  font-style: normal;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: var(--color-text);
}
.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--phone,
.woocommerce-order .woocommerce-customer-details .woocommerce-customer-details--email {
  margin: 6px 0 0;
  font-size: .875rem;
  color: var(--color-text-muted);
}

/* ── 7. Móvil ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .woocommerce-order .woocommerce-order-details,
  .woocommerce-order .woocommerce-customer-details { padding: 20px 16px; }
  .woocommerce-order table.woocommerce-table--order-details tbody td { font-size: .8125rem; }
  .woocommerce-order table.woocommerce-table--order-details tbody td.woocommerce-table__product-name { padding-left: 54px; }
  .woocommerce-order .tibor-or-thumb,
  .woocommerce-order .tibor-or-thumb img { width: 44px; height: 44px; }
}

/* =============================================================================
   MI CUENTA -> VER DETALLE DEL PEDIDO   (21 ago 2026)

   Ambito: `.tibor-view-order`, y SOLO ahi. La pagina de gracias no se toca.
   El contenedor lleva TAMBIEN la clase `woocommerce-order`, asi que hereda el
   diseno de tabla, miniaturas y totales que ya funcionaba alli.
   ============================================================================= */

/* El portal es MUY ancho. Sin tope, el precio acaba a un palmo de su producto. */
.tibor-view-order { max-width: 1040px; }

/* El parrafo "Order #X was placed on..." sobra: las tarjetas de arriba lo dicen
   mejor y la referencia ya la pinta el bloque azul. Se OCULTA, no se borra: el
   filtro `woocommerce_order_details_status` se sigue ejecutando. */
.tibor-view-order > p:first-of-type { display: none; }

/* Tarjetas resumen */
.tibor-view-order .tibor-vo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.tibor-view-order .tibor-vo-cards li {
  background: var(--color-bg-white);
  border: 1px solid #e7eef4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,57,137,.04), 0 8px 24px rgba(11,57,137,.06);
  padding: 14px 16px;
  margin: 0;
  min-width: 0; /* en grid, sin esto el item no encoge y el texto se sale */
}
.tibor-view-order .tibor-vo-card-label {
  display: block;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-text-muted);
  line-height: 1.35;
}
.tibor-view-order .tibor-vo-cards strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-primary);
  overflow-wrap: anywhere;
}
.tibor-view-order .tibor-vo-cards li.total strong { font-size: 1.25rem; }

/* LAS SECCIONES, EN TARJETA.
   La tarjeta va en la <section> que envuelve la tabla, NUNCA en el <table>: con
   `border-collapse: collapse` el navegador IGNORA el padding del propio <table>,
   y por eso el contenido salia pegado a los bordes sin aire lateral. */
.tibor-view-order .woocommerce-order-details,
.tibor-view-order .woocommerce-customer-details,
.tibor-view-order .tibor-vo-files {
  background: var(--color-bg-white);
  border: 1px solid #e7eef4;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(11,57,137,.04), 0 8px 24px rgba(11,57,137,.06);
  padding: 20px 24px 22px;
  margin: 0 0 20px;
}
/* La direccion ya esta dentro de su tarjeta: no lleva otra encima. */
.tibor-view-order .woocommerce-customer-details address {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.tibor-view-order table.woocommerce-table--order-details { padding: 0; border: 0; }

/* Titulos de seccion, alineados con el resto del portal. */
.tibor-view-order .woocommerce-order-details__title,
.tibor-view-order .woocommerce-column__title,
.tibor-view-order .tibor-vo-files h2 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--color-primary);
  text-align: left;
  margin: 0 0 14px;
}

/* ARCHIVOS DENTRO DE CADA ARTICULO.
   Ley de region comun: comparten recuadro con su producto, asi que se ve de un
   vistazo a que articulo pertenece cada archivo. Sin recuadro, flotarian. */
.tibor-view-order .tibor-vo-item-files {
  background: #f5f9ff;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 14px 0 4px;
}
.tibor-view-order .tibor-vo-item-files-title {
  display: block;
  font-size: .6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

/* Lista de archivos */
.tibor-view-order .tibor-vo-filelist { list-style: none; margin: 0 0 12px; padding: 0; }
.tibor-view-order .tibor-vo-filelist li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 0;
  font-size: .8125rem;
}
.tibor-view-order .tibor-vo-filelist li + li { border-top: 1px solid #dbe7f8; }
.tibor-view-order .tibor-vo-filelist a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere; /* nombres largos sin espacios no desbordan */
}
.tibor-view-order .tibor-vo-filelist a:hover { text-decoration: underline; }
.tibor-view-order .tibor-vo-filelist small { color: var(--color-text-muted); font-size: .72rem; }
.tibor-view-order .tibor-vo-file-none { color: var(--color-text-muted); font-style: italic; }

/* Controles de subida */
.tibor-view-order .tibor-vo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tibor-view-order .tibor-vo-input {
  font: inherit;
  font-size: .8125rem;
  padding: 7px 10px;
  border: 1.5px solid #dbe7f8;
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
  max-width: 100%;
  flex: 1 1 220px;
  min-width: 0;
}
.tibor-view-order .tibor-vo-btn {
  font: inherit;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg,#315ca8,#0b3989 60%,#0b3989);
  border: 0;
  border-radius: 10px;
  padding: 9px 20px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(11,57,137,.24);
  transition: background .2s, box-shadow .2s, transform .1s;
}
.tibor-view-order .tibor-vo-btn:hover:not(:disabled) {
  background: #072866;
  box-shadow: 0 9px 20px rgba(11,57,137,.32);
  transform: translateY(-1px);
}
.tibor-view-order .tibor-vo-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }

.tibor-view-order .tibor-vo-hint { margin: 8px 0 0; font-size: .75rem; color: var(--color-text-muted); }
.tibor-view-order .tibor-vo-msg  { width: 100%; margin: 4px 0 0; font-size: .78rem; }
.tibor-view-order .tibor-vo-msg.is-ok    { color: #15803d; font-weight: 600; }
.tibor-view-order .tibor-vo-msg.is-error { color: #b91c1c; font-weight: 600; }

/* Movil */
@media (max-width: 640px) {
  .tibor-view-order .woocommerce-order-details,
  .tibor-view-order .woocommerce-customer-details,
  .tibor-view-order .tibor-vo-files { padding: 16px 16px 18px; }
  .tibor-view-order .tibor-vo-cards { gap: 10px; }
  .tibor-view-order .tibor-vo-input,
  .tibor-view-order .tibor-vo-btn { width: 100%; flex: 1 1 100%; }
}

/* =============================================================================
   DETALLE DEL PEDIDO — pulido visual 2026
   Solo presentacion. Todo queda contenido bajo `.tibor-view-order`.
   ============================================================================= */
body.woocommerce-view-order .tibor-view-order {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  --vo-border: #dce6f2;
  --vo-soft: #f5f8fc;
  --vo-soft-blue: #edf4ff;
  --vo-shadow: 0 12px 34px rgba(16, 35, 63, .07);
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li {
  position: relative;
  min-height: 98px;
  padding: 18px 20px;
  overflow: hidden;
  border-color: var(--vo-border);
  border-radius: 18px;
  box-shadow: var(--vo-shadow);
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li::after {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(11, 57, 137, .045);
  content: "";
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-card-label {
  color: #687a91;
  font-size: .7rem;
  letter-spacing: .075em;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards strong {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: #0b3989;
  font-size: 1.08rem;
  line-height: 1.25;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li.total {
  border-color: #c9daf1;
  background: linear-gradient(145deg, #f7faff 0%, #edf4ff 100%);
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li.total strong {
  font-size: 1.32rem;
}

body.woocommerce-view-order .tibor-view-order .woocommerce-order-details,
body.woocommerce-view-order .tibor-view-order .woocommerce-customer-details,
body.woocommerce-view-order .tibor-view-order .tibor-vo-files {
  margin-bottom: 24px;
  padding: 26px 30px 30px;
  border-color: var(--vo-border);
  border-radius: 20px;
  box-shadow: var(--vo-shadow);
}

body.woocommerce-view-order .tibor-view-order .woocommerce-order-details__title,
body.woocommerce-view-order .tibor-view-order .woocommerce-column__title,
body.woocommerce-view-order .tibor-view-order .tibor-vo-files h2 {
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8eef6;
  color: #10233f;
  font-size: 1.16rem;
  letter-spacing: -.02em;
}

body.woocommerce-view-order .tibor-view-order .tibor-order-ref-box {
  display: flex;
  min-height: 58px;
  margin: 0 0 24px !important;
  padding: 15px 18px !important;
  align-items: center;
  gap: 7px;
  border: 1px solid #c6dbf7 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #f2f7ff, #eaf3ff) !important;
  color: #34506f !important;
  font-size: .92rem !important;
  line-height: 1.45;
}

body.woocommerce-view-order .tibor-view-order .tibor-order-ref-box span {
  color: #0b3989 !important;
  font-weight: 750 !important;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details {
  border-collapse: separate;
  border-spacing: 0;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details thead th {
  padding: 11px 14px;
  border-top: 1px solid #e5edf6;
  border-bottom: 1px solid #e5edf6;
  background: var(--vo-soft);
  color: #63758c;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details thead th:first-child {
  border-left: 1px solid #e5edf6;
  border-radius: 10px 0 0 10px;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details thead th:last-child {
  border-right: 1px solid #e5edf6;
  border-radius: 0 10px 10px 0;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tbody td {
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom-color: #e7edf5;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tbody td.woocommerce-table__product-name {
  padding-left: 78px;
  padding-right: 20px;
  color: #12345d;
  font-size: .98rem;
  line-height: 1.45;
}

body.woocommerce-view-order .tibor-view-order .tibor-or-thumb {
  top: 20px;
  width: 62px;
  height: 62px;
}

body.woocommerce-view-order .tibor-view-order .tibor-or-thumb img {
  width: 62px;
  height: 62px;
  padding: 3px;
  border-color: #d9e3ef;
  border-radius: 12px;
  background: #f7f9fc;
  object-fit: contain;
}

body.woocommerce-view-order .tibor-view-order .woocommerce-table__product-name > a {
  color: #0b3989;
  font-size: 1rem;
  font-weight: 800;
}

body.woocommerce-view-order .tibor-view-order .woocommerce-table__product-name small {
  margin-top: 7px;
  color: #6b7d94;
  font-size: .8rem;
  line-height: 1.65;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details td.woocommerce-table__product-total {
  padding-right: 14px;
  color: #0b3989;
  font-size: .96rem;
  font-weight: 800;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-item-files {
  width: 100%;
  margin: 16px 0 2px;
  padding: 16px;
  border: 1px solid #d6e3f3;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fbff, #f1f6fd);
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-item-files-title {
  margin-bottom: 9px;
  color: #0b3989;
  font-size: .72rem;
  letter-spacing: .07em;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-file-none {
  display: block;
  margin: 0 0 13px;
  color: #6c7e94;
  font-size: .8rem;
  line-height: 1.5;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-input {
  width: 100%;
  min-height: 48px;
  padding: 5px 8px;
  border: 1px solid #cad9eb;
  border-radius: 11px;
  background: #fff;
  color: #465a72;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-input::file-selector-button {
  min-height: 36px;
  margin-right: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  background: #eaf2fd;
  color: #0b3989;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-input:focus-visible {
  border-color: #0b3989;
  outline: 3px solid rgba(11, 57, 137, .14);
  outline-offset: 1px;
}

body.woocommerce-view-order .tibor-view-order .tibor-vo-btn {
  min-width: 112px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 11px;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tfoot th,
body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tfoot td {
  padding-top: 11px;
  padding-bottom: 11px;
}

body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tfoot tr:last-child td {
  border-top: 1px solid #cfdaea;
  font-size: 1.16rem;
}

@media (max-width: 900px) {
  body.woocommerce-view-order .tibor-view-order .tibor-vo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.woocommerce-view-order .tibor-view-order .tibor-vo-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li {
    min-height: 88px;
    padding: 14px;
    border-radius: 14px;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-vo-cards strong,
  body.woocommerce-view-order .tibor-view-order .tibor-vo-cards li.total strong {
    font-size: .95rem;
  }

  body.woocommerce-view-order .tibor-view-order .woocommerce-order-details,
  body.woocommerce-view-order .tibor-view-order .woocommerce-customer-details,
  body.woocommerce-view-order .tibor-view-order .tibor-vo-files {
    padding: 18px 14px 20px;
    border-radius: 16px;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-order-ref-box {
    display: block;
    min-height: 0;
    padding: 13px 14px !important;
  }

  body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details th.woocommerce-table__product-total,
  body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details td.woocommerce-table__product-total {
    width: 86px;
  }

  body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details thead th {
    padding-right: 8px;
    padding-left: 8px;
  }

  body.woocommerce-view-order .tibor-view-order table.woocommerce-table--order-details tbody td.woocommerce-table__product-name {
    padding-left: 58px;
    padding-right: 10px;
    font-size: .87rem;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-or-thumb {
    top: 18px;
    width: 48px;
    height: 48px;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-or-thumb img {
    width: 48px;
    height: 48px;
  }

  body.woocommerce-view-order .tibor-view-order .woocommerce-table__product-name > a {
    font-size: .92rem;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-vo-item-files {
    margin-top: 13px;
    padding: 13px;
  }

  body.woocommerce-view-order .tibor-view-order .tibor-vo-upload {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-view-order .tibor-view-order .tibor-vo-btn {
    width: 100%;
  }
}

/* La vista compacta debe prevalecer sobre los estilos historicos del carrito. */
/* Checkout compacto: solo cambia la lista de productos en pantallas moviles. */
@media (max-width: 767px) {
  html body.woocommerce-checkout table.woocommerce-checkout-review-order-table {
    display: block !important;
    width: 100% !important;
    table-layout: auto !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table thead {
    display: none !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody {
    display: block !important;
    width: 100% !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot {
    display: table !important;
    width: 100% !important;
    table-layout: fixed;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto;
    gap: 0 8px;
    width: 100% !important;
    max-width: 100%;
    min-height: 80px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--color-border, #dbe4ef);
    box-sizing: border-box;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > td.product-name {
    display: block !important;
    grid-column: 1 / 3;
    grid-row: 1;
    width: auto !important;
    min-width: 0;
    min-height: 56px;
    padding: 0 0 0 64px !important;
    border: 0 !important;
    font-size: 14px;
    line-height: 1.35;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-thumb {
    top: 0;
    left: 0;
    width: 56px;
    height: 56px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-thumb img {
    width: 56px;
    height: 56px;
    padding: 3px;
    border-radius: 8px;
    box-sizing: border-box;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-name {
    display: -webkit-box !important;
    min-width: 0;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item > td.product-total {
    display: block !important;
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    width: auto !important;
    min-width: max-content;
    padding: 0 !important;
    border: 0 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total .tax_label,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table td.product-total .woocommerce-price-suffix {
    display: none !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > dl.variation,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .wc-item-meta {
    display: none !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
    position: relative !important;
    display: block !important;
    width: max-content;
    margin: 6px 0 0;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary {
    display: inline-flex !important;
    width: 28px;
    height: 28px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > .tibor-item-info-popover {
    position: absolute !important;
    top: calc(100% + 8px);
    left: -64px;
    display: none !important;
    width: min(300px, calc(100vw - 48px));
    max-height: min(420px, 65vh) !important;
    overflow: auto !important;
    white-space: normal !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] > .tibor-item-info-popover,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:hover > .tibor-item-info-popover,
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:focus-within > .tibor-item-info-popover {
    display: block !important;
  }
}

@media (min-width: 768px) {
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item .product-name .tibor-co-name {
    display: inline !important;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
    display: none !important;
  }
}

.tibor-item-info {
  position: relative !important;
  display: inline-block !important;
}

.tibor-item-info > summary {
  display: inline-flex !important;
}

.tibor-item-info-popover {
  position: absolute !important;
  display: none !important;
  overflow: auto !important;
}

.tibor-item-info[open] > .tibor-item-info-popover,
.tibor-item-info:hover > .tibor-item-info-popover,
.tibor-item-info:focus-within > .tibor-item-info-popover {
  display: block !important;
}

body.woocommerce-checkout .cart_item td.product-name > dl.variation,
body.woocommerce-checkout .cart_item td.product-name > .wc-item-meta {
  display: none !important;
}

body.woocommerce-checkout .tibor-checkout-item-info {
  display: inline-block !important;
}

@media (max-width: 767px) {
  body.woocommerce-cart {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body.woocommerce-cart #page-content > .container {
    padding: 12px 8px 28px !important;
  }

  body.woocommerce-cart #page-content {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  body.woocommerce-cart #page-content > .container > .woocommerce {
    padding: 16px 10px !important;
  }

  body.woocommerce-cart #page-content > .container > .woocommerce > h1 {
    margin-bottom: 16px;
    font-size: 24px;
  }

  body.woocommerce-cart .tibor-cart-layout {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  body.woocommerce-cart .tibor-cart-main {
    display: contents !important;
  }

  body.woocommerce-cart .tibor-cart-ref {
    order: 1;
    margin-bottom: 0;
    padding: 9px 12px;
    font-size: 12px;
  }

  body.woocommerce-cart .woocommerce-cart-form {
    order: 2;
  }

  body.woocommerce-cart .tibor-cart-side {
    order: 3;
    margin-top: 0;
  }

  body.woocommerce-cart .tibor-cart-simple-actions {
    order: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 0;
  }

  body.woocommerce-cart .tibor-cart-simple-actions .tibor-btn-continue,
  body.woocommerce-cart .tibor-cart-simple-actions .tibor-btn-empty {
    min-height: 40px;
    padding: 9px 10px;
    font-size: 12px;
  }

  body.woocommerce-cart .tibor-cart-table tbody {
    overflow: visible !important;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 10px;
    background: #fff;
  }

  body.woocommerce-cart .tibor-cart-table tbody tr.cart_item {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    min-height: 80px;
    margin: 0;
    padding: 12px 10px;
    border: 0 !important;
    border-bottom: 1px solid var(--color-border, #dbe4ef) !important;
    border-radius: 0;
    box-shadow: none;
  }

  body.woocommerce-cart .tibor-cart-table tbody tr.cart_item:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 56px !important;
    margin: 0;
    align-self: start;
  }

  body.woocommerce-cart .tibor-cart-table .product-thumbnail img {
    width: 56px !important;
    height: 56px !important;
    padding: 4px;
    border-radius: 8px;
  }

  body.woocommerce-cart .tibor-cart-table .product-name {
    grid-column: 2;
    grid-row: 1 / 3;
    padding-right: 4px !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-name .tibor-cart-pname {
    display: -webkit-box !important;
    margin: 0 0 2px !important;
    overflow: hidden !important;
    font-size: 13px;
    line-height: 1.3;
    overflow-wrap: anywhere !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }

  body.woocommerce-cart .tibor-cart-table .tibor-cart-pprice {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-table .tibor-cart-item-info {
    position: relative !important;
    display: inline-block !important;
    margin: 6px 0 0;
  }

  body.woocommerce-cart .tibor-cart-table .tibor-cart-item-info > summary {
    display: inline-flex !important;
    width: 40px;
    height: 40px;
  }

  body.woocommerce-cart .tibor-cart-table .product-subtotal {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    padding: 0 !important;
    text-align: right;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
  }

  body.woocommerce-cart .tibor-cart-table .product-subtotal .tax_label,
  body.woocommerce-cart .tibor-cart-table .product-subtotal .woocommerce-price-suffix {
    display: none !important;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    text-align: right;
  }

  body.woocommerce-cart .tibor-cart-table .product-remove a.remove {
    width: 40px;
    height: 40px;
  }

  body.woocommerce-cart .tibor-cart-item-info .tibor-item-info-popover {
    position: absolute !important;
    display: none !important;
    left: -66px;
    width: min(300px, calc(100vw - 44px));
    max-height: min(420px, 65vh) !important;
    overflow: auto !important;
  }

  body.woocommerce-cart .tibor-cart-item-info[open] > .tibor-item-info-popover,
  body.woocommerce-cart .tibor-cart-item-info:hover > .tibor-item-info-popover,
  body.woocommerce-cart .tibor-cart-item-info:focus-within > .tibor-item-info-popover {
    display: block !important;
  }

  body.woocommerce-cart .tibor-cart-totals {
    padding: 16px 14px;
    border-radius: 10px;
  }

  body.woocommerce-cart .tibor-cart-totals-title {
    margin-bottom: 12px;
    font-size: 16px;
  }

  body.woocommerce-cart .tibor-coupon-acc {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  body.woocommerce-cart .tibor-coupon-acc summary,
  body.woocommerce-cart .tibor-totals-row {
    font-size: 13px;
  }

  body.woocommerce-cart .tibor-totals-rows {
    margin-bottom: 12px;
  }

  body.woocommerce-cart .tibor-totals-row {
    padding: 7px 0;
  }

  body.woocommerce-cart .tibor-totals-grand {
    margin-top: 4px;
    padding-top: 12px;
    font-size: 18px;
  }

  body.woocommerce-cart .tibor-checkout-btn {
    position: fixed;
    z-index: 9998;
    right: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    width: calc(100% - 32px);
    max-width: 448px;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 16px;
    transform: translateX(-50%);
    border-radius: var(--radius-md);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .96), 0 -8px 24px rgba(15, 23, 42, .16);
    box-sizing: border-box;
  }

}

/* La vista desplegable del checkout prevalece sobre sus reglas compactas históricas. */
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
  position: static !important;
  display: block !important;
  width: 100%;
  margin: 8px 0 0;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary {
  display: inline-flex !important;
  width: auto;
  min-width: 0;
  height: 40px;
  min-height: 40px;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > .tibor-item-info-popover,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:hover:not([open]) > .tibor-item-info-popover,
html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info:focus-within:not([open]) > .tibor-item-info-popover {
  position: static !important;
  display: none !important;
  width: 100%;
  max-height: none !important;
  overflow: visible !important;
}

html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info[open] > .tibor-item-info-popover {
  position: static !important;
  display: block !important;
}

@media (max-width: 767px) {
  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .cart_item td.product-name > .tibor-checkout-item-info {
    width: calc(100% + 64px);
    margin-top: 8px;
    margin-left: -64px;
  }

  html body.woocommerce-checkout .woocommerce-checkout-review-order-table .tibor-checkout-item-info > summary {
    width: auto;
    height: 44px;
    min-height: 44px;
    margin-left: 64px;
  }
}

/* ============================================================
   Paso de envío — revisión visual en dos zonas
============================================================ */
@media (min-width: 768px) {
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-shipping .tibor-co-grid {
    width: min(100%, 1400px);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-co-side {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-aside {
    min-width: 0;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main {
    padding: 32px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-aside {
    display: flex;
    padding: 24px;
    gap: 16px;
    flex-direction: column;
    background: rgba(11, 57, 137, .025);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head {
    display: flex;
    margin: 24px 0 16px;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head #order_review_heading {
    order: 1;
    margin: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head .tibor-co-ref {
    order: 2;
    margin: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main #order_review {
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(11, 57, 137, .2);
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table thead {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tbody tr.cart_item:last-child td {
    border-bottom: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tfoot {
    display: table-row-group;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tfoot tr {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
    display: table-row;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals th,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
    padding: 16px;
    border-top: 1px solid rgba(11, 57, 137, .12);
    background: rgba(11, 57, 137, .025);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-mobile-actions {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status {
    display: flex;
    padding: 16px;
    gap: 12px;
    border: 1px solid rgba(11, 57, 137, .1);
    border-radius: 12px;
    background: rgba(11, 57, 137, .065);
    color: var(--color-primary, #0b3989);
    align-items: center;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status__icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #fff;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status strong,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status small {
    display: block;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status strong {
    font-size: 14px;
    line-height: 1.4;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-status small {
    margin-top: 4px;
    color: var(--color-text-muted, #64748b);
    font-size: 12px;
    line-height: 1.4;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary {
    padding: 24px;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary > h3 {
    margin: 0 0 16px;
    color: var(--color-primary, #0b3989);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__count {
    margin: 0;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--color-border, #dbe4ef);
    color: var(--color-text-muted, #64748b);
    font-size: 14px;
    font-weight: 600;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table tfoot {
    display: table-row-group;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table th,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border, #dbe4ef);
    color: var(--color-text, #25324a);
    font-size: 14px;
    font-weight: 600;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table th {
    text-align: left;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table td {
    text-align: right;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table .order-total th,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__table .order-total td {
    padding-top: 16px;
    border-bottom: 0;
    color: var(--color-primary, #0b3989);
    font-size: 18px;
    font-weight: 800;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__next {
    width: 100%;
    min-width: 0;
    margin-top: 16px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__note {
    display: flex;
    margin: 12px 0 0;
    padding: 12px;
    gap: 8px;
    border-radius: 10px;
    background: rgba(11, 57, 137, .045);
    color: var(--color-text-muted, #64748b);
    align-items: center;
    font-size: 12px;
    line-height: 1.45;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-summary__note i {
    color: var(--color-primary, #0b3989);
  }
}

@media (min-width: 993px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    align-items: start;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-aside {
    position: sticky;
    top: 100px;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-aside {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head {
    display: flex;
    margin: 16px 0 12px;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head #order_review_heading,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-head .tibor-co-ref {
    margin: 0;
  }
}

/* ============================================================
   Tarjetas de producto del paso Envío
   La tabla WooCommerce permanece como fuente y fallback.
============================================================ */
.woocommerce-checkout .tibor-shipping-products {
  display: none;
}

@media (min-width: 768px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-products {
    display: grid;
    gap: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main #order_review {
    margin-top: 16px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping:not(.has-shipping-methods) .tibor-shipping-main #order_review {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table thead,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tbody {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card {
    overflow: hidden;
    border: 1px solid rgba(11, 57, 137, .18);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card:hover {
    border-color: rgba(11, 57, 137, .35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .07);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card[open] {
    border-color: rgba(11, 57, 137, .38);
    box-shadow: 0 10px 28px rgba(11, 57, 137, .08);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto 44px;
    min-height: 104px;
    padding: 16px;
    gap: 16px;
    background: #fff;
    color: var(--color-text, #25324a);
    align-items: center;
    list-style: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color .2s ease;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary::-webkit-details-marker {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary:hover,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary:focus-visible,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card[open] > .tibor-review-card__summary {
    background: rgba(11, 57, 137, .035);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary:focus-visible {
    outline: 3px solid rgba(11, 57, 137, .18);
    outline-offset: -3px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb.tibor-co-thumb {
    position: static !important;
    display: block !important;
    width: 72px !important;
    height: 72px !important;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb img {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    padding: 4px;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 10px;
    background: var(--color-bg, #f5f7fa);
    object-fit: contain;
    box-sizing: border-box;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__identity {
    display: block;
    min-width: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__title,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__title .tibor-co-name {
    display: block !important;
    min-width: 0;
    overflow: hidden;
    color: var(--color-primary, #0b3989);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badges {
    display: flex;
    margin-top: 10px;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badge {
    display: inline-flex;
    min-height: 32px;
    padding: 6px 10px;
    gap: 6px;
    border: 1px solid rgba(11, 57, 137, .13);
    border-radius: 8px;
    background: rgba(11, 57, 137, .055);
    color: var(--color-primary, #0b3989);
    align-items: center;
    box-sizing: border-box;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badge i {
    font-size: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price {
    display: block;
    min-width: 112px;
    color: var(--color-primary, #0b3989);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price .tax_label,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price .woocommerce-price-suffix {
    display: block;
    margin-top: 4px;
    color: var(--color-text-muted, #64748b);
    font-size: 12px;
    font-weight: 500;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(11, 57, 137, .18);
    border-radius: 10px;
    background: #fff;
    color: var(--color-primary, #0b3989);
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    line-height: .8;
    transform: rotate(0deg);
    transition: transform .2s ease, background-color .2s ease;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card[open] .tibor-review-card__toggle {
    background: rgba(11, 57, 137, .07);
    transform: rotate(180deg);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body {
    padding: 20px 24px 24px;
    border-top: 1px solid rgba(11, 57, 137, .12);
    background: rgba(11, 57, 137, .018);
    animation: tibor-checkout-info-in .18s ease-out;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body-title {
    display: flex;
    margin: 0 0 16px;
    gap: 8px;
    color: var(--color-primary, #0b3989);
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details .wc-item-meta {
    display: grid !important;
    grid-template-columns: minmax(140px, .38fr) minmax(0, 1fr);
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 24px;
    list-style: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation dt,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation dd,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation dd p {
    display: block !important;
    min-width: 0;
    margin: 0;
    padding: 9px 0;
    border-bottom: 1px solid rgba(11, 57, 137, .1);
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation dt {
    color: var(--color-text-muted, #64748b);
    font-weight: 600;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__details dl.variation dd {
    color: var(--color-text, #25324a);
    font-weight: 600;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-order-count {
    color: var(--color-text-muted, #64748b);
    font-size: 14px;
    font-weight: 500;
  }
}

@media (min-width: 993px) {
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-shipping .tibor-co-grid {
    display: block;
    width: 100%;
    max-width: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-shipping .tibor-co-side {
    position: static;
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping:not([hidden]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 390px) !important;
    grid-template-areas: "products summary";
    gap: 24px !important;
    align-items: start;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping:not([hidden]) > .tibor-shipping-main {
    grid-area: products;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--shipping:not([hidden]) > .tibor-shipping-aside {
    display: flex;
    grid-area: summary;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-products {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__toggle {
    transition: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body {
    animation: none;
  }
}

/* ============================================================
   Ficha compacta de producto: caracteristicas + archivo
============================================================ */
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  padding: 20px;
  gap: 20px;
  align-items: start;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__section {
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body-title {
  margin: 0 0 12px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 10px 12px;
  gap: 4px;
  border: 1px solid rgba(11, 57, 137, .1);
  border-radius: 10px;
  background: #fff;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact-label {
  color: var(--color-text-muted, #64748b);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact-value {
  min-width: 0;
  color: var(--color-text, #25324a);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact-value dd,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact-value p,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-name dd,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-name p {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__section--file {
  padding-left: 20px;
  border-left: 1px solid rgba(11, 57, 137, .12);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file {
  display: flex;
  min-width: 0;
  padding: 14px;
  gap: 12px;
  border: 1px solid rgba(11, 57, 137, .12);
  border-radius: 12px;
  background: #fff;
  align-items: center;
  box-sizing: border-box;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-visual {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  overflow: hidden;
  border: 1px solid var(--color-border, #dbe4ef);
  border-radius: 10px;
  background: var(--color-bg, #f5f7fa);
  color: var(--color-primary, #0b3989);
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-visual .tibor-co-thumb,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-visual img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 3px;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  box-sizing: border-box;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-text,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-name {
  display: block;
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file-name {
  color: var(--color-primary, #0b3989);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-products {
    display: grid !important;
    gap: 10px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-shipping-main .woocommerce-checkout-review-order-table tbody {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card {
    overflow: hidden;
    border: 1px solid rgba(11, 57, 137, .16);
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 36px;
    grid-template-areas:
      "thumb identity toggle"
      "thumb price toggle";
    min-height: 82px;
    padding: 12px;
    gap: 4px 10px;
    list-style: none;
    align-items: center;
    cursor: pointer;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__summary::-webkit-details-marker {
    display: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb.tibor-co-thumb {
    position: static !important;
    display: block !important;
    grid-area: thumb;
    width: 52px !important;
    height: 52px !important;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__thumb img {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    padding: 3px;
    border: 1px solid var(--color-border, #dbe4ef);
    border-radius: 9px;
    object-fit: contain;
    box-sizing: border-box;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__identity {
    grid-area: identity;
    min-width: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__title,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__title .tibor-co-name {
    display: block !important;
    overflow: hidden;
    color: var(--color-primary, #0b3989);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badges {
    display: flex;
    margin-top: 5px;
    gap: 5px;
    overflow: hidden;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badge {
    display: inline-flex;
    min-width: 0;
    min-height: 24px;
    padding: 4px 7px;
    gap: 4px;
    overflow: hidden;
    border: 1px solid rgba(11, 57, 137, .12);
    border-radius: 7px;
    background: rgba(11, 57, 137, .045);
    color: var(--color-primary, #0b3989);
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__badge:last-child {
    flex: 1 1 auto;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price {
    display: block;
    grid-area: price;
    min-width: 0;
    color: var(--color-primary, #0b3989);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    white-space: nowrap;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price .tax_label,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__price .woocommerce-price-suffix {
    display: inline;
    margin: 0 0 0 4px;
    color: var(--color-text-muted, #64748b);
    font-size: 9px;
    font-weight: 500;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__toggle {
    display: inline-flex;
    grid-area: toggle;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(11, 57, 137, .16);
    border-radius: 9px;
    color: var(--color-primary, #0b3989);
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card[open] .tibor-review-card__toggle {
    transform: rotate(180deg);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__body {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
    gap: 16px;
    border-top: 1px solid rgba(11, 57, 137, .1);
    background: rgba(11, 57, 137, .018);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__fact {
    min-height: 54px;
    padding: 9px 10px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__section--file {
    padding: 14px 0 0;
    border-top: 1px solid rgba(11, 57, 137, .1);
    border-left: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__file {
    padding: 10px;
  }
}

@media (max-width: 390px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-review-card__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ============================================================
   Paso Datos: formulario guiado y adaptable
============================================================ */
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading {
  display: flex;
  margin: 0 0 24px;
  gap: 16px;
  align-items: center;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading__icon,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__icon {
  display: inline-flex;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(11, 57, 137, .065);
  color: var(--color-primary, #0b3989);
  align-items: center;
  justify-content: center;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading__icon {
  width: 56px;
  height: 56px;
  font-size: 23px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading > span:last-child {
  display: block;
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading .tibor-checkout-step__title,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading .tibor-checkout-step__intro {
  margin: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading .tibor-checkout-step__intro {
  margin-top: 4px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details #customer_details {
  display: grid;
  min-width: 0;
  gap: 24px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details #customer_details::before,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details #customer_details::after {
  display: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside {
  float: none;
  width: auto;
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-billing-fields,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-billing-fields__field-wrapper {
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-billing-fields > h3,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-additional-fields > h3 {
  display: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(11, 57, 137, .14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .035);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--address,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--additional {
  grid-column: auto;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 32px;
  min-height: 56px;
  padding: 10px 14px;
  gap: 10px;
  background: rgba(11, 57, 137, .02);
  color: var(--color-primary, #0b3989);
  align-items: center;
  list-style: none;
  box-sizing: border-box;
  cursor: default;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary::-webkit-details-marker {
  display: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary::marker {
  content: '';
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 15px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary strong {
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__chevron {
  display: none;
  color: var(--color-primary, #0b3989);
  font-size: 19px;
  line-height: 1;
  text-align: center;
  transform: rotate(180deg);
  transition: transform .2s ease;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 16px 16px;
  gap: 12px 16px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--contact .tibor-details-group__content {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--additional .tibor-details-group__content {
  grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content .form-row {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content #billing_address_1_field,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content #billing_city_field,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content #billing_company_field {
  grid-column: 1 / -1;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content label {
  margin-bottom: 5px;
  color: var(--color-text, #25324a);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content input.input-text,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content select,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content textarea,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content .select2-selection {
  min-height: 44px;
  border-color: rgba(11, 57, 137, .2);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
  font-size: 13px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content textarea {
  min-height: 86px;
  resize: vertical;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-account-fields {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 57, 137, .12);
  border-radius: 12px;
  background: rgba(11, 57, 137, .025);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-account-fields .form-row {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-account-fields label {
  display: inline-flex;
  min-height: 32px;
  gap: 8px;
  color: var(--color-text, #25324a);
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-primary .woocommerce-account-fields input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-primary, #0b3989);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content input.input-text:focus,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content select:focus,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content textarea:focus,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content .select2-container--open .select2-selection {
  border-color: var(--color-primary, #0b3989);
  box-shadow: 0 0 0 3px rgba(11, 57, 137, .1);
  outline: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside {
  display: flex;
  gap: 16px;
  flex-direction: column;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-checkout-sender {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-details-group--sender {
  box-shadow: 0 4px 18px rgba(15, 23, 42, .045);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-details-group--sender .tibor-details-group__content {
  display: block;
  padding: 0 16px 16px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-heading {
  display: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-heading::before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(11, 57, 137, .065);
  color: var(--color-primary, #0b3989);
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f0d1";
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-required {
  display: none;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-options {
  grid-template-columns: minmax(0, 1fr);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option {
  position: relative;
  min-height: 96px;
  padding: 16px;
  border-radius: 12px;
  align-items: flex-start;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option:first-of-type::after {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(11, 57, 137, .09);
  color: var(--color-primary, #0b3989);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
  content: "Recomendado";
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option:first-of-type .tibor-sender-option-copy {
  padding-right: 78px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-checkout-step__actions {
  width: 100%;
  margin: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-checkout-step__next {
  width: 100%;
  min-width: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 12px;
  gap: 8px;
  border: 1px solid rgba(11, 57, 137, .1);
  border-radius: 12px;
  background: rgba(11, 57, 137, .045);
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust > span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-width: 0;
  column-gap: 7px;
  align-items: center;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust i {
  grid-row: 1 / 3;
  color: var(--color-primary, #0b3989);
  font-size: 17px;
  text-align: center;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust strong,
body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust small {
  display: block;
  min-width: 0;
  line-height: 1.3;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust strong {
  color: var(--color-primary, #0b3989);
  font-size: 10px;
  font-weight: 800;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust small {
  color: var(--color-text-muted, #64748b);
  font-size: 9px;
}

@media (min-width: 993px) {
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-co-grid {
    display: block;
    width: min(100%, 1240px);
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-co-main {
    width: 100%;
    max-width: none;
    padding: 28px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details #customer_details {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    align-items: start;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside {
    position: sticky;
    top: 104px;
  }
}

@media (max-width: 992px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details #customer_details {
    grid-template-columns: minmax(0, 1fr);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-checkout-sender {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-checkout-step--details {
    min-width: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading {
    margin-bottom: 16px;
    gap: 12px;
    align-items: flex-start;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 19px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading .tibor-checkout-step__title {
    font-size: 20px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-heading .tibor-checkout-step__intro {
    font-size: 12px;
    line-height: 1.4;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--address,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--additional {
    grid-column: auto;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group {
    border-radius: 12px;
    box-shadow: none;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary {
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    min-height: 54px;
    padding: 9px 12px;
    cursor: pointer;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary strong {
    font-size: 14px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__chevron {
    display: block;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group:not([open]) .tibor-details-group__chevron {
    transform: rotate(0deg);
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px 12px 12px;
    gap: 10px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--contact .tibor-details-group__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content label {
    font-size: 11px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content input.input-text,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content select,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content textarea,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content .select2-selection {
    min-height: 42px;
    font-size: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside {
    gap: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-checkout-sender {
    padding: 0;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-details-group--sender .tibor-details-group__content {
    padding: 0 12px 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-heading {
    padding-left: 42px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-heading::before {
    width: 34px;
    height: 34px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-help {
    margin-bottom: 12px;
    font-size: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option {
    min-height: 76px;
    padding: 12px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust {
    padding: 10px 6px;
    gap: 4px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust > span {
    grid-template-columns: 22px minmax(0, 1fr);
    column-gap: 4px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust i {
    font-size: 14px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust strong {
    font-size: 8px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust small {
    font-size: 7px;
  }
}

@media (max-width: 390px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__content,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--contact .tibor-details-group__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Distribucion final del formulario de datos. */
@media (min-width: 993px) {
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-heading {
    margin-bottom: 24px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-primary {
    width: 100%;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group__summary {
    min-height: 52px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    padding: 8px 18px 20px;
    gap: 16px 18px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--personal .form-row {
    grid-column: span 6;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--personal #billing_email_field {
    grid-column: span 8;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--personal #billing_phone_field {
    grid-column: span 4;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_country_field,
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_state_field,
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_postcode_field,
  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_city_field {
    grid-column: span 6;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_address_1_field {
    grid-column: span 8;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--address #billing_address_2_field {
    grid-column: span 4;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group--additional .form-row {
    grid-column: 1 / -1;
  }

  body.woocommerce-checkout form.checkout.is-enhanced.is-step-details .tibor-details-group__content #billing_company_field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 992px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--personal .tibor-details-group__content,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--address .tibor-details-group__content,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--contact .tibor-details-group__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--address #billing_address_1_field,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--address #billing_city_field,
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--personal #billing_company_field {
    grid-column: 1 / -1;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group--additional .form-row {
    grid-column: 1 / -1;
  }
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-group__summary:focus-visible {
  outline: 3px solid rgba(11, 57, 137, .22);
  outline-offset: -3px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option-copy {
  padding-left: 44px;
  position: relative;
  min-height: 40px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option-copy::before {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 57, 137, .08);
  color: var(--color-primary, #0b3989);
  align-items: center;
  justify-content: center;
  font-family: "Font Awesome 6 Free";
  font-size: 16px;
  font-weight: 900;
  content: "\f007";
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option:first-of-type .tibor-sender-option-copy::before {
  background: var(--color-primary, #0b3989);
  color: #fff;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  content: "TIBOR";
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-aside .tibor-sender-option:first-of-type .tibor-sender-option-copy {
  padding-right: 0;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust strong {
  font-size: 11px;
}

body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust small {
  font-size: 10px;
}

@media (max-width: 767px) {
  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust strong {
    font-size: 10px;
  }

  body.woocommerce-checkout form.checkout.is-enhanced .tibor-details-trust small {
    font-size: 9px;
  }
}

/* ── Avisos refinados (22-10-2026) ─────────────────────────────────────────────
   Mismo lenguaje que las alertas del personalizador: fondo blanco, franja de color a la
   izquierda, icono y sombra suave. Conservan su color (verde = hecho, azul = información,
   rojo = error) y su sitio; solo cambia el acabado. El bloque grande de «carrito vacío»
   tiene su propio diseño y queda fuera. */
.woocommerce-message,
.woocommerce-info:not(.cart-empty),
.woocommerce-error {
  position: relative;
  list-style: none;
  background: #fff;
  border: 1px solid #e3e8f0;
  border-left: 3px solid var(--aviso, #0b3989);
  border-radius: 12px;
  padding: 12px 16px 12px 44px;
  font-size: .86rem;
  line-height: 1.5;
  color: #1f2937;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
}
.woocommerce-message { --aviso: #16a34a; border-color: #d4eedc; border-left-color: #16a34a; }
.woocommerce-info:not(.cart-empty) { --aviso: #0b3989; border-color: #d6e0f0; border-left-color: #0b3989; }
.woocommerce-error { --aviso: #dc2626; border-color: #f6d0d0; border-left-color: #dc2626; background: #fffafa; }
.woocommerce-error li { margin: 0; padding: 0; list-style: none; }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-message strong, .woocommerce-info:not(.cart-empty) strong, .woocommerce-error strong { color: var(--aviso); }
.woocommerce-message::before,
.woocommerce-info:not(.cart-empty)::before,
.woocommerce-error::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 13px;
  width: 18px;
  height: 18px;
  background: var(--aviso);
  -webkit-mask: var(--aviso-ico) center / contain no-repeat;
  mask: var(--aviso-ico) center / contain no-repeat;
}
.woocommerce-message { --aviso-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='m8 12.5 2.8 2.8L16.5 9.5'/%3E%3C/svg%3E"); }
.woocommerce-info:not(.cart-empty) { --aviso-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E"); }
.woocommerce-error { --aviso-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.5 20h19z'/%3E%3Cpath d='M12 10v4.5M12 17.2v.01'/%3E%3C/svg%3E"); }
@media (max-width: 768px) {
  .woocommerce-notices-wrapper > .woocommerce-message,
  .woocommerce-notices-wrapper > .woocommerce-info:not(.cart-empty),
  .woocommerce-notices-wrapper > .woocommerce-error {
    margin: 12px 16px 16px;
  }
  .woocommerce-message, .woocommerce-info:not(.cart-empty), .woocommerce-error {
    font-size: .82rem;
    padding: 11px 14px 11px 40px;
  }
  .woocommerce-message::before, .woocommerce-info:not(.cart-empty)::before, .woocommerce-error::before { left: 13px; top: 12px; }
}
/* WooCommerce lleva el foco al aviso (para lectores de pantalla): sin el recuadro oscuro
   cuando el foco es automático; con teclado se sigue viendo. */
.woocommerce-message:focus:not(:focus-visible),
.woocommerce-info:focus:not(:focus-visible),
.woocommerce-error:focus:not(:focus-visible),
.woocommerce-notices-wrapper:focus:not(:focus-visible) { outline: none; }
.woocommerce-message:focus-visible,
.woocommerce-info:focus-visible,
.woocommerce-error:focus-visible { outline: 2px solid rgba(11, 57, 137, .22); outline-offset: 2px; }
@media (min-width: 769px) {
  .woocommerce-notices-wrapper > .woocommerce-message,
  .woocommerce-notices-wrapper > .woocommerce-info:not(.cart-empty),
  .woocommerce-notices-wrapper > .woocommerce-error {
    max-width: 1160px;
    margin: 16px auto 20px;
  }
}
