/* =========================================================
   CODEON · ESTILO ECOMMERCE ENGANCHE Y REMOLQUES PACHECO
   Paleta extraída de la línea visual de la web: negro,
   blanco y rojo corporativo.
========================================================= */

:root {
  --codeon-pacheco-red: #F72E16;
  --codeon-pacheco-red-dark: #D9230E;
  --codeon-pacheco-black: #050505;
  --codeon-pacheco-ink: #0A0A0A;
  --codeon-pacheco-white: #FFFFFF;
  --codeon-pacheco-gray: #686868;
  --codeon-pacheco-light: #F3F3F3;
  --codeon-pacheco-line: #E2E2E2;
}

/* Utilidades del plugin */
.total-productos-archivo,
.descripcion-categoria-producto,
.codeon-products-toolbar,
.codeon-product-filters-form,
.codeon-pacheco-search,
.codeon-estado-stock {
  font-family: "Poppins", Arial, sans-serif !important;
}

/* =========================================================
   BUSCADOR DE PRODUCTOS
========================================================= */

.codeon-pacheco-search {
  display: flex;
  align-items: stretch;
  width: min(100%, 920px);
  min-height: 58px;
  margin: 0 auto;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 999px;
  box-shadow: none;
}

.codeon-pacheco-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 58px;
  margin: 0 !important;
  padding: 0 24px !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 0 !important;
  border-radius: 999px 0 0 999px !important;
  box-shadow: none !important;
  outline: 0 !important;
  font: 700 13px/1.2 "Poppins", Arial, sans-serif !important;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.codeon-pacheco-search__input::placeholder {
  color: #5B6069;
  opacity: 1;
}

.codeon-pacheco-search__button {
  flex: 0 0 clamp(150px, 20%, 190px);
  min-height: 58px;
  margin: 0 !important;
  padding: 0 24px !important;
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border: 0 !important;
  border-radius: 0 999px 999px 0 !important;
  box-shadow: none !important;
  font: 800 14px/1 "Poppins", Arial, sans-serif !important;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.codeon-pacheco-search__button:hover,
.codeon-pacheco-search__button:focus-visible {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red-dark) !important;
}

.codeon-pacheco-search:focus-within {
  box-shadow: 0 0 0 3px rgba(247, 46, 22, .24);
}

/* =========================================================
   ARCHIVOS Y BUCLES DE PRODUCTOS WOOCOMMERCE / ELEMENTOR
========================================================= */

.woocommerce ul.products,
.elementor-widget-woocommerce-products ul.products,
.elementor-widget-wc-archive-products ul.products {
  gap: clamp(14px, 2vw, 26px);
}

.woocommerce ul.products li.product,
.elementor-widget-woocommerce-products ul.products li.product,
.elementor-widget-wc-archive-products ul.products li.product,
.elementor-loop-container > .e-loop-item.type-product {
  min-width: 0;
  overflow: hidden;
  color: var(--codeon-pacheco-ink);
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 30px;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product:hover,
.elementor-widget-woocommerce-products ul.products li.product:hover,
.elementor-widget-wc-archive-products ul.products li.product:hover,
.elementor-loop-container > .e-loop-item.type-product:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product a img,
.elementor-widget-woocommerce-products ul.products li.product a img,
.elementor-widget-wc-archive-products ul.products li.product a img {
  width: 100%;
  margin: 0;
  padding: clamp(10px, 1.7vw, 22px);
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  background: #FFFFFF;
  transition: transform .24s ease;
}

.woocommerce ul.products li.product:hover a img,
.elementor-widget-woocommerce-products ul.products li.product:hover a img,
.elementor-widget-wc-archive-products ul.products li.product:hover a img {
  transform: scale(1.025);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title,
.elementor-widget-wc-archive-products ul.products li.product .woocommerce-loop-product__title {
  min-height: 54px;
  margin: 0;
  padding: 20px 24px 8px;
  color: #090909;
  font: 800 clamp(16px, 1.2vw, 20px)/1.3 "Poppins", Arial, sans-serif;
  text-align: center;
}

.woocommerce ul.products li.product .price,
.elementor-widget-woocommerce-products ul.products li.product .price,
.elementor-widget-wc-archive-products ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 8px 0 14px;
  padding: 0 20px;
  color: var(--codeon-pacheco-red);
  font: italic 900 clamp(22px, 2vw, 30px)/1.15 "Poppins", Arial, sans-serif;
  text-align: center;
}

.woocommerce ul.products li.product .price del,
.elementor-widget-woocommerce-products ul.products li.product .price del,
.elementor-widget-wc-archive-products ul.products li.product .price del {
  color: #777777;
  font-size: .65em;
  font-style: normal;
  opacity: 1;
}

.woocommerce ul.products li.product .price ins,
.elementor-widget-woocommerce-products ul.products li.product .price ins,
.elementor-widget-wc-archive-products ul.products li.product .price ins {
  color: var(--codeon-pacheco-red);
  text-decoration: none;
}

.woocommerce ul.products li.product .button,
.elementor-widget-woocommerce-products ul.products li.product .button,
.elementor-widget-wc-archive-products ul.products li.product .button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 56px);
  min-height: 43px;
  margin: 0 28px 30px;
  padding: 11px 18px;
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font: 800 14px/1 "Poppins", Arial, sans-serif !important;
  text-align: center;
  text-decoration: none !important;
}

