/* ==========================================================================
   Victoria Espinela · Carrito
   Solo en la página del carrito (carrito clásico de WooCommerce, [woocommerce_cart]).
   Necesita global.css. Se usa tal cual en el tema (ve-child/assets/css/carrito.css).

   SOLO ASPECTO. No se cambia el HTML de WooCommerce ni el del plugin mis_personalizaciones.php:
   - Los chips de personalización y de charms, sus enlaces para quitar charms, "Editar charms"
     y el desglose Base / Extras / Subtotal siguen siendo los suyos; aquí solo se visten.
   - Nada de display:none sobre campos, botones o enlaces del formulario (cantidad, cupón,
     "Actualizar carrito", métodos de envío): el JS del carrito de WooCommerce los necesita.
   - La tabla se convierte en lista con CSS grid, sin tocar sus filas ni celdas.

   Pesos: WooCommerce y Astra usan selectores largos (y algún !important en móvil), así que
   aquí se usa el prefijo body.woocommerce-cart y, donde hace falta, ":not(#ve-x)" (un id
   que no existe: no cambia a qué se aplica, solo suma peso). Los pocos !important responden
   a otros !important (WooCommerce en móvil, estilos en línea del plugin).
   ========================================================================== */

body.woocommerce-cart { background: var(--ve-bg); color: var(--ve-ink); }

/* ---------- Página: sin la caja blanca de Astra ---------- */
body.woocommerce-cart #content .ast-container:not(#ve-x) {
  display: block; width: 100%; max-width: calc(var(--ve-max) + 2 * var(--ve-gutter));
  margin: 0 auto; padding-left: var(--ve-gutter); padding-right: var(--ve-gutter); box-sizing: border-box;
}
body.woocommerce-cart #content #primary:not(#ve-x) { width: 100%; margin: 0; padding: 24px 0 var(--ve-section); }
body.woocommerce-cart #content .ast-article-single:not(#ve-x) { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
body.woocommerce-cart #content .entry-header:not(#ve-x) { margin: 0 0 28px; padding: 0; text-align: left; }
body.woocommerce-cart #content .entry-title:not(#ve-x) {
  margin: 0; font-family: var(--ve-serif); font-weight: 400; color: var(--ve-ink);
  font-size: clamp(40px, 30px + 2.6vw, 64px); line-height: 1; letter-spacing: -.015em;
}
body.woocommerce-cart #content .entry-content:not(#ve-x) { margin: 0; font-family: var(--ve-sans); font-size: 15px; line-height: 1.5; }

