/* Four legacy footer sublines are CSS content, outside the text-node fallback.
   The selected-language marker removes these overrides for every other choice. */
html[data-ms-mx-chrome-language="es"] .rey-siteFooter--custom .elementor-element-33e93a8 li:nth-child(1) .elementor-icon-list-text::after {
  content: 'Entregas en México';
}
/* Give the native checkout one page gutter and complete shipping rows. */
@media (max-width: 767px) {
  body.woocommerce-checkout:not(.woocommerce-order-received) #content > .rey-siteContainer {
    width: auto !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #content .rey-pageContent,
  body.woocommerce-checkout:not(.woocommerce-order-received) #content .rey-pageContent > .woocommerce {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    padding: 16px 12px !important;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table > thead,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table > tbody,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table > tfoot {
    display: block !important;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table tr {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    width: 100%;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table th,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table td {
    display: block !important;
    box-sizing: border-box;
    min-width: 0;
    width: auto !important;
    padding: 12px 6px !important;
    overflow-wrap: anywhere;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table .msrc-checkout-credit-preview {
    grid-template-columns: minmax(0, 1fr);
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table .woocommerce-shipping-totals > td,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review .woocommerce-checkout-review-order-table .msrc-checkout-credit-preview > td {
    text-align: left;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review #shipping_method,
  body.woocommerce-checkout:not(.woocommerce-order-received) #order_review #shipping_method label,
  body.woocommerce-checkout:not(.woocommerce-order-received) #payment,
  body.woocommerce-checkout:not(.woocommerce-order-received) #payment .payment_box {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  body.woocommerce-checkout:not(.woocommerce-order-received) #payment {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
html[data-ms-mx-chrome-language="es"] .rey-siteFooter--custom .elementor-element-33e93a8 li:nth-child(2) .elementor-icon-list-text::after {
  content: 'Política clara y proceso sencillo';
}
html[data-ms-mx-chrome-language="es"] .rey-siteFooter--custom .elementor-element-33e93a8 li:nth-child(3) .elementor-icon-list-text::after {
  content: 'Productos en los que confiamos';
}
html[data-ms-mx-chrome-language="es"] .rey-siteFooter--custom .elementor-element-33e93a8 li:nth-child(4) .elementor-icon-list-text::after {
  content: 'Ayuda cuando la necesitas';
}
html[data-ms-mx-chrome-language="es"] body.woocommerce-cart .rey-cartShippingBar::after {
  content: ' · Llega en 2–3 días hábiles';
}
html[data-ms-mx-chrome-language="es"] body.woocommerce-cart .ms-shipping-fast .ms-delivery-date::before,
html[data-ms-mx-chrome-language="es"] body.woocommerce-checkout .ms-shipping-fast .ms-delivery-date::before {
  content: 'Más rápido · ';
}
/* Native header labels rendered through CSS content. */
html[data-ms-mx-chrome-language="es"] .rey-headerSearch-toggle::after {
  content: 'Buscar' !important;
}
html[data-ms-mx-chrome-language="es"] .rey-headerCart-wrapper .ms-cart-link::after {
  content: 'Carrito' !important;
}
/* The active storefront remains Mexico for every chosen display language. */
header .elementor-icon-list-text:has(.ms-location-current)::before {
  content: 'MX' !important;
}
/* Long native product names need their own space in the mobile side cart. */
@media (max-width: 767px) {
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item {
    min-height: 0 !important;
    height: auto !important;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-thumbTitle {
    box-sizing: border-box;
    padding-right: 32px !important;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-item-title {
    min-width: 0 !important;
    overflow-wrap: anywhere;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item > .variation,
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item > .wc-item-meta {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 8px 0 0 !important;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .quantity-wrapper {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    margin: 10px 0 0 !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .quantity-wrapper > .quantity {
    flex: 0 0 auto;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-price {
    display: flex !important;
    flex: 1 1 120px;
    flex-wrap: wrap !important;
    justify-content: flex-end;
    gap: 3px 7px !important;
    min-width: 0;
    max-width: 100%;
    width: auto !important;
    white-space: normal !important;
    text-align: right;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-price > del,
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-price > ins,
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-price > .woocommerce-Price-amount {
    display: inline-block;
    white-space: nowrap;
  }
  .rey-cartPanel-wrapper .widget_shopping_cart_content .woocommerce-mini-cart-item .woocommerce-mini-cart-price .__item-total {
    flex-basis: 100%;
  }
}