.woocommerce ul.products li.product .button:hover,
.elementor-widget-woocommerce-products ul.products li.product .button:hover,
.elementor-widget-wc-archive-products ul.products li.product .button:hover {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red-dark) !important;
}

.woocommerce ul.products li.product .onsale,
.elementor-widget-woocommerce-products ul.products li.product .onsale,
.elementor-widget-wc-archive-products ul.products li.product .onsale {
  top: 16px;
  right: 16px;
  left: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 12px;
  color: #FFFFFF;
  background: var(--codeon-pacheco-red);
  border-radius: 999px;
  font: 800 11px/1 "Poppins", Arial, sans-serif;
}

.woocommerce ul.products li.product .star-rating {
  margin: 8px auto;
  color: var(--codeon-pacheco-red);
}

/* Etiquetas o taxonomías usadas dentro de plantillas Elementor */
.elementor-loop-container > .e-loop-item.type-product .elementor-post-info__terms-list,
.elementor-loop-container > .e-loop-item.type-product .product-category,
.elementor-loop-container > .e-loop-item.type-product .codeon-product-category {
  display: inline-flex;
  width: auto;
  padding: 6px 12px;
  color: #8A8A8A;
  background: #FFFFFF;
  border: 1px solid #BEBEBE;
  border-radius: 999px;
  font: 500 11px/1 "Poppins", Arial, sans-serif;
}

/* =========================================================
   FILTROS Y BARRA SUPERIOR
========================================================= */

.codeon-product-filters {
  box-shadow: 0 12px 34px rgba(0, 0, 0, .16);
}

.codeon-filter-submit,
.codeon-filters-mobile-trigger {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border-color: var(--codeon-pacheco-red) !important;
}

.codeon-filter-submit:hover,
.codeon-filters-mobile-trigger:hover {
  background: var(--codeon-pacheco-red-dark) !important;
  border-color: var(--codeon-pacheco-red-dark) !important;
}

.codeon-products-toolbar .codeon-products-ordering select {
  color: #111111 !important;
  background-color: #FFFFFF !important;
}

.codeon-filter-badge {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
}

/* =========================================================
   AVISOS WOOCOMMERCE
========================================================= */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  position: relative;
  padding: 16px 20px 16px 22px !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E3E3E3 !important;
  border-left: 5px solid var(--codeon-pacheco-red) !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10) !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
  color: var(--codeon-pacheco-red) !important;
}

.woocommerce-message a.button,
.woocommerce-info a.button,
.woocommerce-error a.button,
.wc-block-components-notice-banner a {
  color: var(--codeon-pacheco-red) !important;
  font-weight: 800 !important;
}

/* =========================================================
   CARRITO, CHECKOUT Y MI CUENTA
========================================================= */

body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
  --wp--preset--color--contrast: #0A0A0A;
}

body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-account .woocommerce {
  font-family: "Poppins", Arial, sans-serif;
}

body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-content {
  color: #111111;
  background: #FFFFFF;
  border: 1px solid #E3E3E3;
  border-radius: 24px;
}

.wc-block-components-button,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 800 !important;
}

.wc-block-components-button:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red-dark) !important;
}

.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.wc-block-components-text-input input,
.wc-block-components-textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #CECECE !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.wc-block-components-text-input input:focus {
  border-color: var(--codeon-pacheco-red) !important;
  box-shadow: 0 0 0 3px rgba(247, 46, 22, .16) !important;
  outline: 0 !important;
}