/* ---------- Columnas: productos | resumen fijo; debajo, "quizás te interese" ---------- */
body.woocommerce-cart .entry-content > .woocommerce:not(#ve-x) {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; width: auto; max-width: none; margin: 0; padding: 0;
}
/* Las dos cajas de .cart-collaterals pasan a ser piezas de la rejilla */
body.woocommerce-cart .woocommerce:not(#ve-x) > .cart-collaterals { display: contents; }
body.woocommerce-cart .woocommerce:not(#ve-x) > .woocommerce-notices-wrapper { grid-column: 1 / -1; order: 0; }
body.woocommerce-cart .woocommerce:not(#ve-x) > .woocommerce-notices-wrapper:empty { display: none; }
body.woocommerce-cart .woocommerce:not(#ve-x) > .woocommerce-cart-form { order: 1; min-width: 0; }
body.woocommerce-cart .woocommerce:not(#ve-x) > .cart-collaterals > .cart_totals { order: 2; float: none; width: auto; margin: 40px 0 0; }
body.woocommerce-cart .woocommerce:not(#ve-x) > .cart-collaterals > .cross-sells { order: 3; float: none; width: auto; margin: 56px 0 0; padding: 0; border: 0; min-width: 0; }
/* Dos columnas solo con productos (el carrito vacío sigue en una) */
@media (min-width: 1024px) {
  body.woocommerce-cart .entry-content > .woocommerce:has(> .woocommerce-cart-form):not(#ve-x) {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); column-gap: clamp(40px, 5vw, 80px);
  }
  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form):not(#ve-x) > .woocommerce-cart-form { grid-column: 1; grid-row: 2; }
  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form):not(#ve-x) > .cart-collaterals > .cross-sells { grid-column: 1; grid-row: 3; }
  body.woocommerce-cart .woocommerce:has(> .woocommerce-cart-form):not(#ve-x) > .cart-collaterals > .cart_totals {
    grid-column: 2; grid-row: 2 / span 2; margin: 0; position: sticky; top: calc(var(--ve-header-h) + 24px);
  }
}

/* ---------- Tabla del carrito convertida en lista ---------- */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) {
  display: block; width: 100%; margin: 0; border: 0; border-radius: 0; border-collapse: collapse; background: none;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) :is(tbody, thead) { display: block; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) :is(th, td) {
  display: block; padding: 0; border: 0; background: none; text-align: left !important; font-size: 15px; line-height: 1.5;
}
/* WooCommerce en móvil pone "Producto:", "Precio:"... delante de cada celda: fuera */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td::before { content: none !important; display: none !important; }

/* Cabecera: solo "Producto" y "Subtotal" */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) thead tr {
  display: flex; justify-content: space-between; padding: 0 0 14px; border-bottom: 1px solid var(--ve-line);
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) thead th { font-size: 13px; font-weight: 500; color: var(--ve-muted); letter-spacing: .02em; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) thead :is(.product-remove, .product-thumbnail, .product-price, .product-quantity) { display: none; }
@media (max-width: 767px) { body.woocommerce-cart table.shop_table.cart:not(#ve-x) thead { display: none; } }

/* Cada producto: foto | nombre, personalización, precio, cantidad | subtotal */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) tr.cart_item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr);
  grid-template-areas: "thumb name" "thumb price" "thumb total" "thumb qty";
  column-gap: 16px; row-gap: 8px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--ve-line);
}
@media (min-width: 768px) {
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) tr.cart_item {
    grid-template-columns: 96px minmax(0, 1fr) minmax(150px, auto);
    grid-template-areas: "thumb name total" "thumb price total" "thumb qty total";
    column-gap: 24px;
  }
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-thumbnail { grid-area: thumb; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-name { grid-area: name; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-price { grid-area: price; font-size: 14px; color: var(--ve-muted); }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-quantity { grid-area: qty; justify-self: start; }
/* "Eliminar" junto a la cantidad */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-remove { grid-area: qty; justify-self: start; align-self: center; margin-left: 88px; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-subtotal { grid-area: total; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-subtotal { justify-self: stretch; text-align: right !important; }
}

/* Foto (WooCommerce la esconde en móvil: aquí se muestra siempre) */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-thumbnail { display: block !important; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-thumbnail a { display: block; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-thumbnail img {
  display: block; width: 100% !important; max-width: none !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ve-white);
}

/* Nombre */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-name > a {
  font-family: var(--ve-serif); font-size: 21px; line-height: 1.2; color: var(--ve-ink); text-decoration: none;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-name > a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-name dl.variation { margin: 8px 0 0; font-size: 13px; color: var(--ve-muted); }

/* Cantidad */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) .quantity { margin: 0; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) .quantity input.qty {
  width: 72px; height: 44px; margin: 0; padding: 0 8px; box-sizing: border-box;
  border: 1px solid #8E8A85; border-radius: 0; background: var(--ve-white); color: var(--ve-ink);
  font-family: var(--ve-sans); font-size: 15px; text-align: center; box-shadow: none;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) .quantity input.qty:focus { border-color: var(--ve-ink); outline: 2px solid var(--ve-ink); outline-offset: 0; }

/* Eliminar: icono en círculo, en tinta (WooCommerce lo fuerza en rojo con !important) */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-remove a.remove {
  display: grid; place-items: center; width: 36px; height: 36px; margin: 0;
  border: 1px solid var(--ve-line); border-radius: 50%; background: var(--ve-white);
  color: var(--ve-ink) !important; font-size: 20px; line-height: 1; text-decoration: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-remove a.remove:hover {
  background: var(--ve-ink) !important; border-color: var(--ve-ink); color: var(--ve-white) !important;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-remove a.remove svg { width: 14px; height: 14px; fill: currentColor; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-remove a.remove .ast-icon { display: grid; place-items: center; }

/* ---------- Personalización del plugin (chips y charms): solo aspecto ---------- */
body.woocommerce-cart .myp-cart-compact { margin: 12px 0 4px; font-size: 13px; color: var(--ve-ink); }
body.woocommerce-cart .myp-cart-compact .row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 10px 0 0; }
body.woocommerce-cart .myp-cart-compact .lbl { min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ve-muted); }
body.woocommerce-cart .myp-cart-compact .chips { display: flex; flex-wrap: wrap; gap: 6px; }
body.woocommerce-cart .myp-cart-compact .chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border: 1px solid var(--ve-line); border-radius: 999px;
  background: var(--ve-white); color: var(--ve-ink); font-style: normal; font-size: 12.5px; line-height: 1.4; text-decoration: none;
}
body.woocommerce-cart .myp-cart-compact .chip.chip-removable { padding-right: 6px; cursor: pointer; transition: border-color .2s, background-color .2s; }
body.woocommerce-cart .myp-cart-compact .chip.chip-removable:hover { background: var(--ve-surface); border-color: var(--ve-ink); }
body.woocommerce-cart .myp-cart-compact .chip-x {
  display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ve-surface); color: var(--ve-muted); font-size: 13px; line-height: 1;
  transition: background-color .2s, color .2s;
}
body.woocommerce-cart .myp-cart-compact .chip.chip-removable:hover .chip-x { background: var(--ve-ink); color: var(--ve-white); }
body.woocommerce-cart .myp-cart-compact .chip.chip-removable:focus-visible { outline: 2px solid var(--ve-ink); outline-offset: 2px; }
/* "Editar charms": píldora con borde */
body.woocommerce-cart .myp-cart-compact a.button.my-edit-charms:not(#ve-x) {
  display: inline-flex; align-items: center; min-height: 36px; margin: 6px 0 0; padding: 6px 16px;
  border: 1px solid var(--ve-ink); border-radius: 999px; background: transparent; color: var(--ve-ink);
  font-family: var(--ve-sans); font-size: 13px; font-weight: 500; line-height: 1.2; text-transform: none; box-shadow: none;
}
body.woocommerce-cart .myp-cart-compact a.button.my-edit-charms:not(#ve-x):hover { background: var(--ve-ink); color: var(--ve-white); }

/* Desglose Base / Extras / Subtotal del plugin (trae estilos en línea: de ahí los !important) */
body.woocommerce-cart .myp-subtotal-compact { min-width: 170px; font-weight: 400; }
body.woocommerce-cart .myp-subtotal-compact .list { font-size: 13px !important; color: var(--ve-muted) !important; }
body.woocommerce-cart .myp-subtotal-compact .row { padding-top: 6px; border-top: 1px solid var(--ve-line); font-size: 15px; color: var(--ve-ink); }
body.woocommerce-cart .myp-subtotal-compact .row strong { font-weight: 600; }
@media (max-width: 767px) {
  body.woocommerce-cart .myp-subtotal-compact { max-width: 320px; }
}

/* ---------- Cupón y "Actualizar carrito" ---------- */
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 24px 0 0;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon { display: flex; flex-wrap: wrap; gap: 8px; float: none; margin: 0; padding: 0; border: 0; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon .input-text {
  float: none; width: 200px; height: 44px; margin: 0; padding: 0 14px; box-sizing: border-box;
  border: 1px solid #8E8A85; border-radius: 0; background: var(--ve-white); color: var(--ve-ink); font-size: 15px;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon .input-text:focus { border-color: var(--ve-ink); outline: 2px solid var(--ve-ink); outline-offset: 0; }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .button {
  float: none; min-height: 44px; margin: 0; padding: 10px 20px;
  border: 1px solid var(--ve-ink); border-radius: 999px; background: transparent; color: var(--ve-ink);
  font-family: var(--ve-sans); font-size: 14px; font-weight: 500; line-height: 1.2; text-transform: none; box-shadow: none; cursor: pointer;
}
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .button:hover:not(:disabled) { background: var(--ve-ink); color: var(--ve-white); }
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .button:disabled,
body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .button[aria-disabled="true"] { opacity: .35; cursor: default; }

/* ---------- Resumen (totales) ---------- */
body.woocommerce-cart .cart-collaterals .cart_totals:not(#ve-x) {
  padding: 28px 24px; border: 1px solid var(--ve-line); background: var(--ve-white); box-sizing: border-box;
}
@media (min-width: 480px) { body.woocommerce-cart .cart-collaterals .cart_totals:not(#ve-x) { padding: 32px 32px 28px; } }
body.woocommerce-cart .cart-collaterals .cart_totals:not(#ve-x) > h2 {
  margin: 0 0 12px; padding: 0; border: 0; background: none; font-family: var(--ve-serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ve-ink); text-transform: none;
}
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table { display: table; width: 100%; margin: 0; border: 0; border-radius: 0; border-collapse: collapse; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tbody { display: table-row-group; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr { display: table-row; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table :is(th, td) {
  display: table-cell; padding: 14px 0; border: 0; border-top: 1px solid var(--ve-line);
  background: none; vertical-align: top; font-size: 15px; line-height: 1.45; color: var(--ve-ink);
}
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table th { width: 40%; text-align: left; font-weight: 400; color: var(--ve-muted); }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table td { text-align: right !important; font-variant-numeric: tabular-nums; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table td::before { content: none !important; display: none !important; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr:first-child :is(th, td) { border-top: 0; }
/* Total */
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.order-total :is(th, td) { padding-top: 18px; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.order-total th { font-family: var(--ve-serif); font-size: 22px; color: var(--ve-ink); }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.order-total td strong { font-family: var(--ve-sans); font-size: 24px; font-weight: 600; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.order-total .includes_tax { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ve-muted); }
/* Envío */
body.woocommerce-cart .cart_totals:not(#ve-x) #shipping_method { margin: 0; padding: 0; list-style: none; }
body.woocommerce-cart .cart_totals:not(#ve-x) #shipping_method li { text-indent: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 6px; padding: 0; text-align: right; }
body.woocommerce-cart .cart_totals:not(#ve-x) #shipping_method li input[type="radio"] { margin: 0; accent-color: var(--ve-ink); }
body.woocommerce-cart .cart_totals:not(#ve-x) #shipping_method li label { margin: 0; text-indent: 0; font-size: 14px; }
body.woocommerce-cart .cart_totals:not(#ve-x) .woocommerce-shipping-destination { margin: 6px 0 0; font-size: 13px; color: var(--ve-muted); }
body.woocommerce-cart .cart_totals:not(#ve-x) .shipping-calculator-button { font-size: 13px; color: var(--ve-ink); text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart .cart_totals:not(#ve-x) .shipping-calculator-form :is(input.input-text, select) {
  width: 100%; min-height: 44px; border: 1px solid #8E8A85; border-radius: 0; background: var(--ve-white); font-size: 15px;
}
/* Botón de finalizar compra */
body.woocommerce-cart .cart_totals:not(#ve-x) .wc-proceed-to-checkout { margin: 0; padding: 20px 0 0; }
body.woocommerce-cart .cart_totals:not(#ve-x) .wc-proceed-to-checkout a.checkout-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; margin: 0 0 12px; padding: 14px 24px; box-sizing: border-box;
  border: 0; border-radius: 999px; background: var(--ve-ink); color: var(--ve-white);
  font-family: var(--ve-sans); font-size: 16px; font-weight: 500; line-height: 1.2; text-transform: none; text-decoration: none;
  transition: background-color .2s, transform .15s;
}
body.woocommerce-cart .cart_totals:not(#ve-x) .wc-proceed-to-checkout a.checkout-button:hover { background: #333; color: var(--ve-white); }
body.woocommerce-cart .cart_totals:not(#ve-x) .wc-proceed-to-checkout a.checkout-button:active { transform: scale(.99); }
body.woocommerce-cart .cart_totals:not(#ve-x) .wc-proceed-to-checkout a.checkout-button:focus-visible { outline: 2px solid var(--ve-ink); outline-offset: 3px; }

/* ---------- "Quizás también te interese" (tarjetas como las de la portada) ---------- */
body.woocommerce-cart .cross-sells:not(#ve-x) > h2 {
  margin: 0 0 24px; padding: 0; border: 0; background: none; font-family: var(--ve-serif); font-weight: 400; font-size: clamp(28px, 22px + 1.4vw, 40px); line-height: 1.05; color: var(--ve-ink);
}
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; margin: 0; padding: 0; }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products::before,
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products::after { display: none; }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product { float: none; width: auto; margin: 0; padding: 0; text-align: left; background: none; box-shadow: none; }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .astra-shop-thumbnail-wrap { position: relative; overflow: hidden; margin: 0; background: var(--ve-white); }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .astra-shop-thumbnail-wrap img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin: 0; transition: transform .9s var(--ve-ease); }
@media (hover: hover) {
  body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product:hover .astra-shop-thumbnail-wrap img { transform: scale(1.03); }
}
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .astra-shop-summary-wrap { padding: 14px 0 0; }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .ast-woo-product-category { display: none; }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .woocommerce-loop-product__title { margin: 0; padding: 0; font-family: var(--ve-serif); font-weight: 400; font-size: 20px; line-height: 1.2; color: var(--ve-ink); }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .price { display: block; margin: 6px 0 0; font-size: 15px; font-weight: 400; color: var(--ve-ink); }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .button {
  margin: 12px 0 0; padding: 8px 18px; min-height: 40px; border: 1px solid var(--ve-ink); border-radius: 999px;
  background: transparent; color: var(--ve-ink); font-size: 14px; font-weight: 500; text-transform: none; line-height: 1.4;
}
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .button:hover { background: var(--ve-ink); color: var(--ve-white); }
body.woocommerce-cart .cross-sells:not(#ve-x) ul.products li.product .star-rating { display: none; }
@media (min-width: 768px) {
  body.woocommerce-cart .cross-sells:not(#ve-x) ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
}

/* ---------- Avisos (producto eliminado, cupón aplicado, errores) y carrito vacío ---------- */
body.woocommerce-cart .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  margin: 0 0 12px; border-top-color: var(--ve-ink); background: var(--ve-white); color: var(--ve-ink); font-size: 15px;
}
body.woocommerce-cart .woocommerce-notices-wrapper :is(.woocommerce-message, .woocommerce-info)::before { color: var(--ve-ink); }
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error { border-top-color: #B42318; }
body.woocommerce-cart .woocommerce-notices-wrapper .woocommerce-error::before { color: #B42318; }
body.woocommerce-cart .woocommerce-notices-wrapper a:not(.button) { color: var(--ve-ink); text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-cart .wc-empty-cart-message .cart-empty.woocommerce-info:not(#ve-x) {
  margin: 0; padding: 40px 0 8px; border: 0; background: none; color: var(--ve-ink);
  font-family: var(--ve-serif); font-size: clamp(24px, 20px + 1vw, 32px); line-height: 1.2;
}
body.woocommerce-cart .wc-empty-cart-message .cart-empty.woocommerce-info:not(#ve-x)::before { display: none; }
body.woocommerce-cart .return-to-shop a.button.wc-backward:not(#ve-x) {
  display: inline-flex; align-items: center; min-height: 50px; margin: 16px 0 0; padding: 12px 30px;
  border: 0; border-radius: 999px; background: var(--ve-ink); color: var(--ve-white);
  font-family: var(--ve-sans); font-size: 15px; font-weight: 500; text-transform: none;
}
body.woocommerce-cart .return-to-shop a.button.wc-backward:not(#ve-x):hover { background: #333; }

@media (prefers-reduced-motion: reduce) {
  body.woocommerce-cart .cross-sells ul.products li.product .astra-shop-thumbnail-wrap img { transition: none; transform: none; }
}

/* ---------- Ajustes finos ---------- */
/* Envío: título arriba y opciones debajo, con el radio pegado a su texto */
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.shipping { display: block; border-top: 1px solid var(--ve-line); padding: 14px 0; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.shipping :is(th, td) { display: block; width: auto; padding: 0; border: 0; text-align: left !important; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr.shipping th { margin-bottom: 10px; }
body.woocommerce-cart .cart_totals:not(#ve-x) #shipping_method li { justify-content: flex-start; text-align: left; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tbody { display: block; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr:not(.shipping) { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr:not(.shipping) :is(th, td) { display: block; width: auto; border-top: 0; }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table tr:not(:first-child):not(.shipping) { border-top: 1px solid var(--ve-line); }
body.woocommerce-cart .cart_totals:not(#ve-x) table.shop_table { display: block; }

/* "Editar charms" nunca a todo el ancho */
body.woocommerce-cart .myp-cart-compact a.button.my-edit-charms:not(#ve-x) { width: auto !important; }

@media (max-width: 767px) {
  /* En móvil sobra el precio unitario: el subtotal ya lo dice */
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.product-price { display: none !important; }
  /* Cupón: campo que se estira + botón; "Actualizar carrito" debajo */
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon { flex: 1 1 100%; flex-wrap: nowrap; }
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon .input-text { flex: 1 1 auto; width: auto; min-width: 0; }
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions .coupon .button { flex: 0 0 auto; white-space: nowrap; width: auto !important; }
  body.woocommerce-cart table.shop_table.cart:not(#ve-x) td.actions > .button { width: 100% !important; }
}
