/*!
 * UNLOCK — Estilos de Carrito, Checkout y Pedido recibido (WooCommerce)
 * Línea gráfica: "The Technical Pitch" (Stitch). Radio 0, superficies oscuras,
 * verde cancha #9df197, Space Grotesk (titulares) + Inter (cuerpo).
 *
 * Todo está acotado a clases de <body> que añade el plugin, así que no afecta
 * a ninguna otra página del sitio:
 *   body.unlock-skin      → base común (tokens, fondo, formularios, botones)
 *   body.unlock-cart      → página del carrito
 *   body.unlock-checkout  → formulario de finalizar compra
 *   body.unlock-ty        → pedido recibido (gracias)
 *
 * Estados del pedido recibido (clase en <body>):
 *   .unlock-ty--success   → processing, completed
 *   .unlock-ty--warning   → pending, on-hold
 *   .unlock-ty--error     → failed
 *   .unlock-ty--cancelled → cancelled
 *   .unlock-ty--refunded  → refunded
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */
body.unlock-skin {
  --ty-lowest: #000000;
  --ty-surface: #0e0e0e;
  --ty-low: #131313;
  --ty-container: #191919;
  --ty-high: #1f1f1f;
  --ty-highest: #262626;
  --ty-bright: #2c2c2c;
  --ty-text: #ffffff;
  --ty-muted: #ababab;
  --ty-outline: #484848;
  --ty-ghost: rgba(72, 72, 72, 0.3);

  --ty-primary: #9df197;
  --ty-primary-container: #62b260;
  --ty-on-primary: #005c15;
  --ty-error: #ff7351;
  --ty-warning: #f2c94c;

  /* Acento del estado actual (success por defecto) */
  --ty-accent: var(--ty-primary);
  --ty-accent-rgb: 157, 241, 151;
  --ty-total: var(--ty-primary);

  --ty-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ty-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ty-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  background-color: var(--ty-surface);
  /* Textura "grip" del landing */
  background-image: radial-gradient(rgba(157, 241, 151, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ty-text);
  color-scheme: dark;
}

body.unlock-ty--warning   { --ty-accent: var(--ty-warning); --ty-accent-rgb: 242, 201, 76;  --ty-total: #ffffff; }
body.unlock-ty--error     { --ty-accent: var(--ty-error);   --ty-accent-rgb: 255, 115, 81;  --ty-total: #ffffff; }
body.unlock-ty--cancelled { --ty-accent: #ababab;           --ty-accent-rgb: 171, 171, 171; --ty-total: #ffffff; }
body.unlock-ty--refunded  { --ty-accent: #e2e2e2;           --ty-accent-rgb: 226, 226, 226; --ty-total: #ffffff; }

/* El título "Finalizar compra" de Elementor sobra: el hero ya hace de título. */
body.unlock-ty .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page) {
  display: none;
}

/* ==========================================================================
   2. Contenedor y grilla principal
   ========================================================================== */
body.unlock-ty .woocommerce-order {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 24px 0 48px;
  font-family: var(--ty-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ty-muted);
}

body.unlock-ty .woocommerce-order,
body.unlock-ty .woocommerce-order *,
body.unlock-ty .woocommerce-order *::before,
body.unlock-ty .woocommerce-order *::after {
  box-sizing: border-box;
}

body.unlock-ty .woocommerce-order > * {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

@media (min-width: 1024px) {
  body.unlock-ty .woocommerce-order > .woocommerce-order-details   { grid-column: span 7; }
  body.unlock-ty .woocommerce-order > .woocommerce-customer-details { grid-column: span 5; }
}

body.unlock-ty .woocommerce-order :where(a) {
  color: inherit;
  text-decoration: none;
}

body.unlock-ty .woocommerce-order :focus-visible {
  outline: 2px solid var(--ty-primary);
  outline-offset: 2px;
}

/* Avisos por defecto de WooCommerce: los reemplaza el hero (ver .unlock-hero) */
body.unlock-ty .woocommerce-order:has(.unlock-hero) .woocommerce-thankyou-order-received,
body.unlock-ty .woocommerce-order:has(.unlock-hero) .woocommerce-thankyou-order-failed,
body.unlock-ty .woocommerce-order:has(.unlock-hero) .woocommerce-thankyou-order-failed-actions {
  display: none;
}

/* Fallback si el hero no se renderiza */
body.unlock-ty .woocommerce-thankyou-order-received,
body.unlock-ty .woocommerce-thankyou-order-failed {
  background: var(--ty-low);
  border: 0;
  border-left: 4px solid var(--ty-accent);
  padding: 24px 32px;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
}

/* ==========================================================================
   3. Hero de estado
   ========================================================================== */
body.unlock-ty .unlock-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 5vw, 48px);
  background: var(--ty-low);
}

@media (min-width: 768px) {
  body.unlock-ty .unlock-hero { flex-direction: row; align-items: center; }
}

/* Línea técnica superior + resplandor ambiental */
body.unlock-ty .unlock-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 4px;
  background: linear-gradient(90deg, var(--ty-accent), transparent);
}

body.unlock-ty .unlock-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 320px;
  height: 320px;
  background: rgba(var(--ty-accent-rgb), 0.06);
  filter: blur(64px);
  pointer-events: none;
}

body.unlock-ty .unlock-hero__main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 48rem;
}

body.unlock-ty .unlock-hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: var(--ty-high);
  border: 1px solid var(--ty-ghost);
  color: var(--ty-accent);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.unlock-ty .unlock-hero__pill::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ty-accent);
}

body.unlock-ty--warning .unlock-hero__pill::before {
  animation: unlock-ty-pulse 1.6s ease-in-out infinite;
}