@media (max-width: 767px) {
  .codeon-pacheco-search {
    min-height: 50px;
  }

  .codeon-pacheco-search__input,
  .codeon-pacheco-search__button {
    min-height: 50px;
  }

  .codeon-pacheco-search__input {
    padding: 0 16px !important;
    font-size: 11px !important;
  }

  .codeon-pacheco-search__button {
    flex-basis: 112px;
    padding: 0 14px !important;
    font-size: 12px !important;
  }

  .woocommerce ul.products li.product,
  .elementor-widget-woocommerce-products ul.products li.product,
  .elementor-widget-wc-archive-products ul.products li.product,
  .elementor-loop-container > .e-loop-item.type-product {
    border-radius: 22px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title,
  .elementor-widget-woocommerce-products ul.products li.product .woocommerce-loop-product__title,
  .elementor-widget-wc-archive-products ul.products li.product .woocommerce-loop-product__title {
    min-height: 48px;
    padding: 14px 14px 6px;
    font-size: 14px;
  }

  .woocommerce ul.products li.product .price,
  .elementor-widget-woocommerce-products ul.products li.product .price,
  .elementor-widget-wc-archive-products ul.products li.product .price {
    padding: 0 12px;
    font-size: 20px;
  }

  .woocommerce ul.products li.product .button,
  .elementor-widget-woocommerce-products ul.products li.product .button,
  .elementor-widget-wc-archive-products ul.products li.product .button {
    width: calc(100% - 28px);
    margin: 0 14px 18px;
    font-size: 12px !important;
  }
}

/* Plantillas de Loop Grid de Elementor creadas para productos */
.elementor-loop-container > .e-loop-item.type-product .elementor-heading-title,
.elementor-loop-container > .e-loop-item.product .elementor-heading-title {
  color: #0A0A0A;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.3;
}

.elementor-loop-container > .e-loop-item.type-product .woocommerce-Price-amount,
.elementor-loop-container > .e-loop-item.product .woocommerce-Price-amount,
.elementor-loop-container > .e-loop-item.type-product .price,
.elementor-loop-container > .e-loop-item.product .price {
  color: #F72E16;
  font-family: "Poppins", Arial, sans-serif;
  font-style: italic;
  font-weight: 900;
}

.elementor-loop-container > .e-loop-item.type-product .elementor-button,
.elementor-loop-container > .e-loop-item.product .elementor-button {
  color: #FFFFFF !important;
  background: #F72E16 !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-weight: 800 !important;
}

.elementor-loop-container > .e-loop-item.type-product .elementor-button:hover,
.elementor-loop-container > .e-loop-item.product .elementor-button:hover {
  color: #FFFFFF !important;
  background: #D9230E !important;
}


/* =========================================================
   PRECIO DESTACADO DEL PRODUCTO
   Shortcode: [codeon_precio_producto]
========================================================= */


.codeon-pacheco-product-price {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--codeon-pacheco-red);
  background: transparent !important;
  border: 0;
  box-shadow: none;
  font-family: "Poppins", Arial, sans-serif;
  text-align: center;
}

.codeon-pacheco-product-price__html,
.codeon-pacheco-product-price__html > .price {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  background: transparent !important;
}

/* Precio normal y precio actual de una oferta. */
.codeon-pacheco-product-price .woocommerce-Price-amount,
.codeon-pacheco-product-price__html > .amount,
.codeon-pacheco-product-price__html > .price > .amount,
.codeon-pacheco-product-price ins .woocommerce-Price-amount {
  color: var(--codeon-pacheco-red) !important;
  font-size: 32px !important;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

/* Precio anterior: pequeño, gris, centrado y tachado. */
.codeon-pacheco-product-price del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #8A8A8A !important;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  opacity: 1 !important;
  text-align: center;
  text-decoration-line: line-through;
  text-decoration-color: #8A8A8A;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

/* Evita que Elementor/WooCommerce vuelva a pintar el precio anterior en rojo. */
.codeon-pacheco-product-price del .woocommerce-Price-amount {
  color: #8A8A8A !important;
  font-size: 18px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: -.02em !important;
  line-height: 1 !important;
  text-decoration: line-through !important;
  text-decoration-color: #8A8A8A !important;
}

.codeon-pacheco-product-price ins {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 0;
  color: var(--codeon-pacheco-red) !important;
  background: transparent !important;
  text-align: center;
  text-decoration: none !important;
}

.codeon-pacheco-product-price ins .woocommerce-Price-amount {
  color: var(--codeon-pacheco-red) !important;
  font-size: 32px !important;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.codeon-pacheco-product-price .woocommerce-Price-currencySymbol {
  font-size: .85em;
}

.codeon-pacheco-product-price .woocommerce-price-suffix {
  color: inherit;
  font-size: .38em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: normal;
}

.codeon-pacheco-product-price .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .codeon-pacheco-product-price .woocommerce-Price-amount,
  .codeon-pacheco-product-price__html > .amount,
  .codeon-pacheco-product-price__html > .price > .amount,
  .codeon-pacheco-product-price ins .woocommerce-Price-amount {
    font-size: 28px !important;
  }

  .codeon-pacheco-product-price del,
  .codeon-pacheco-product-price del .woocommerce-Price-amount {
    font-size: 16px !important;
  }
}

/* =========================================================
   CHECKOUT BLOCKS · ENTREGA CON UN ÚNICO TIPO DISPONIBLE
   WooCommerce mantiene visible el selector Enviar/Recogida aunque
   woocommerce_package_rates elimine todas las tarifas de uno de los tipos.
   Estas reglas trabajan junto a codeon-checkout-delivery-guard.js.
========================================================= */
body.woocommerce-checkout.codeon-checkout-only-pickup
#shipping-method .codeon-checkout-delivery-option--shipping,
body.woocommerce-checkout.codeon-checkout-only-shipping
#shipping-method .codeon-checkout-delivery-option--pickup {
  display: none !important;
}

body.woocommerce-checkout.codeon-checkout-only-pickup
#shipping-method .codeon-checkout-delivery-option--pickup,
body.woocommerce-checkout.codeon-checkout-only-shipping
#shipping-method .codeon-checkout-delivery-option--shipping {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

body.woocommerce-checkout.codeon-checkout-only-pickup
#shipping-method,
body.woocommerce-checkout.codeon-checkout-only-shipping
#shipping-method {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* =========================================================
   PRECIOS DE PRODUCTO · INDICACIÓN +IVA
   Se añade desde woocommerce_get_price_html para que aparezca en
   fichas, tarjetas, relacionados, wishlist y widgets de producto.
