/* Cart, account and shared storefront presentation. */
body.woocommerce-cart .woocommerce { overflow-anchor: none; }
.woocommerce-ordering select.select2-hidden-accessible {
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  padding: 0 !important;
  inset-inline-start: 0;
}

@media (max-width: 768px) {
body.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
  }

body.woocommerce-cart .cart_totals {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
    box-sizing: border-box !important;
  }

body.woocommerce-cart .cart_totals table,
  body.woocommerce-cart .cart_totals .shop_table,
  body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

body.woocommerce-cart .actions {
    width: 100% !important;
    box-sizing: border-box !important;
  }

body.woocommerce-cart .actions .coupon input.input-text,
  body.woocommerce-cart .actions .coupon .button,
  body.woocommerce-cart .actions > .button,
  body.woocommerce-cart .actions button.button,
  body.woocommerce-cart .actions a.button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


@media (max-width: 768px) {
  html body.woocommerce-cart .site-content { padding-top: 28px !important; }
  html body.woocommerce-cart .entry-header { margin-bottom: 20px !important; }
  html body.woocommerce-cart :is(#primary, .site-main, .entry-content, .woocommerce, .woocommerce-cart-form) {
    box-sizing: border-box;
    min-width: 0 !important;
    max-width: 100% !important;
  }
  html body.woocommerce-cart .entry-content > .woocommerce {
    display: block !important;
    width: 100% !important;
    margin-inline: auto !important;
    padding-inline: clamp(6px, 2vw, 14px) !important;
    color: #172e42;
  }
  html body.woocommerce-cart .woocommerce-cart-form {
    width: 100% !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    float: none !important;
  }
  html body.woocommerce-cart .woocommerce-cart-form table.shop_table {
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  html body.woocommerce-cart .woocommerce-cart-form thead,
  html body.woocommerce-cart .woocommerce-cart-form td::before { display: none !important; }
  html body.woocommerce-cart .woocommerce-cart-form tbody {
    display: grid !important;
    gap: 12px;
    width: 100%;
  }
  html body.woocommerce-cart .woocommerce-cart-form tr.cart_item {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) minmax(32px, auto);
    grid-template-areas: "image name remove" "image price price" "quantity quantity subtotal";
    align-items: start;
    gap: 8px 10px;
    padding: 12px !important;
    width: auto !important;
    min-width: 0;
    border: 1px solid #dce6ee !important;
    border-radius: 14px;
    background: #fff !important;
    box-shadow: 0 3px 12px #142b4009;
  }
  html body.woocommerce-cart .woocommerce-cart-form tr.cart_item > td {
    display: block !important;
    justify-self: stretch;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: #142b40 !important;
    background: transparent !important;
    text-align: left !important;
    overflow-wrap: anywhere;
  }
  html body.woocommerce-cart .cart_item .product-thumbnail { grid-area: image; }
  html body.woocommerce-cart .cart_item .product-thumbnail img {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 100% !important;
    object-fit: contain;
    background: #f2f6f8;
    border-radius: 8px;
  }
  html body.woocommerce-cart .cart_item .product-name { grid-area: name; font: 650 14px/1.35 'DM Sans', sans-serif !important; }
  html body.woocommerce-cart .cart_item .product-name > a { color: #142b40 !important; text-decoration: none; }
  html body.woocommerce-cart .cart_item .product-name .variation {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 3px 5px;
    margin: 6px 0 0 !important;
    color: #526a7a;
    font: 400 12px/1.35 'DM Sans', sans-serif !important;
  }
  html body.woocommerce-cart .cart_item .variation :is(dt, dd, p) { float: none !important; margin: 0 !important; }
  html body.woocommerce-cart .cart_item .product-remove { grid-area: remove; justify-self: end; }
  html body.woocommerce-cart .cart_item .product-remove a.remove {
    display: grid !important;
    place-items: center;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    border-radius: 50%;
    background: #eff4f7 !important;
    color: #344e62 !important;
    font: 500 22px/1 sans-serif !important;
  }
  html body.woocommerce-cart .cart_item .product-price { grid-area: price; font-size: 12px; }
  html body.woocommerce-cart .woocommerce-cart-form .cart_item .product-price::before {
    display: inline !important;
    content: 'Precio unitario: ';
    float: none !important;
    color: #526a7a;
    font-weight: 400;
  }
  html body.woocommerce-cart .woocommerce-cart-form .cart_item :is(.product-quantity, .product-subtotal) {
    align-self: stretch;
    border-top: 1px solid #e1eaf0 !important;
    padding-top: 8px !important;
  }
  html body.woocommerce-cart .cart_item .product-quantity { grid-area: quantity; }
  html body.woocommerce-cart .cart_item .product-subtotal { grid-area: subtotal; text-align: right !important; font-size: 15px; font-weight: 700; }
  html body.woocommerce-cart .woocommerce-cart-form .cart_item .product-subtotal::before,
  html body.woocommerce-cart .woocommerce-cart-form .cart_item .product-quantity::before {
    display: block !important;
    float: none !important;
    content: attr(data-title);
    margin-bottom: 4px;
    color: #526a7a;
    font-size: 11px;
    font-weight: 600;
  }
  html body.woocommerce-cart .cart_item .quantity input.qty { min-height: 44px; max-width: 66px; }
  html body.woocommerce-cart .cart_item .product-subtotal small { display: block; font-size: 10px; font-weight: 500; }
  html body.woocommerce-cart .woocommerce-cart-form :is(tr:has(> td.actions), td.actions) {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  html body.woocommerce-cart .woocommerce-cart-form td.actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-block: 4px 0;
  }
  html body.woocommerce-cart .woocommerce-cart-form td.actions .coupon {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html body.woocommerce-cart .actions .coupon .coupon-error-notice { grid-column: 1 / -1; }
  html body.woocommerce-cart .actions .coupon :is(input, button),
  html body.woocommerce-cart .actions > button {
    box-sizing: border-box;
    min-width: 0 !important;
    min-height: 44px;
    margin: 0 !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
  html body.woocommerce-cart .cart_totals {
    padding: 14px !important;
    border: 1px solid #dce6ee;
    border-radius: 14px;
    background: #f5f8fa !important;
    color: #142b40;
  }
  html body.woocommerce-cart .cart_totals :is(th, td) { overflow-wrap: anywhere; }
  html body.woocommerce-cart .cart_totals select { min-width: 0 !important; max-width: 100% !important; }
  html body.woocommerce-cart .cart_totals .checkout-button { margin: 0 !important; border-radius: 9px !important; background: #142e43 !important; }
}

/* Checkout summary: reserve space for the image inside the product cell. */
.woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .product-name:has(> .pyv-checkout-thumbnail) {
  --pyv-checkout-thumbnail-size: 42px;
  position: relative;
  padding-inline-start: calc(var(--pyv-checkout-thumbnail-size) + 9px);
  min-block-size: calc(var(--pyv-checkout-thumbnail-size) + 24px);
}
.woocommerce-checkout #order_review .product-name > .pyv-checkout-thumbnail {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-start: 0;
  inline-size: var(--pyv-checkout-thumbnail-size);
  block-size: var(--pyv-checkout-thumbnail-size);
  box-sizing: border-box;
  object-fit: contain;
  background: #f2f6f8;
  border: 1px solid #dce6ee;
  border-radius: 7px;
}
@media (max-width: 480px) {
  .woocommerce-checkout #order_review .woocommerce-checkout-review-order-table .product-name:has(> .pyv-checkout-thumbnail) {
    --pyv-checkout-thumbnail-size: 36px;
  }
}

body.woocommerce-account .woocommerce {
  --account-ink: #142b40;
  --account-line: #dce6ee;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--account-ink);
}
body.woocommerce-account .woocommerce :is(.woocommerce-MyAccount-content, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) {
  box-sizing: border-box;
  min-width: 0;
  padding: clamp(16px, 3vw, 30px) !important;
  border: 1px solid var(--account-line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 4px 16px #142b400d;
  overflow-wrap: anywhere;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 6px;
  margin: 0 !important;
  padding: 8px !important;
  border: 1px solid var(--account-line);
  border-radius: 14px;
  background: #f3f7fa;
  list-style: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0 !important; border: 0 !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 11px 13px !important;
  border-radius: 8px;
  color: var(--account-ink) !important;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation .is-active > a { background: #142e43; color: #fff !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li:not(.is-active) a:hover { background: #e1edf3; }
body.woocommerce-account .woocommerce :is(button.button, a.button, input.button) {
  border-radius: 8px !important;
  background: #142e43 !important;
  color: #fff !important;
}
body.woocommerce-account .woocommerce :is(input.input-text, textarea, select) {
  max-width: 100%;
  border-color: #a8bdcb;
  border-radius: 8px !important;
}
@media (max-width: 768px) {
  body.woocommerce-account .woocommerce :is(.yith-proteo-my-account-sidebar, .woocommerce-MyAccount-navigation, .woocommerce-MyAccount-content) {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }
  body.woocommerce-account .woocommerce-MyAccount-navigation ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.woocommerce-account .woocommerce-MyAccount-content { margin-top: 12px !important; }
}

.single-product .woocommerce-product-gallery { opacity: 1 !important; }
.single-product .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image ~ .woocommerce-product-gallery__image { display: none; }
.single-product .flex-viewport .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image { display: block; }

#pyv-home-v04 .review-card { cursor: pointer; }
#pyv-home-v04 .review-card:focus-within { outline: 2px solid #08778d; outline-offset: 3px; }
.pyv-live-quote { display: none; }
@media (max-width: 768px) {
  .pyv-live-quote:not([hidden]) {
    display: block;
    box-sizing: border-box;
    position: fixed;
    inset: 0 12px auto;
    transform: translate3d(0, var(--pyv-quote-top, 0px), 0);
    z-index: 9000;
    width: auto;
    padding: 8px 12px;
    border: 1px solid #ccdce7;
    border-radius: 10px;
    background: #edf4f8;
    box-shadow: 0 -3px 18px #142b4020;
    color: #142b40;
    text-align: center;
    pointer-events: none;
  }
  .pyv-live-quote strong { display: block; font: 700 23px/1.15 'DM Sans', sans-serif; }
  .pyv-live-quote span { display: block; font: 500 11px/1.35 'DM Sans', sans-serif; }
}