body.unlock-ty .unlock-hero__title {
  margin: 0;
  padding: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

body.unlock-ty .unlock-hero__accent {
  display: block;
  margin-top: 4px;
  color: var(--ty-accent);
  font-style: italic;
}

body.unlock-ty .unlock-hero__text {
  margin: 0;
  max-width: 42rem;
  color: var(--ty-muted);
  font-size: 15px;
  line-height: 1.7;
}

body.unlock-ty .unlock-hero__text strong {
  color: var(--ty-text);
  font-family: var(--ty-font-mono);
  font-weight: 500;
}

body.unlock-ty .unlock-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Tarjeta lateral (destino de envío) */
body.unlock-ty .unlock-hero__badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  padding: 24px;
  background: var(--ty-container);
  border-left: 2px solid var(--ty-accent);
}

body.unlock-ty .unlock-hero__badge-label {
  color: var(--ty-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.unlock-ty .unlock-hero__badge-value {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

body.unlock-ty .unlock-hero__badge-sub {
  color: var(--ty-accent);
  font-family: var(--ty-font-mono);
  font-size: 12px;
}

/* ==========================================================================
   4. Botones
   ========================================================================== */
body.unlock-skin .unlock-btn,
body.unlock-skin .woocommerce-order .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(45deg, var(--ty-primary), var(--ty-primary-container));
  color: var(--ty-on-primary);
  font-family: var(--ty-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.unlock-skin .unlock-btn:hover,
body.unlock-skin .woocommerce-order .button:hover {
  opacity: 0.92;
  color: var(--ty-on-primary);
}

body.unlock-ty .unlock-btn--ghost {
  background: transparent;
  color: var(--ty-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.unlock-ty .unlock-btn--ghost:hover {
  background: transparent;
  color: var(--ty-primary);
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--ty-primary);
}

/* ==========================================================================
   5. Resumen del pedido (número, fecha, total, método de pago)
   ========================================================================== */
body.unlock-ty .woocommerce-order ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Anula los clearfix de WooCommerce (se volverían celdas de la grilla) */
body.unlock-ty .woocommerce-order ul.woocommerce-order-overview::before,
body.unlock-ty .woocommerce-order ul.woocommerce-order-overview::after,
body.unlock-ty .woocommerce-order .col2-set::before,
body.unlock-ty .woocommerce-order .col2-set::after {
  display: none;
}

body.unlock-ty .woocommerce-order ul.woocommerce-order-overview li {
  position: relative;
  float: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 96px;
  margin: 0;
  padding: 20px 52px 20px 20px;
  background: var(--ty-high);
  border: 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-body);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  list-style: none;
}

body.unlock-ty .woocommerce-order ul.woocommerce-order-overview li strong {
  display: block;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  word-break: break-word;
}

/* Icono técnico arriba a la derecha */
body.unlock-ty .woocommerce-order ul.woocommerce-order-overview li::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 20px;
  height: 20px;
  background: var(--ty-accent);
  -webkit-mask: var(--ty-icon, none) center / contain no-repeat;
  mask: var(--ty-icon, none) center / contain no-repeat;
}

body.unlock-ty .woocommerce-order-overview__order          { --ty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M9 4 7 20M17 4l-2 16M4 9h16M3 15h16'/%3E%3C/svg%3E"); }
body.unlock-ty .woocommerce-order-overview__date           { --ty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Crect x='3' y='5' width='18' height='16'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
body.unlock-ty .woocommerce-order-overview__total          { --ty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Crect x='2' y='6' width='20' height='12'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
body.unlock-ty .woocommerce-order-overview__payment-method { --ty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Crect x='2' y='5' width='20' height='14'/%3E%3Cpath d='M2 10h20'/%3E%3C/svg%3E"); }
body.unlock-ty .woocommerce-order-overview__email          { --ty-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'%3E%3Crect x='3' y='5' width='18' height='14'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }

body.unlock-ty .woocommerce-order-overview__total strong {
  color: var(--ty-total);
  font-weight: 700;
}

/* ==========================================================================
   6. Instrucciones de la pasarela (contra reembolso, transferencia…)
   ========================================================================== */
body.unlock-ty .woocommerce-order > p:not([class]) {
  padding: 16px 24px;
  background: var(--ty-container);
  border-left: 4px solid var(--ty-accent);
  color: var(--ty-text);
  font-size: 14px;
}

body.unlock-ty .woocommerce-order .woocommerce-bacs-bank-details {
  padding: 24px 32px;
  background: var(--ty-low);
}

body.unlock-ty .woocommerce-order .wc-bacs-bank-details-heading,
body.unlock-ty .woocommerce-order .wc-bacs-bank-details-account-name {
  margin: 0 0 16px;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-ty .woocommerce-order ul.wc-bacs-bank-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.unlock-ty .woocommerce-order ul.wc-bacs-bank-details::before,
body.unlock-ty .woocommerce-order ul.wc-bacs-bank-details::after { display: none; }

body.unlock-ty .woocommerce-order ul.wc-bacs-bank-details li {
  float: none;
  margin: 0;
  padding: 14px 16px;
  background: var(--ty-high);
  border: 0;
  color: var(--ty-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.unlock-ty .woocommerce-order ul.wc-bacs-bank-details li strong {
  display: block;
  margin-top: 4px;
  color: var(--ty-text);
  font-family: var(--ty-font-mono);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

/* ==========================================================================
   7. Detalles del pedido
   ========================================================================== */
body.unlock-ty .woocommerce-order-details,
body.unlock-ty .woocommerce-customer-details {
  padding: clamp(20px, 3vw, 32px);
  background: var(--ty-low);
}

body.unlock-ty .woocommerce-order-details__title,
body.unlock-ty .woocommerce-column__title {
  margin: 0 0 24px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ty-ghost);
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-ty .woocommerce-order table.woocommerce-table--order-details {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 12px;
  background: transparent;
}

/* Encabezado oculto visualmente, disponible para lectores de pantalla */
body.unlock-ty .woocommerce-order table.woocommerce-table--order-details thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.unlock-ty .woocommerce-order table.woocommerce-table--order-details th,
body.unlock-ty .woocommerce-order table.woocommerce-table--order-details td {
  border: 0;
  background: transparent;
  vertical-align: middle;
}

/* Productos */
body.unlock-ty .woocommerce-order .woocommerce-table--order-details .woocommerce-table__line-item td {
  padding: 16px;
  background: var(--ty-high);
}

body.unlock-ty .woocommerce-table__product-name {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

body.unlock-ty .woocommerce-table__product-name a {
  color: var(--ty-text);
  transition: color 0.2s ease;
}

body.unlock-ty .woocommerce-table__product-name a:hover {
  color: var(--ty-primary);
}

body.unlock-ty .woocommerce-table__product-name .product-quantity {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--ty-highest);
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

/* Variaciones / metadatos del producto como "chips" técnicos */
body.unlock-ty .woocommerce-table__product-name ul.wc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.unlock-ty .woocommerce-table__product-name ul.wc-item-meta li {
  margin: 0;
  padding: 2px 8px;
  background: var(--ty-highest);
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

body.unlock-ty .woocommerce-table__product-name ul.wc-item-meta li p { margin: 0; display: inline; }
body.unlock-ty .woocommerce-table__product-name ul.wc-item-meta .wc-item-meta-label { font-weight: 400; }

body.unlock-ty .woocommerce-table__product-total {
  width: 1%;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

/* Totales */
body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot th,
body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot td {
  padding: 0 16px;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot th {
  text-align: left;
}

body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot td {
  color: var(--ty-text);
  text-align: right;
}

/* Línea tenue que separa productos de totales */
body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot tr:first-child th,
body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot tr:first-child td {
  padding-top: 20px;
  border-top: 1px solid var(--ty-ghost);
}

body.unlock-ty .woocommerce-order .woocommerce-table--order-details small.shipped_via {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: rgba(var(--ty-accent-rgb), 0.15);
  color: var(--ty-accent);
  font-family: var(--ty-font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Fila "Total": la última fila que contiene un importe (el método de pago y la
   nota del cliente no tienen importe). */
body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot tr:has(.woocommerce-Price-amount):not(:has(~ tr .woocommerce-Price-amount)) th {
  padding-top: 8px;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot tr:has(.woocommerce-Price-amount):not(:has(~ tr .woocommerce-Price-amount)) td {
  padding-top: 8px;
  color: var(--ty-total);
  font-family: var(--ty-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

/* Reembolsos: importe original tachado, neto resaltado */
body.unlock-ty .woocommerce-order .woocommerce-table--order-details del {
  color: var(--ty-muted);
  font-size: 0.7em;
  font-weight: 400;
  text-decoration-thickness: 1px;
}

body.unlock-ty .woocommerce-order .woocommerce-table--order-details ins {
  text-decoration: none;
}

/* ==========================================================================
   8. Direcciones
   ========================================================================== */
body.unlock-ty .woocommerce-order .woocommerce-columns--addresses {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

body.unlock-ty .woocommerce-order .woocommerce-columns--addresses .woocommerce-column {
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px;
  background: var(--ty-high);
}

body.unlock-ty .woocommerce-order .woocommerce-column--shipping-address {
  border-left: 2px solid var(--ty-primary);
}

body.unlock-ty .woocommerce-order .woocommerce-column--billing-address {
  border-left: 2px solid transparent;
}

body.unlock-ty .woocommerce-order .woocommerce-columns--addresses .woocommerce-column__title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

body.unlock-ty .woocommerce-order .woocommerce-column--billing-address .woocommerce-column__title {
  color: var(--ty-muted);
}

body.unlock-ty .woocommerce-order .woocommerce-customer-details address {
  height: auto !important; /* WooCommerce/Elementor igualan alturas con JS */
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ty-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
}

/* Primera línea (nombre) como en el diseño */
body.unlock-ty .woocommerce-order .woocommerce-customer-details address::first-line {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 16px;
  font-weight: 700;
}

body.unlock-ty .woocommerce-order .woocommerce-customer-details--phone,
body.unlock-ty .woocommerce-order .woocommerce-customer-details--email {
  margin: 8px 0 0;
  color: var(--ty-text);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  word-break: break-all;
}

/* ==========================================================================
   9. Barra de continuación (Seguir explorando)
   ========================================================================== */
body.unlock-ty .unlock-cta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px;
  background: var(--ty-low);
  border-top: 2px solid var(--ty-primary);
}

@media (min-width: 768px) {
  body.unlock-ty .unlock-cta { flex-direction: row; align-items: center; }
}

body.unlock-ty .unlock-cta > div:first-child {
  flex: 1 1 320px;
  min-width: 0;
}

body.unlock-ty .unlock-cta__title {
  margin: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-ty .unlock-cta__text {
  margin: 4px 0 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 12px;
}

body.unlock-ty .unlock-cta__actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   10. Móvil
   ========================================================================== */
@media (max-width: 767px) {
  body.unlock-ty .woocommerce-order { gap: 24px; padding-top: 8px; }
  body.unlock-ty .unlock-hero__badge { width: 100%; }
  body.unlock-ty .unlock-hero__actions,
  body.unlock-ty .unlock-cta__actions { width: 100%; }
  body.unlock-ty .unlock-btn { flex: 1 1 100%; }
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot td { font-size: 13px; }
  body.unlock-ty .woocommerce-order table.woocommerce-table--order-details { table-layout: fixed; }
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details .woocommerce-table__line-item td { padding: 12px; }
  body.unlock-ty .woocommerce-table__product-name { font-size: 13px; overflow-wrap: anywhere; }
  body.unlock-ty .woocommerce-table__product-total { width: 104px; font-size: 15px; }
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot th,
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot td { padding-left: 12px; padding-right: 12px; }
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot td { overflow-wrap: anywhere; }
  body.unlock-ty .woocommerce-order .woocommerce-table--order-details tfoot tr:has(.woocommerce-Price-amount):not(:has(~ tr .woocommerce-Price-amount)) td { font-size: 22px; }
}

/* ==========================================================================
   11. Animación y accesibilidad
   ========================================================================== */
@keyframes unlock-ty-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  body.unlock-ty--warning .unlock-hero__pill::before { animation: none; }
  body.unlock-ty .unlock-btn,
  body.unlock-ty .woocommerce-table__product-name a { transition: none; }
}

/* ==========================================================================
   12. Base común carrito + checkout
   ========================================================================== */

/* 12.0 Modelo de caja: evita desbordes con width:100% + padding */
body.unlock-skin .woocommerce,
body.unlock-skin .woocommerce *,
body.unlock-skin .woocommerce *::before,
body.unlock-skin .woocommerce *::after {
  box-sizing: border-box;
}

body.unlock-skin wc-order-attribution-inputs { display: none; }

/* 12.1 Encabezado de página (el título de Elementor se convierte en titular) */
body.unlock-cart .elementor-widget-heading:has(+ .e-con .elementor-widget-woocommerce-cart),
body.unlock-checkout .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page) {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  margin-bottom: 8px;
}

body.unlock-cart .elementor-widget-heading:has(+ .e-con .elementor-widget-woocommerce-cart)::before,
body.unlock-checkout .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 128px;
  height: 4px;
  background: linear-gradient(90deg, var(--ty-primary), transparent);
}

/* Indicador de paso (texto estático; edítalo aquí si cambias el flujo) */
body.unlock-cart .elementor-widget-heading:has(+ .e-con .elementor-widget-woocommerce-cart)::after,
body.unlock-checkout .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page)::after {
  order: -1;
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.unlock-cart .elementor-widget-heading:has(+ .e-con .elementor-widget-woocommerce-cart)::after {
  content: "Paso 01 / 03 — Carrito";
}

body.unlock-checkout .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page)::after {
  content: "Paso 02 / 03 — Datos y pago";
}

body.unlock-cart .elementor-widget-heading:has(+ .e-con .elementor-widget-woocommerce-cart) .elementor-heading-title,
body.unlock-checkout .elementor-widget-heading:has(+ .elementor-widget-woocommerce-checkout-page) .elementor-heading-title {
  margin: 0;
  color: var(--ty-text) !important;
  font-family: var(--ty-font-display) !important;
  font-size: clamp(32px, 5vw, 56px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  text-transform: uppercase;
}

/* 12.2 Avisos (WooCommerce) */
body.unlock-skin .woocommerce-error,
body.unlock-skin .woocommerce-message,
body.unlock-skin .woocommerce-info {
  display: block;
  margin: 0 0 24px;
  padding: 16px 24px !important;
  background: var(--ty-container);
  border: 0;
  border-left: 4px solid var(--ty-primary);
  border-radius: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-body);
  font-size: 14px;
  line-height: 1.6;
  list-style: none;
}

body.unlock-skin .woocommerce-error   { border-left-color: var(--ty-error); }
body.unlock-skin .woocommerce-info    { border-left-color: #e2e2e2; }

body.unlock-skin .woocommerce-error::before,
body.unlock-skin .woocommerce-message::before,
body.unlock-skin .woocommerce-info::before {
  display: none;
}

body.unlock-skin .woocommerce-error li {
  margin: 4px 0;
  padding: 0;
  list-style: none;
}

body.unlock-skin .woocommerce-error a,
body.unlock-skin .woocommerce-message a:not(.button),
body.unlock-skin .woocommerce-info a:not(.button) {
  color: var(--ty-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.unlock-skin .woocommerce-message .button {
  float: right;
  margin: -4px 0 -4px 16px;
}

/* 12.3 Títulos de sección */
body.unlock-skin :is(.woocommerce-billing-fields, .woocommerce-additional-fields, .cart_totals) > :is(h2, h3):not(#ship-to-different-address),
body.unlock-skin #order_review_heading {
  margin: 0 0 24px;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--ty-ghost);
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-skin .woocommerce h3:empty { display: none; }

/* 12.4 Tarjetas contenedoras */
body.unlock-skin :is(
  .woocommerce-billing-fields,
  .woocommerce-shipping-fields,
  .woocommerce-additional-fields,
  .e-checkout__order_review,
  .e-coupon-box,
  .e-cart-section
) {
  padding: clamp(20px, 3vw, 32px) !important;
  background: var(--ty-low) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.unlock-skin #payment {
  padding: clamp(20px, 3vw, 32px) !important;
  background: var(--ty-low) !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* 12.5 Formularios */
body.unlock-skin .woocommerce :is(
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper
) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}

body.unlock-skin .woocommerce form .form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  float: none !important;
  width: auto !important;
  margin: 0;
  padding: 0;
  grid-column: 1 / -1;
}

body.unlock-skin .woocommerce form .form-row::before,
body.unlock-skin .woocommerce form .form-row::after { display: none; }

body.unlock-skin .woocommerce form .form-row-first,
body.unlock-skin .woocommerce form .form-row-last { grid-column: span 1; }

body.unlock-skin .woocommerce .clear { display: none; }

@media (max-width: 600px) {
  body.unlock-skin .woocommerce form .form-row-first,
  body.unlock-skin .woocommerce form .form-row-last { grid-column: 1 / -1; }
}

body.unlock-skin .woocommerce form .form-row label:not(.checkbox):not(.woocommerce-form__label-for-checkbox) {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.unlock-skin .woocommerce form .form-row label.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.unlock-skin .woocommerce form .form-row .required {
  color: var(--ty-primary);
  text-decoration: none;
  border: 0;
}

body.unlock-skin .woocommerce form .form-row .optional {
  color: var(--ty-outline);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

body.unlock-skin .woocommerce .woocommerce-input-wrapper {
  display: block;
  width: 100%;
}

/* Campos: relleno oscuro, línea inferior que se vuelve verde al enfocar */
body.unlock-skin .woocommerce :is(
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input[type="search"], input.input-text, textarea, select
) {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  background-color: var(--ty-highest) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: 0;
  color: var(--ty-text) !important;
  font-family: var(--ty-font-body);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

body.unlock-skin .woocommerce textarea { min-height: 96px; resize: vertical; }

body.unlock-skin .woocommerce :is(input, textarea)::placeholder {
  color: #757575;
  opacity: 1;
}

body.unlock-skin .woocommerce :is(input, textarea, select):hover {
  border-bottom-color: var(--ty-outline) !important;
}

body.unlock-skin .woocommerce :is(input, textarea, select):focus {
  border-bottom-color: var(--ty-primary) !important;
  background-color: var(--ty-bright) !important;
}

body.unlock-skin .woocommerce input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--ty-highest) inset !important;
  -webkit-text-fill-color: var(--ty-text) !important;
  caret-color: var(--ty-text);
}

/* <select> nativo */
body.unlock-skin .woocommerce select {
  padding-right: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239df197' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  font-weight: 400 !important;
  cursor: pointer;
}

body.unlock-skin .woocommerce select option { background: var(--ty-high); color: var(--ty-text); }

/* Casillas y radios cuadrados */
body.unlock-skin .woocommerce :is(input[type="checkbox"], input[type="radio"]) {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--ty-highest) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  cursor: pointer;
  vertical-align: middle;
}

body.unlock-skin .woocommerce :is(input[type="checkbox"], input[type="radio"]):checked {
  background: var(--ty-primary) !important;
  box-shadow: none !important;
}

body.unlock-skin .woocommerce input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--ty-on-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m5 12.5 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m5 12.5 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.unlock-skin .woocommerce input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--ty-on-primary);
}

body.unlock-skin .woocommerce :is(input[type="checkbox"], input[type="radio"]):focus-visible {
  outline: 2px solid var(--ty-primary);
  outline-offset: 2px;
}

body.unlock-skin .woocommerce .woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

/* Validación */
body.unlock-skin .woocommerce form .form-row.woocommerce-invalid label { color: var(--ty-error); }

body.unlock-skin .woocommerce form .form-row.woocommerce-invalid :is(input.input-text, textarea, select),
body.unlock-skin .woocommerce form .form-row.woocommerce-invalid .select2-selection {
  border-bottom-color: var(--ty-error) !important;
}

body.unlock-skin .woocommerce form .form-row.woocommerce-validated :is(input.input-text, textarea, select),
body.unlock-skin .woocommerce form .form-row.woocommerce-validated .select2-selection {
  border-bottom-color: var(--ty-primary-container) !important;
}

body.unlock-skin .woocommerce .checkout-inline-error-message {
  margin: 4px 0 0;
  color: var(--ty-error);
  font-family: var(--ty-font-mono);
  font-size: 12px;
}

/* 12.6 Select2 (departamento y ciudad / Colciudades) */
body.unlock-skin .woocommerce .select2-container {
  display: block;
  width: 100% !important;
}

body.unlock-skin .select2-container--default .select2-selection--single {
  display: flex;
  align-items: center;
  height: 48px;
  background-color: var(--ty-highest) !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  outline: 0;
  transition: border-color 0.2s ease;
}

body.unlock-skin .select2-container--default .select2-selection--single:hover {
  border-bottom-color: var(--ty-outline) !important;
}

body.unlock-skin .select2-container--default.select2-container--open .select2-selection--single,
body.unlock-skin .select2-container--default.select2-container--focus .select2-selection--single,
body.unlock-skin .select2-container--default .select2-selection--single:focus {
  border-bottom-color: var(--ty-primary) !important;
}

body.unlock-skin .select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  padding: 0 44px 0 16px;
  color: var(--ty-text) !important;
  font-family: var(--ty-font-body);
  font-size: 14px;
  line-height: 48px;
}

body.unlock-skin .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #757575 !important;
}

body.unlock-skin .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
}

body.unlock-skin .select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 0 !important;
  background: var(--ty-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.2s ease;
}

body.unlock-skin .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg);
}

/* El desplegable se inserta directamente en <body> */
body.unlock-skin .select2-dropdown {
  background: var(--ty-high);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  color: var(--ty-text);
}

body.unlock-skin .select2-container--default .select2-dropdown--below { border-top: 2px solid var(--ty-primary) !important; }
body.unlock-skin .select2-container--default .select2-dropdown--above { border-bottom: 2px solid var(--ty-primary) !important; }

body.unlock-skin .select2-container--default .select2-search--dropdown { padding: 8px; background: var(--ty-high); }

body.unlock-skin .select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 40px;
  padding: 8px 12px;
  background: var(--ty-highest);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  outline: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-body);
  font-size: 14px;
}

body.unlock-skin .select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-bottom-color: var(--ty-primary);
}

body.unlock-skin .select2-container--default .select2-results__option {
  padding: 10px 16px;
  background: transparent;
  color: #d4d4d4;
  font-family: var(--ty-font-body);
  font-size: 14px;
}

body.unlock-skin .select2-container--default .select2-results__option[aria-selected="true"],
body.unlock-skin .select2-container--default .select2-results__option--selected {
  background: var(--ty-highest);
  color: var(--ty-text);
}

body.unlock-skin .select2-container--default .select2-results__option--highlighted[aria-selected],
body.unlock-skin .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--ty-bright);
  color: var(--ty-primary);
}

body.unlock-skin .select2-container--default .select2-results__option[role="group"] { padding: 0; }

/* 12.7 Botones de WooCommerce (primario degradado; los "ghost" se listan abajo) */
body.unlock-skin .woocommerce :where(a.button, button.button, input.button, a.button.alt, button.button.alt, button[name="woocommerce_checkout_place_order"]) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(45deg, var(--ty-primary), var(--ty-primary-container)) !important;
  color: var(--ty-on-primary) !important;
  font-family: var(--ty-font-display);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

body.unlock-skin .woocommerce :where(a.button, button.button, input.button, button[name="woocommerce_checkout_place_order"]):hover {
  opacity: 0.92;
  color: var(--ty-on-primary) !important;
}

body.unlock-skin .woocommerce :is(button, input[type="submit"])[disabled],
body.unlock-skin .woocommerce :is(button, input[type="submit"]):disabled,
body.unlock-skin .woocommerce .button.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Botones secundarios ("ghost") */
body.unlock-skin .woocommerce :is(
  button[name="update_cart"],
  .e-apply-coupon,
  .shipping-calculator-form .button,
  .woocommerce-message .button
) {
  padding: 14px 24px;
  background: transparent !important;
  color: var(--ty-text) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.unlock-skin .woocommerce :is(
  button[name="update_cart"],
  .e-apply-coupon,
  .shipping-calculator-form .button,
  .woocommerce-message .button
):hover:not(:disabled) {
  background: transparent !important;
  color: var(--ty-primary) !important;
  opacity: 1;
  box-shadow: inset 0 0 0 1px var(--ty-primary);
}

/* El aviso "Ver carrito" puede quedar fuera del contenedor .woocommerce */
body.unlock-skin .woocommerce-message a.button {
  display: inline-flex;
  padding: 14px 24px;
  background: transparent !important;
  color: var(--ty-text) !important;
  font-family: var(--ty-font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

body.unlock-skin .woocommerce-message a.button:hover {
  color: var(--ty-primary) !important;
  box-shadow: inset 0 0 0 1px var(--ty-primary);
}

/* Botón de pago principal (carrito y checkout) */
body.unlock-skin .woocommerce :is(a.checkout-button, button[name="woocommerce_checkout_place_order"]) {
  display: flex;
  float: none !important;
  width: 100%;
  margin: 0;
  padding: 20px 32px;
  font-size: 13px;
  text-align: center;
}

body.unlock-skin .woocommerce a.checkout-button::after {
  content: "→";
  font-size: 16px;
}

/* ==========================================================================
   13. Carrito
   ========================================================================== */
body.unlock-cart .e-cart__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  body.unlock-cart .e-cart__container { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px; }
}

body.unlock-cart .e-cart__column {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0;
}

body.unlock-cart .woocommerce-cart-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.unlock-cart .e-clear { display: none; }
body.unlock-cart .e-shop-table { overflow-x: auto; }

/* 13.1 Tabla de productos (desktop) */
body.unlock-cart .woocommerce table.shop_table.cart {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 12px;
}

body.unlock-cart .woocommerce table.cart thead th {
  padding: 0 12px 4px;
  background: transparent;
  border: 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

body.unlock-cart .woocommerce table.cart thead th.product-subtotal { text-align: right; }

body.unlock-cart .woocommerce table.cart tbody tr.cart_item td {
  padding: 14px 12px;
  background: var(--ty-high);
  border: 0;
  vertical-align: middle;
}

body.unlock-cart .woocommerce table.cart td.product-remove { width: 1%; padding-right: 0; padding-left: 14px; }
body.unlock-cart .woocommerce table.cart td.product-thumbnail { width: 1%; }

body.unlock-cart .woocommerce table.cart td.product-thumbnail img {
  display: block;
  width: 72px;
  height: 72px;
  max-width: none;
  object-fit: cover;
  background: var(--ty-lowest);
}

body.unlock-cart .woocommerce table.cart a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  background: var(--ty-highest);
  border-radius: 0;
  color: var(--ty-muted) !important;
  font-family: var(--ty-font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.unlock-cart .woocommerce table.cart a.remove:hover {
  background: var(--ty-error);
  color: #450900 !important;
}

body.unlock-cart .woocommerce table.cart td.product-name {
  font-family: var(--ty-font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

body.unlock-cart .woocommerce table.cart td.product-name a { color: var(--ty-text); text-decoration: none; transition: color 0.2s ease; }
body.unlock-cart .woocommerce table.cart td.product-name a:hover { color: var(--ty-primary); }

body.unlock-cart .woocommerce table.cart td.product-name .variation,
body.unlock-cart .woocommerce table.cart td.product-name dl {
  margin: 8px 0 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
}

body.unlock-cart .woocommerce table.cart td.product-price {
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 14px;
  white-space: nowrap;
}

body.unlock-cart .woocommerce table.cart td.product-subtotal {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

body.unlock-cart .woocommerce .quantity { display: inline-flex; }

body.unlock-cart .woocommerce .quantity input.qty {
  width: 64px;
  min-height: 44px;
  padding: 8px;
  font-family: var(--ty-font-mono);
  text-align: center;
}

/* Fila de acciones */
body.unlock-cart .woocommerce table.cart td.actions {
  padding: 4px 0 0;
  background: transparent !important;
  border: 0;
  text-align: right;
}

/* Cupón */
body.unlock-cart .woocommerce .coupon.e-cart-section .form-row.coupon-col {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  margin: 0;
}

body.unlock-cart .coupon.e-cart-section .coupon-col-start { flex: 1 1 220px; width: auto; padding: 0; }
body.unlock-cart .coupon.e-cart-section .coupon-col-end   { flex: 0 0 auto; width: auto; padding: 0; }
body.unlock-cart .coupon.e-cart-section .coupon-col-start input#coupon_code { width: 100%; }

/* 13.2 Totales (columna derecha) */
body.unlock-cart .e-cart-totals .cart_totals { float: none; width: 100%; }

body.unlock-cart .woocommerce .cart_totals table.shop_table {
  display: block;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0 !important;
}

body.unlock-cart .woocommerce .cart_totals table.shop_table tbody { display: block; }

body.unlock-cart .woocommerce .cart_totals table.shop_table tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border: 0;
}

body.unlock-cart .woocommerce .cart_totals table.shop_table :is(th, td) {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--ty-font-mono);
  font-size: 13px;
  line-height: 1.5;
}

body.unlock-cart .woocommerce .cart_totals table.shop_table th {
  flex: 0 0 auto;
  color: var(--ty-muted);
  font-weight: 400;
  text-align: left;
}

body.unlock-cart .woocommerce .cart_totals table.shop_table td {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ty-text);
  text-align: right !important;
}

body.unlock-cart .woocommerce .cart_totals table.shop_table td::before { display: none; }

body.unlock-cart .woocommerce .cart_totals tr.woocommerce-shipping-totals {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body.unlock-cart .woocommerce .cart_totals tr.woocommerce-shipping-totals td { text-align: left !important; }

body.unlock-cart .woocommerce .cart_totals tr.order-total {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--ty-ghost);
}

body.unlock-cart .woocommerce .cart_totals tr.order-total th {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-cart .woocommerce .cart_totals tr.order-total td strong {
  color: var(--ty-primary);
  font-family: var(--ty-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

body.unlock-cart .wc-proceed-to-checkout { margin: 0; padding: 24px 0 0; }

/* 13.3 Calculadora de envío */
body.unlock-cart a.shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

body.unlock-cart .woocommerce a.shipping-calculator-button::after { content: "+" !important; position: static; margin: 0 0 0 8px; font-family: var(--ty-font-mono) !important; font-size: 16px; line-height: 1; }
body.unlock-cart .woocommerce a.shipping-calculator-button[aria-expanded="true"]::after { content: "−" !important; }
body.unlock-cart a.shipping-calculator-button:hover { color: var(--ty-text); }

body.unlock-cart section.shipping-calculator-form {
  margin-top: 16px;
  padding: 20px;
  background: var(--ty-container);
  text-align: left;
}

body.unlock-cart section.shipping-calculator-form p { margin: 0 0 16px; }
body.unlock-cart section.shipping-calculator-form p:last-child { margin-bottom: 0; }
body.unlock-cart section.shipping-calculator-form .form-row { margin-bottom: 16px; }

/* 13.4 Carrito vacío */
body.unlock-cart .cart-empty {
  margin: 0 0 24px;
  padding: 32px !important;
  font-family: var(--ty-font-display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

body.unlock-cart .return-to-shop { margin: 0; }

/* ==========================================================================
   14. Métodos de envío (carrito y checkout)
   ========================================================================== */
body.unlock-skin ul.woocommerce-shipping-methods {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.unlock-skin ul.woocommerce-shipping-methods li {
  position: relative;
  margin: 0;
  padding: 12px 16px;
  background: var(--ty-high);
  border-left: 2px solid var(--ty-primary);
  list-style: none;
  text-align: left;
}

body.unlock-skin ul.woocommerce-shipping-methods li label {
  display: block;
  margin: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

body.unlock-skin ul.woocommerce-shipping-methods li label .amount {
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  white-space: nowrap;
}

/* Con varios métodos aparecen radios */
body.unlock-skin ul.woocommerce-shipping-methods li:has(input[type="radio"]) { padding-left: 48px; }
body.unlock-skin ul.woocommerce-shipping-methods li:has(input[type="radio"]:not(:checked)) { border-left-color: transparent; }
body.unlock-skin ul.woocommerce-shipping-methods li input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 16px;
  margin-top: -10px;
}

body.unlock-skin p.woocommerce-shipping-destination {
  margin: 12px 0 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  line-height: 1.5;
}

body.unlock-skin p.woocommerce-shipping-destination strong { color: var(--ty-text); font-weight: 500; }

/* ==========================================================================
   15. Checkout
   ========================================================================== */
body.unlock-checkout .e-checkout__container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

@media (min-width: 1024px) {
  body.unlock-checkout .e-checkout__container { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
}

body.unlock-checkout .e-checkout__column {
  width: auto !important;
  max-width: none !important;
  min-width: 0;
  margin: 0;
}

body.unlock-checkout .e-checkout__column-end {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Columna de datos del cliente: tarjetas apiladas */
body.unlock-checkout #customer_details,
body.unlock-checkout #customer_details > .col-1,
body.unlock-checkout #customer_details > .col-2 {
  display: grid;
  gap: 24px;
  float: none;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Casilla "¿Enviar a otra dirección?" como interruptor */
body.unlock-checkout #ship-to-different-address {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 16px;
}

body.unlock-checkout #ship-to-different-address label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  cursor: pointer;
}

body.unlock-checkout .woocommerce-shipping-fields .shipping_address {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ty-ghost);
}

/* Resumen "Tu pedido" (tabla en bloques para que el envío respire) */
body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table {
  display: block;
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0 !important;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table :is(tbody, tfoot) { display: block; }

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tr {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border: 0;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table :is(th, td) {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--ty-font-mono);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table td::before { display: none; }

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tbody tr.cart_item {
  align-items: center;
  margin-bottom: 12px;
  padding: 14px 16px;
  background: var(--ty-high);
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table td.product-name {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table .product-quantity {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: var(--ty-highest);
  color: var(--ty-primary);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table td.product-total {
  flex: 0 0 auto;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr { padding: 10px 16px; }
body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot th { color: var(--ty-muted); text-align: left; }
body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot td { color: var(--ty-text); text-align: right; }

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td { text-align: left; }

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.order-total {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--ty-ghost);
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.order-total th {
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body.unlock-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot tr.order-total td strong {
  color: var(--ty-primary);
  font-family: var(--ty-font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

/* Cupón */
body.unlock-checkout .e-coupon-box { padding: 20px clamp(20px, 3vw, 32px) !important; }

body.unlock-checkout .e-coupon-box .e-woocommerce-coupon-nudge {
  margin: 0;
  color: var(--ty-muted);
  font-family: var(--ty-font-mono);
  font-size: 12px;
  line-height: 1.6;
}

body.unlock-checkout .e-coupon-box .e-show-coupon-form {
  color: var(--ty-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.unlock-checkout .e-coupon-box .e-coupon-anchor-description {
  display: block;
  margin: 16px 0 12px;
  color: var(--ty-muted);
  font-size: 12px;
}

body.unlock-checkout .e-coupon-box .coupon-container-grid { display: flex; flex-wrap: wrap; gap: 12px; }
body.unlock-checkout .e-coupon-box .coupon-col-1 { flex: 1 1 200px; width: auto; padding: 0; }
body.unlock-checkout .e-coupon-box .coupon-col-2 { flex: 0 0 auto; width: auto; padding: 0; }

/* Turnstile + pago */
body.unlock-checkout .e-checkout__order_review-2 { display: flex; flex-direction: column; gap: 16px; }
body.unlock-checkout .cf-turnstile { margin: 0; }
body.unlock-checkout br.cf-turnstile-br { display: none; }

body.unlock-checkout #payment ul.wc_payment_methods {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  list-style: none;
}

body.unlock-checkout #payment li.wc_payment_method {
  margin: 0;
  padding: 0;
  background: var(--ty-high);
  list-style: none;
}

body.unlock-checkout #payment li.wc_payment_method > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px;
  color: var(--ty-text);
  font-family: var(--ty-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  cursor: pointer;
}

/* Logos de pasarelas sobre chip claro: se ven bien sea cual sea el logo */
body.unlock-checkout #payment li.wc_payment_method > label img {
  float: none;
  width: auto;
  max-width: 120px;
  height: 28px;
  margin: 0 !important;
  padding: 4px 8px;
  background: #ffffff;
  object-fit: contain;
}

body.unlock-checkout #payment div.payment_box {
  position: static;
  width: auto;
  margin: 0;
  padding: 0 16px 16px;
  background: transparent !important;
  border-radius: 0;
  color: var(--ty-muted) !important;
  font-family: var(--ty-font-body);
  font-size: 13px;
  line-height: 1.6;
}

body.unlock-checkout #payment div.payment_box::before { display: none !important; }
body.unlock-checkout #payment div.payment_box p { margin: 0; }

body.unlock-checkout #payment div.form-row.place-order {
  margin: 0;
  padding: 0;
  background: transparent;
}

body.unlock-checkout .woocommerce-terms-and-conditions-wrapper {
  margin: 0;
  color: var(--ty-muted);
  font-size: 12px;
  line-height: 1.6;
}

body.unlock-checkout .woocommerce-terms-and-conditions-wrapper:has(p:not(:empty), label) { margin-bottom: 16px; }
body.unlock-checkout .woocommerce-terms-and-conditions-wrapper p { margin: 0 0 12px; }

body.unlock-checkout .woocommerce-terms-and-conditions-wrapper a,
body.unlock-checkout .woocommerce-privacy-policy-text a {
  color: var(--ty-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Overlay de carga de WooCommerce al actualizar totales */
body.unlock-skin .woocommerce .blockUI.blockOverlay { background: rgba(14, 14, 14, 0.7) !important; opacity: 1 !important; }
body.unlock-skin .woocommerce .blockUI.blockOverlay::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  background: var(--ty-primary);
  animation: unlock-ty-pulse 1s ease-in-out infinite;
}

/* ==========================================================================
   16. Carrito en móvil: cada producto se vuelve una tarjeta
   ========================================================================== */
@media (max-width: 768px) {
  body.unlock-cart .woocommerce table.shop_table.cart { display: block; border-spacing: 0; }
  body.unlock-cart .woocommerce table.cart thead { display: none; }
  body.unlock-cart .woocommerce table.cart tbody { display: block; }

  body.unlock-cart .woocommerce table.cart tbody tr.cart_item {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name  remove"
      "thumb price price"
      "thumb qty   subtotal";
    gap: 6px 16px;
    align-items: center;
    margin: 0 0 12px;
    padding: 16px;
    background: var(--ty-high);
  }

  body.unlock-cart .woocommerce table.cart tbody tr.cart_item td {
    display: block;
    padding: 0;
    background: transparent;
    text-align: left !important;
  }

  body.unlock-cart .woocommerce table.cart tbody tr.cart_item td::before {
    content: attr(data-title);
    float: none;
    display: block;
    margin: 0 0 2px;
    color: var(--ty-muted);
    font-family: var(--ty-font-mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  body.unlock-cart .woocommerce table.cart tbody tr.cart_item :is(td.product-name, td.product-quantity, td.product-remove, td.product-thumbnail)::before { display: none; }

  body.unlock-cart .woocommerce table.cart td.product-thumbnail { display: block; grid-area: thumb; align-self: start; }
  body.unlock-cart .woocommerce table.cart td.product-name      { grid-area: name; }
  body.unlock-cart .woocommerce table.cart td.product-remove    { grid-area: remove; width: auto; align-self: start; }
  body.unlock-cart .woocommerce table.cart td.product-price     { grid-area: price; }
  body.unlock-cart .woocommerce table.cart td.product-quantity  { grid-area: qty; }
  body.unlock-cart .woocommerce table.cart td.product-subtotal  { grid-area: subtotal; text-align: right !important; }

  body.unlock-cart .woocommerce table.cart td.product-thumbnail img { width: 80px; height: 80px; }

  body.unlock-cart .woocommerce table.cart tr:not(.cart_item) { display: block; }
  body.unlock-cart .woocommerce table.cart td.actions { display: block; padding: 0; text-align: left !important; }
  body.unlock-cart .woocommerce table.cart td.actions .button { width: 100%; }
  body.unlock-cart .woocommerce table.cart td.actions::before { display: none; }

  body.unlock-cart .coupon.e-cart-section .coupon-col-start,
  body.unlock-cart .coupon.e-cart-section .coupon-col-end { flex: 1 1 100%; }
  body.unlock-cart .coupon.e-cart-section .coupon-col-end .button { width: 100%; }
}

@media (max-width: 600px) {
  body.unlock-checkout .e-coupon-box .coupon-col-2 .button { width: 100%; }
}