========================================================= */
.codeon-price-vat {
  display: inline-block;
  margin-left: 6px;
  color: #777777 !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  vertical-align: baseline;
  white-space: nowrap;
}

/* Precio principal de la ficha: un poco mayor, pero siempre secundario. */
.gb-product-price .codeon-price-vat {
  margin-left: 7px;
  color: #A8A8A8 !important;
  font-size: 11px !important;
}

/* Shortcode de precio: junto al precio vigente, también cuando hay oferta. */
.codeon-pacheco-product-price .codeon-price-vat {
  margin-left: 6px;
  color: #777777 !important;
  font-size: 10px !important;
  vertical-align: 0.12em;
}

/* Tarjetas de tienda / Elementor. */
.woocommerce ul.products li.product .price .codeon-price-vat,
.elementor-widget-woocommerce-products ul.products li.product .price .codeon-price-vat,
.elementor-widget-wc-archive-products ul.products li.product .price .codeon-price-vat,
.elementor-loop-container .e-loop-item.product .codeon-price-vat,
.elementor-loop-container .e-loop-item.type-product .codeon-price-vat {
  font-size: 9px !important;
}

/* Relacionados, wishlist y barra fija de compra móvil. */
.gb-related-card-price .codeon-price-vat,
.codeon-wishlist-card-price .codeon-price-vat,
.gb-mobile-buy-bar .codeon-price-vat {
  font-size: 9px !important;
}

@media (max-width: 767px) {
  .gb-product-price .codeon-price-vat {
    font-size: 10px !important;
  }

  .codeon-pacheco-product-price .codeon-price-vat {
    font-size: 9px !important;
  }
}

/* v1.3.5 · +IVA integrado junto al precio vigente en shortcodes propios. */
.codeon-pacheco-product-price .woocommerce-Price-amount > .codeon-price-vat,
.codeon-pacheco-product-price ins > .codeon-price-vat,
.gb-product-price .woocommerce-Price-amount > .codeon-price-vat,
.gb-product-price ins > .codeon-price-vat,
.gb-related-card-price .woocommerce-Price-amount > .codeon-price-vat,
.gb-mobile-buy-bar .woocommerce-Price-amount > .codeon-price-vat {
  display: inline-block !important;
  margin-left: 6px !important;
  color: #8A8A8A !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 10px !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  vertical-align: 0.12em !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  .codeon-pacheco-product-price .codeon-price-vat,
  .gb-product-price .codeon-price-vat,
  .gb-mobile-buy-bar .codeon-price-vat {
    font-size: 9px !important;
  }
}


/* =========================================================
   v1.3.7 · PEDIDOS, CONFIRMACIÓN Y DIRECCIONES DE MI CUENTA
   Corrige el contraste y la adaptación móvil de las tablas clásicas
   de WooCommerce y de las tarjetas de dirección. No modifica los
   datos ni la estructura funcional de los pedidos.
========================================================= */

/* ---------- Confirmación / detalle de pedido ---------- */
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-view-order .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-account .woocommerce-customer-details {
  font-family: "Poppins", Arial, sans-serif !important;
}

body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-order-details,
body.woocommerce-account .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-view-order .woocommerce-customer-details,
body.woocommerce-account .woocommerce-customer-details {
  width: 100%;
  margin: 0 0 24px !important;
  padding: clamp(16px, 2.4vw, 26px) !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 24px !important;
  box-shadow: none !important;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-view-order .woocommerce-order-details__title,
body.woocommerce-account .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-customer-details > h2,
body.woocommerce-view-order .woocommerce-customer-details > h2,
body.woocommerce-account .woocommerce-customer-details > h2 {
  margin: 0 0 18px !important;
  padding: 0 0 14px !important;
  color: #0A0A0A !important;
  border-bottom: 1px solid #E5E5E5 !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: clamp(18px, 2vw, 24px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  text-transform: none !important;
}

/* Tabla de productos/totales del pedido. */
body.woocommerce-order-received table.woocommerce-table--order-details,
body.woocommerce-view-order table.woocommerce-table--order-details,
body.woocommerce-account table.woocommerce-table--order-details,
body.woocommerce-order-received table.order_details,
body.woocommerce-view-order table.order_details,
body.woocommerce-account table.order_details {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E1E1E1 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  table-layout: auto !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details th,
body.woocommerce-order-received table.woocommerce-table--order-details td,
body.woocommerce-view-order table.woocommerce-table--order-details th,
body.woocommerce-view-order table.woocommerce-table--order-details td,
body.woocommerce-account table.woocommerce-table--order-details th,
body.woocommerce-account table.woocommerce-table--order-details td,
body.woocommerce-order-received table.order_details th,
body.woocommerce-order-received table.order_details td,
body.woocommerce-view-order table.order_details th,
body.woocommerce-view-order table.order_details td,
body.woocommerce-account table.order_details th,
body.woocommerce-account table.order_details td {
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 0 !important;
  border-bottom: 1px solid #E6E6E6 !important;
  font-family: "Poppins", Arial, sans-serif !important;
  vertical-align: middle !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details thead th,
body.woocommerce-view-order table.woocommerce-table--order-details thead th,
body.woocommerce-account table.woocommerce-table--order-details thead th,
body.woocommerce-order-received table.order_details thead th,
body.woocommerce-view-order table.order_details thead th,
body.woocommerce-account table.order_details thead th {
  padding: 14px 16px !important;
  color: #FFFFFF !important;
  background: #0A0A0A !important;
  border-bottom: 0 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details tbody td,
body.woocommerce-view-order table.woocommerce-table--order-details tbody td,
body.woocommerce-account table.woocommerce-table--order-details tbody td,
body.woocommerce-order-received table.order_details tbody td,
body.woocommerce-view-order table.order_details tbody td,
body.woocommerce-account table.order_details tbody td {
  padding: 16px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot td,
body.woocommerce-account table.woocommerce-table--order-details tfoot th,
body.woocommerce-account table.woocommerce-table--order-details tfoot td,
body.woocommerce-order-received table.order_details tfoot th,
body.woocommerce-order-received table.order_details tfoot td,
body.woocommerce-view-order table.order_details tfoot th,
body.woocommerce-view-order table.order_details tfoot td,
body.woocommerce-account table.order_details tfoot th,
body.woocommerce-account table.order_details tfoot td {
  padding: 12px 16px !important;
  color: #111111 !important;
  background: #F7F7F7 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot th,
body.woocommerce-account table.woocommerce-table--order-details tfoot th,
body.woocommerce-order-received table.order_details tfoot th,
body.woocommerce-view-order table.order_details tfoot th,
body.woocommerce-account table.order_details tfoot th {
  font-weight: 700 !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child td,
body.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-account table.woocommerce-table--order-details tfoot tr:last-child td {
  color: #0A0A0A !important;
  background: #FFFFFF !important;
  border-bottom: 0 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details a,
body.woocommerce-view-order table.woocommerce-table--order-details a,
body.woocommerce-account table.woocommerce-table--order-details a,
body.woocommerce-order-received table.order_details a,
body.woocommerce-view-order table.order_details a,
body.woocommerce-account table.order_details a {
  color: var(--codeon-pacheco-red) !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details .product-quantity,
body.woocommerce-view-order table.woocommerce-table--order-details .product-quantity,
body.woocommerce-account table.woocommerce-table--order-details .product-quantity {
  color: #666666 !important;
  font-weight: 700 !important;
}

body.woocommerce-order-received table.woocommerce-table--order-details .woocommerce-Price-amount,
body.woocommerce-view-order table.woocommerce-table--order-details .woocommerce-Price-amount,
body.woocommerce-account table.woocommerce-table--order-details .woocommerce-Price-amount,
body.woocommerce-order-received table.order_details .woocommerce-Price-amount,
body.woocommerce-view-order table.order_details .woocommerce-Price-amount,
body.woocommerce-account table.order_details .woocommerce-Price-amount {
  color: #111111 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Resumen superior tras completar el pedido. */
body.woocommerce-order-received ul.woocommerce-order-overview,
body.woocommerce-view-order ul.woocommerce-order-overview {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  list-style: none !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li,
body.woocommerce-view-order ul.woocommerce-order-overview li {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  color: #686868 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 16px !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  text-transform: uppercase !important;
}

body.woocommerce-order-received ul.woocommerce-order-overview li strong,
body.woocommerce-view-order ul.woocommerce-order-overview li strong {
  display: block !important;
  margin-top: 5px !important;
  color: #0A0A0A !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-transform: none !important;
  overflow-wrap: anywhere !important;
}

/* ---------- Direcciones en pedido / Mi cuenta ---------- */
body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-columns--addresses,
body.woocommerce-view-order .woocommerce-columns--addresses {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
}

body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-column--billing-address,
body.woocommerce-account .woocommerce-column--shipping-address,
body.woocommerce-order-received .woocommerce-column--billing-address,
body.woocommerce-order-received .woocommerce-column--shipping-address,
body.woocommerce-view-order .woocommerce-column--billing-address,
body.woocommerce-view-order .woocommerce-column--shipping-address {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #111111 !important;
}

body.woocommerce-account .woocommerce-Address-title,
body.woocommerce-account .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-view-order .woocommerce-column__title {
  margin: 0 0 12px !important;
  color: #FFFFFF !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: clamp(18px, 2vw, 25px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: -.02em !important;
  text-transform: uppercase !important;
}

/* En secciones blancas del detalle de pedido el título debe ser oscuro. */
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-column__title,
body.woocommerce-view-order .woocommerce-customer-details .woocommerce-column__title,
body.woocommerce-account .woocommerce-customer-details .woocommerce-column__title {
  color: #0A0A0A !important;
  text-transform: none !important;
}

body.woocommerce-account .woocommerce-Address address,
body.woocommerce-account .woocommerce-column address,
body.woocommerce-account address.woocommerce-address-fields,
body.woocommerce-order-received .woocommerce-customer-details address,
body.woocommerce-view-order .woocommerce-customer-details address,
body.woocommerce-account .woocommerce-customer-details address {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 18px 20px !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
  overflow-wrap: anywhere !important;
}

body.woocommerce-account .woocommerce-Address address *,
body.woocommerce-account .woocommerce-column address *,
body.woocommerce-order-received .woocommerce-customer-details address *,
body.woocommerce-view-order .woocommerce-customer-details address *,
body.woocommerce-account .woocommerce-customer-details address * {
  color: #111111 !important;
}

body.woocommerce-account .woocommerce-Address address a,
body.woocommerce-account .woocommerce-column address a,
body.woocommerce-order-received .woocommerce-customer-details address a,
body.woocommerce-view-order .woocommerce-customer-details address a,
body.woocommerce-account .woocommerce-customer-details address a {
  color: var(--codeon-pacheco-red) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-Address-title a.edit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  margin-top: 8px !important;
  padding: 8px 14px !important;
  color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border-radius: 999px !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

/* Tablas de pedidos dentro de Mi cuenta: evita texto blanco sobre fondo blanco. */
body.woocommerce-account table.shop_table,
body.woocommerce-account table.my_account_orders {
  width: 100% !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E2E2 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

body.woocommerce-account table.shop_table th,
body.woocommerce-account table.shop_table td,
body.woocommerce-account table.my_account_orders th,
body.woocommerce-account table.my_account_orders td {
  color: #111111 !important;
  background: #FFFFFF !important;
  border-color: #E6E6E6 !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

/* ---------- WooCommerce Order Confirmation Blocks ---------- */
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-billing-address,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-shipping-address {
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E2E2 !important;
  border-radius: 20px !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary *,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper *,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-billing-address *,
body.woocommerce-order-received .wp-block-woocommerce-order-confirmation-shipping-address * {
  color: #111111 !important;
}

/* ---------- Adaptación móvil ---------- */
@media (max-width: 767px) {
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-view-order .woocommerce-order-details,
  body.woocommerce-account .woocommerce-order-details,
  body.woocommerce-order-received .woocommerce-customer-details,
  body.woocommerce-view-order .woocommerce-customer-details,
  body.woocommerce-account .woocommerce-customer-details {
    padding: 14px !important;
    border-radius: 18px !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details,
  body.woocommerce-view-order table.woocommerce-table--order-details,
  body.woocommerce-account table.woocommerce-table--order-details,
  body.woocommerce-order-received table.order_details,
  body.woocommerce-view-order table.order_details,
  body.woocommerce-account table.order_details {
    display: block !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details thead,
  body.woocommerce-view-order table.woocommerce-table--order-details thead,
  body.woocommerce-account table.woocommerce-table--order-details thead,
  body.woocommerce-order-received table.order_details thead,
  body.woocommerce-view-order table.order_details thead,
  body.woocommerce-account table.order_details thead {
    display: none !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tbody,
  body.woocommerce-order-received table.woocommerce-table--order-details tfoot,
  body.woocommerce-view-order table.woocommerce-table--order-details tbody,
  body.woocommerce-view-order table.woocommerce-table--order-details tfoot,
  body.woocommerce-account table.woocommerce-table--order-details tbody,
  body.woocommerce-account table.woocommerce-table--order-details tfoot,
  body.woocommerce-order-received table.order_details tbody,
  body.woocommerce-order-received table.order_details tfoot,
  body.woocommerce-view-order table.order_details tbody,
  body.woocommerce-view-order table.order_details tfoot,
  body.woocommerce-account table.order_details tbody,
  body.woocommerce-account table.order_details tfoot {
    display: block !important;
    width: 100% !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tbody tr,
  body.woocommerce-view-order table.woocommerce-table--order-details tbody tr,
  body.woocommerce-account table.woocommerce-table--order-details tbody tr,
  body.woocommerce-order-received table.order_details tbody tr,
  body.woocommerce-view-order table.order_details tbody tr,
  body.woocommerce-account table.order_details tbody tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    padding: 14px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E2E2 !important;
    border-radius: 14px !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tbody td,
  body.woocommerce-view-order table.woocommerce-table--order-details tbody td,
  body.woocommerce-account table.woocommerce-table--order-details tbody td,
  body.woocommerce-order-received table.order_details tbody td,
  body.woocommerce-view-order table.order_details tbody td,
  body.woocommerce-account table.order_details tbody td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tbody td.product-total,
  body.woocommerce-view-order table.woocommerce-table--order-details tbody td.product-total,
  body.woocommerce-account table.woocommerce-table--order-details tbody td.product-total,
  body.woocommerce-order-received table.order_details tbody td.product-total,
  body.woocommerce-view-order table.order_details tbody td.product-total,
  body.woocommerce-account table.order_details tbody td.product-total {
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr,
  body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr,
  body.woocommerce-account table.woocommerce-table--order-details tfoot tr,
  body.woocommerce-order-received table.order_details tfoot tr,
  body.woocommerce-view-order table.order_details tfoot tr,
  body.woocommerce-account table.order_details tfoot tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
    padding: 11px 0 !important;
    border-bottom: 1px solid #E5E5E5 !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
  body.woocommerce-order-received table.woocommerce-table--order-details tfoot td,
  body.woocommerce-view-order table.woocommerce-table--order-details tfoot th,
  body.woocommerce-view-order table.woocommerce-table--order-details tfoot td,
  body.woocommerce-account table.woocommerce-table--order-details tfoot th,
  body.woocommerce-account table.woocommerce-table--order-details tfoot td,
  body.woocommerce-order-received table.order_details tfoot th,
  body.woocommerce-order-received table.order_details tfoot td,
  body.woocommerce-view-order table.order_details tfoot th,
  body.woocommerce-view-order table.order_details tfoot td,
  body.woocommerce-account table.order_details tfoot th,
  body.woocommerce-account table.order_details tfoot td {
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
  }

  body.woocommerce-order-received table.woocommerce-table--order-details tfoot td,
  body.woocommerce-view-order table.woocommerce-table--order-details tfoot td,
  body.woocommerce-account table.woocommerce-table--order-details tfoot td,
  body.woocommerce-order-received table.order_details tfoot td,
  body.woocommerce-view-order table.order_details tfoot td,
  body.woocommerce-account table.order_details tfoot td {
    text-align: right !important;
  }

  body.woocommerce-order-received ul.woocommerce-order-overview,
  body.woocommerce-view-order ul.woocommerce-order-overview {
    grid-template-columns: 1fr 1fr !important;
  }

  body.woocommerce-account .woocommerce-Addresses,
  body.woocommerce-account .woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-columns--addresses,
  body.woocommerce-view-order .woocommerce-columns--addresses {
    grid-template-columns: 1fr !important;
  }

  body.woocommerce-account .woocommerce-Address address,
  body.woocommerce-account .woocommerce-column address,
  body.woocommerce-order-received .woocommerce-customer-details address,
  body.woocommerce-view-order .woocommerce-customer-details address,
  body.woocommerce-account .woocommerce-customer-details address {
    padding: 16px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 420px) {
  body.woocommerce-order-received ul.woocommerce-order-overview,
  body.woocommerce-view-order ul.woocommerce-order-overview {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   v1.3.8 · MI CUENTA > PEDIDOS
   Corrige contraste, tabla de pedidos y aviso de confirmación
   de correo sin modificar el contenido ni la lógica de WooCommerce.
========================================================= */

/* Avisos propios de Mi cuenta (incluido confirmar email). */
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100% !important;
  min-height: 72px !important;
  margin: 0 0 28px !important;
  padding: 16px 20px 16px 24px !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E1E1E1 !important;
  border-left: 5px solid var(--codeon-pacheco-red) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
}

body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message::before,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info::before,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error::before {
  color: var(--codeon-pacheco-red) !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error a.button {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 12px 22px !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}

body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button:hover,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error a.button:hover {
  background: var(--codeon-pacheco-red-dark) !important;
}

/* Tabla de Mis pedidos. */
body.woocommerce-account table.woocommerce-orders-table,
body.woocommerce-account table.woocommerce-MyAccount-orders,
body.woocommerce-account table.account-orders-table,
body.woocommerce-account table.my_account_orders {
  width: 100% !important;
  margin: 0 !important;
  color: #111111 !important;
  background: #FFFFFF !important;
  border: 1px solid #E1E1E1 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  table-layout: auto !important;
}

body.woocommerce-account table.woocommerce-orders-table thead th,
body.woocommerce-account table.woocommerce-MyAccount-orders thead th,
body.woocommerce-account table.account-orders-table thead th,
body.woocommerce-account table.my_account_orders thead th {
  padding: 16px 18px !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: #0A0A0A !important;
  border: 0 !important;
  border-bottom: 1px solid #252525 !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .025em !important;
  text-align: left !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

body.woocommerce-account table.woocommerce-orders-table tbody tr,
body.woocommerce-account table.woocommerce-MyAccount-orders tbody tr,
body.woocommerce-account table.account-orders-table tbody tr,
body.woocommerce-account table.my_account_orders tbody tr {
  color: #111111 !important;
  background: #FFFFFF !important;
}

body.woocommerce-account table.woocommerce-orders-table tbody tr:hover,
body.woocommerce-account table.woocommerce-MyAccount-orders tbody tr:hover,
body.woocommerce-account table.account-orders-table tbody tr:hover,
body.woocommerce-account table.my_account_orders tbody tr:hover {
  background: #FAFAFA !important;
}

body.woocommerce-account table.woocommerce-orders-table tbody td,
body.woocommerce-account table.woocommerce-MyAccount-orders tbody td,
body.woocommerce-account table.account-orders-table tbody td,
body.woocommerce-account table.my_account_orders tbody td {
  padding: 18px !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #E7E7E7 !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;
}

body.woocommerce-account table.woocommerce-orders-table tbody tr:last-child td,
body.woocommerce-account table.woocommerce-MyAccount-orders tbody tr:last-child td,
body.woocommerce-account table.account-orders-table tbody tr:last-child td,
body.woocommerce-account table.my_account_orders tbody tr:last-child td {
  border-bottom: 0 !important;
}

/* Número de pedido y enlaces de la tabla. */
body.woocommerce-account .woocommerce-orders-table__cell-order-number a,
body.woocommerce-account .woocommerce-MyAccount-orders .order-number a,
body.woocommerce-account table.my_account_orders tbody td a:not(.button) {
  color: var(--codeon-pacheco-red) !important;
  -webkit-text-fill-color: var(--codeon-pacheco-red) !important;
  background: transparent !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-date,
body.woocommerce-account .woocommerce-orders-table__cell-order-status,
body.woocommerce-account .woocommerce-orders-table__cell-order-total,
body.woocommerce-account .woocommerce-orders-table__cell-order-total *,
body.woocommerce-account table.my_account_orders .woocommerce-Price-amount {
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-total .woocommerce-Price-amount,
body.woocommerce-account table.my_account_orders .woocommerce-Price-amount {
  font-weight: 800 !important;
  white-space: nowrap !important;
}

/* Acción Ver. */
body.woocommerce-account .woocommerce-orders-table__cell-order-actions,
body.woocommerce-account table.my_account_orders .order-actions {
  text-align: right !important;
  white-space: nowrap !important;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
body.woocommerce-account table.my_account_orders .order-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 96px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 11px 18px !important;
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF !important;
  background: var(--codeon-pacheco-red) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-family: "Poppins", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button:hover,
body.woocommerce-account table.my_account_orders .order-actions .button:hover {
  background: var(--codeon-pacheco-red-dark) !important;
}

/* Evita estilos de selección/realce heredados del tema en la tabla. */
body.woocommerce-account .woocommerce-orders-table th *,
body.woocommerce-account .woocommerce-orders-table td *,
body.woocommerce-account .woocommerce-MyAccount-orders th *,
body.woocommerce-account .woocommerce-MyAccount-orders td * {
  text-shadow: none !important;
}

/* ---------- Mis pedidos en móvil ---------- */
@media (max-width: 767px) {
  body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-message,
  body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-info,
  body.woocommerce-account .woocommerce-MyAccount-content > .woocommerce-error,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 16px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message a.button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info a.button,
  body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-error a.button {
    width: 100% !important;
  }

  body.woocommerce-account table.woocommerce-orders-table,
  body.woocommerce-account table.woocommerce-MyAccount-orders,
  body.woocommerce-account table.account-orders-table,
  body.woocommerce-account table.my_account_orders {
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  body.woocommerce-account table.woocommerce-orders-table thead,
  body.woocommerce-account table.woocommerce-MyAccount-orders thead,
  body.woocommerce-account table.account-orders-table thead,
  body.woocommerce-account table.my_account_orders thead {
    display: none !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody,
  body.woocommerce-account table.woocommerce-MyAccount-orders tbody,
  body.woocommerce-account table.account-orders-table tbody,
  body.woocommerce-account table.my_account_orders tbody {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody tr,
  body.woocommerce-account table.woocommerce-MyAccount-orders tbody tr,
  body.woocommerce-account table.account-orders-table tbody tr,
  body.woocommerce-account table.my_account_orders tbody tr {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    color: #111111 !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E2E2 !important;
    border-radius: 18px !important;
    box-shadow: none !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody td,
  body.woocommerce-account table.woocommerce-MyAccount-orders tbody td,
  body.woocommerce-account table.account-orders-table tbody td,
  body.woocommerce-account table.my_account_orders tbody td {
    display: grid !important;
    grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 11px 0 !important;
    color: #111111 !important;
    -webkit-text-fill-color: #111111 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #ECECEC !important;
    text-align: right !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody td:last-child,
  body.woocommerce-account table.woocommerce-MyAccount-orders tbody td:last-child,
  body.woocommerce-account table.account-orders-table tbody td:last-child,
  body.woocommerce-account table.my_account_orders tbody td:last-child {
    border-bottom: 0 !important;
  }

  body.woocommerce-account table.woocommerce-orders-table tbody td::before,
  body.woocommerce-account table.woocommerce-MyAccount-orders tbody td::before,
  body.woocommerce-account table.account-orders-table tbody td::before,
  body.woocommerce-account table.my_account_orders tbody td::before {
    content: attr(data-title) !important;
    display: block !important;
    color: #777777 !important;
    -webkit-text-fill-color: #777777 !important;
    font-family: "Poppins", Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: .035em !important;
    text-align: left !important;
    text-transform: uppercase !important;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-number a,
  body.woocommerce-account table.my_account_orders tbody td a:not(.button) {
    justify-self: end !important;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions,
  body.woocommerce-account table.my_account_orders .order-actions {
    display: block !important;
    padding-top: 14px !important;
    text-align: left !important;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions::before,
  body.woocommerce-account table.my_account_orders .order-actions::before {
    display: none !important;
  }

  body.woocommerce-account .woocommerce-orders-table__cell-order-actions .button,
  body.woocommerce-account table.my_account_orders .order-actions .button {
    width: 100% !important;
    min-height: 46px !important;
  }
}

