/* Focused storefront refinements introduced after the production audit. */

body.tax-product_cat .woocommerce-ordering::before,
body.post-type-archive-product .woocommerce-ordering::before,
body.search-results .woocommerce-ordering::before {
  content: "Ordenar por" !important;
}

body.single-product .summary .stock {
  color: #686000 !important;
}

.ms-product-assurances {
  order: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
  margin: 2px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(10, 102, 145, 0.12);
  color: #375d75;
  font-size: 0.86rem;
  list-style: none;
}

.ms-product-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ms-product-assurances li::before {
  color: var(--ms-yellow-500);
  content: "★";
  font-size: 0.72rem;
}

.ms-product-assurances a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-product-fallback-details {
  width: 100%;
  margin: 20px 0 8px;
  padding: 22px 24px;
  border-left: 4px solid var(--ms-yellow-400);
  background: rgba(255, 255, 255, 0.58);
}

.ms-product-fallback-details h2 {
  margin: 3px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.ms-product-fallback-details p:not(.ms-section__eyebrow) {
  max-width: 850px;
  margin: 0 0 10px;
  color: #375d75;
}

body.woocommerce-checkout .woocommerce .col2-set {
  display: block !important;
  width: 100%;
}

body.woocommerce-checkout .woocommerce .col2-set::after {
  display: table;
  clear: both;
  content: "";
}

body.woocommerce-checkout .woocommerce .col2-set .col-1,
body.woocommerce-checkout .woocommerce .col2-set .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.woocommerce-checkout #ship-to-different-address {
  margin: 18px 0 12px;
  font-size: 1rem;
  line-height: 1.35;
}

body.woocommerce-checkout #ship-to-different-address label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

body.woocommerce-checkout .shipping_address {
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 102, 145, 0.12);
}

.ms-no-results {
  display: grid;
  width: 100%;
  max-width: 920px;
  margin: 18px auto 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--ms-radius);
  background: linear-gradient(115deg, #0a6691, #0b8390);
  color: #fff;
  box-shadow: var(--ms-shadow-soft);
}

.ms-no-results__icon {
  color: var(--ms-yellow-400);
  font-size: 2rem;
  line-height: 1;
}

.ms-no-results h2 {
  margin: 4px 0 6px;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.ms-no-results p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
}

.ms-no-results__search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 660px;
}

.ms-no-results__search input {
  min-width: 0;
  border: 0;
  border-radius: 6px 0 0 6px;
}

.ms-no-results__search button {
  border: 0;
  border-radius: 0 6px 6px 0;
  background: var(--ms-yellow-400);
  color: var(--ms-blue-950);
}

.ms-no-results__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.ms-no-results__links a {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.ms-consent {
  position: fixed;
  z-index: 10010;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(255, 211, 52, 0.58);
  border-radius: 8px;
  background: #063c60;
  color: #fff;
  box-shadow: 0 18px 48px rgba(3, 26, 46, 0.3);
}

.ms-consent[hidden] {
  display: none !important;
}

.ms-consent__copy {
  min-width: 0;
}

.ms-consent__copy strong {
  color: var(--ms-yellow-400);
}

.ms-consent__copy p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1.4;
}

.ms-consent__copy a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ms-consent__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.ms-consent__actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.ms-consent__essential {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: transparent;
  color: #fff;
}

.ms-consent__accept {
  border: 1px solid var(--ms-yellow-400);
  background: var(--ms-yellow-400);
  color: var(--ms-blue-950);
}

.ms-404 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 38px;
  align-items: center;
  min-height: 54vh;
}

.ms-404__code {
  margin: 0;
  color: var(--ms-yellow-500);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.85;
}

.ms-404 h1 {
  margin: 12px 0 8px;
}

.ms-404__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

@media (max-width: 700px) {
  .ms-product-assurances {
    display: grid;
    gap: 7px;
    font-size: 0.82rem;
  }

  .ms-product-fallback-details {
    margin-top: 12px;
    padding: 18px;
  }

  .ms-no-results {
    padding: 22px 18px;
  }

  .ms-no-results__search {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ms-no-results__search input,
  .ms-no-results__search button {
    border-radius: 6px;
  }

  .ms-consent {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
  }

  .ms-consent__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ms-404 {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 42vh;
  }
}
@media (min-width: 701px) {
  .ms-store-menu > a {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .ms-store-menu > a + a::before {
    content: none !important;
  }

  .ms-menu-divider {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    width: 20px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .ms-menu-divider {
    display: none;
  }
}

/* Product page and recommendation carousels: compact, visible and touch-safe. */
body.single-product .ms-shop-main {
  padding-top: 6px !important;
}

body.single-product .ms-shop-main > .ms-container.ms-section {
  padding-top: 12px !important;
}

body.single-product .woocommerce-breadcrumb {
  margin-bottom: 12px !important;
}

body.single-product .ms-shop-main > .ms-container > div.product {
  grid-template-columns: minmax(270px, 430px) minmax(0, 1fr) !important;
  column-gap: clamp(20px, 3vw, 38px) !important;
  row-gap: 14px !important;
  padding: clamp(16px, 2.2vw, 26px) !important;
}

body.single-product .ms-shop-main > .ms-container > div.product .product_title {
  font-size: clamp(1.55rem, 2.15vw, 2.1rem) !important;
  line-height: 1.08 !important;
}

body.single-product .ms-shop-main > .ms-container > div.product .woocommerce-product-gallery img {
  max-height: 470px !important;
  padding: clamp(10px, 1.8vw, 18px) !important;
  transform: none !important;
}

body.single-product .woocommerce-product-gallery__trigger {
  top: 12px !important;
  right: 12px !important;
  z-index: 12 !important;
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  border-radius: 50% !important;
  background: rgba(6, 74, 114, 0.92) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(3, 26, 46, 0.18);
}

body.single-product .woocommerce-product-gallery__trigger::before {
  top: 11px !important;
  left: 11px !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #fff !important;
  background: transparent !important;
}

body.single-product .woocommerce-product-gallery__trigger::after {
  top: 25px !important;
  left: 25px !important;
  width: 8px !important;
  height: 2px !important;
  border: 0 !important;
  background: #fff !important;
  transform: rotate(45deg) !important;
  transform-origin: left center !important;
}

body.single-product .woocommerce-product-gallery__image a {
  cursor: zoom-in;
}

body.single-product .woocommerce-product-gallery__image a:hover img {
  transform: none !important;
}

body.single-product .woocommerce-product-gallery .zoomImg {
  display: none !important;
}

.ms-product-fallback-details {
  grid-column: 1 / -1 !important;
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(300px, 1.5fr) auto;
  gap: 8px 20px;
  align-items: center;
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border: 1px solid rgba(10, 102, 145, 0.12);
  border-left: 4px solid var(--ms-yellow-400);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.58);
}

.ms-product-fallback-details .ms-section__eyebrow,
.ms-product-fallback-details h2,
.ms-product-fallback-details p,
.ms-product-fallback-details a {
  margin: 0 !important;
}

.ms-product-fallback-details .ms-section__eyebrow {
  grid-column: 1;
}

.ms-product-fallback-details h2 {
  grid-column: 1;
  font-size: 1.05rem !important;
  line-height: 1.2;
}

.ms-product-fallback-details p:not(.ms-section__eyebrow) {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ms-product-fallback-details .ms-link-arrow {
  grid-column: 3;
  grid-row: 1 / span 2;
  white-space: nowrap;
}

.ms-commerce-carousel {
  padding-inline: 42px;
}

.ms-commerce-carousel__viewport {
  padding-top: 12px !important;
  padding-bottom: 18px !important;
  scroll-padding-inline: 8px;
}

.ms-commerce-carousel__viewport ul.products {
  margin-bottom: 0 !important;
  overflow: visible !important;
}

.ms-commerce-carousel__arrow {
  top: 29% !important;
  z-index: 20 !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 !important;
  border: 2px solid #fff !important;
  border-radius: 50% !important;
  background: var(--ms-blue-900) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.ms-commerce-carousel__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: auto;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  content: "";
}

.ms-commerce-carousel__arrow--prev::before {
  content: "\2039";
  transform: translate(-50%, -54%);
}

.ms-commerce-carousel__arrow--next::before {
  content: "\203a";
  transform: translate(-50%, -54%);
}

.ms-commerce-carousel__arrow:hover,
.ms-commerce-carousel__arrow:focus-visible {
  background: var(--ms-yellow-400) !important;
  color: var(--ms-blue-950) !important;
}

.ms-commerce-carousel__arrow--prev {
  left: 1px !important;
}

.ms-commerce-carousel__arrow--next {
  right: 1px !important;
}

.ms-commerce-carousel ul.products li.product,
.ms-commerce-carousel ul.products li.product .ms-product-thumb {
  overflow: visible !important;
}

.ms-commerce-carousel ul.products li.product .ms-new-product-badge,
.ms-commerce-carousel ul.products li.product .onsale {
  z-index: 24 !important;
}

body.home #novidades ul.products li.product .ms-new-product-badge {
  top: 0;
}

body.home #novidades ul.products li.product .ms-new-product-badge--with-sale {
  top: 38px;
}

.woocommerce-cart .ms-cart-recommendations {
  clear: both !important;
  position: relative;
  left: 50%;
  width: calc(100vw - 48px) !important;
  max-width: 1760px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: clamp(16px, 4vw, 48px) !important;
  padding-left: clamp(16px, 4vw, 48px) !important;
  transform: translateX(-50%);
}

.woocommerce-cart .ms-cart-recommendations ul.products {
  min-width: 100% !important;
  justify-content: center;
}

body.single-product .ms-shop-main > .ms-container > div.product > section.ms-related-products {
  margin-top: 12px !important;
}

body.single-product .ms-product-fallback-details {
  margin-bottom: 0 !important;
}

/* Keep WooCommerce PhotoSwipe connected to the page and add compact thumbnails. */
.pswp {
  background: transparent !important;
}

.pswp__bg {
  background: rgba(3, 26, 46, 0.76) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pswp__img {
  background: #fff;
  border-radius: 6px;
}

/* Reserve a real thumbnail lane so short screens never crop the gallery. */
.pswp__scroll-wrap {
  bottom: 78px;
  height: auto;
}

.pswp .pswp__button--arrow--left,
.pswp .pswp__button--arrow--right,
.pswp .pswp__button--close {
  position: fixed !important;
  z-index: 1700;
  width: 42px;
  height: 42px;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background-color: rgba(4, 46, 80, 0.9) !important;
  opacity: 1 !important;
  transform: none !important;
}

.pswp .pswp__button--arrow--left,
.pswp .pswp__button--arrow--right {
  color: #fff !important;
}

.pswp .pswp__button--arrow--left::before,
.pswp .pswp__button--arrow--right::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  margin: 0;
  background: none !important;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  transform: translate(-50%, -54%);
}

.pswp .pswp__button--arrow--left::before {
  content: "\2039";
}

.pswp .pswp__button--arrow--right::before {
  content: "\203a";
}

.pswp .pswp__button--arrow--left:hover,
.pswp .pswp__button--arrow--right:hover,
.pswp .pswp__button--close:hover,
.pswp .pswp__button--arrow--left:focus-visible,
.pswp .pswp__button--arrow--right:focus-visible,
.pswp .pswp__button--close:focus-visible {
  background-color: var(--ms-yellow-400) !important;
}

.pswp .pswp__button--arrow--left:hover,
.pswp .pswp__button--arrow--right:hover,
.pswp .pswp__button--arrow--left:focus-visible,
.pswp .pswp__button--arrow--right:focus-visible {
  color: var(--ms-blue-950) !important;
}

.ms-pswp-thumbnails {
  position: fixed;
  right: auto;
  bottom: 10px;
  left: 12px;
  z-index: 1600;
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  pointer-events: auto;
}

.ms-pswp-thumbnail {
  width: 58px;
  height: 58px;
  padding: 3px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(3, 26, 46, 0.24);
  cursor: pointer;
  opacity: 0.72;
}

.ms-pswp-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ms-pswp-thumbnail.is-active {
  border-color: var(--ms-yellow-400);
  opacity: 1;
}

.ms-recently-viewed .ms-section__header {
  margin-bottom: 14px !important;
  padding: 14px 18px !important;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ms-blue-800), #0b8291);
}

.ms-recently-viewed .ms-section__header .ms-section__eyebrow {
  color: var(--ms-yellow-400) !important;
}

.ms-recently-viewed .ms-section__header h2 {
  color: #fff !important;
}

body.woocommerce-cart .ms-main {
  padding-top: 0 !important;
}

body.woocommerce-cart .ms-main > .ms-container.ms-section {
  padding-top: 12px !important;
  padding-bottom: 24px !important;
}

body.woocommerce-cart .ms-main h1 {
  margin: 0 0 12px !important;
  font-size: clamp(1.8rem, 2.5vw, 2.15rem) !important;
  line-height: 1.05;
}

body.woocommerce-cart table.cart th,
body.woocommerce-cart table.cart td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body.woocommerce-cart table.cart td.product-thumbnail img {
  width: 68px !important;
  height: 68px !important;
}

body.woocommerce-cart table.cart td.actions {
  padding: 10px 12px !important;
}

body.woocommerce-cart .cart-collaterals {
  margin-top: 12px !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals {
  padding: 14px !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals h2 {
  margin: 0 0 8px !important;
  font-size: clamp(1.45rem, 2.2vw, 1.8rem) !important;
}

body.woocommerce-cart .cart-collaterals .cart_totals table th,
body.woocommerce-cart .cart-collaterals .cart_totals table td {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
  padding: 10px 0 0 !important;
}

.ms-footer__social {
  gap: 5px !important;
  justify-content: flex-start;
  vertical-align: middle;
}

.ms-footer__social svg {
  flex: 0 0 19px;
  margin: 0 !important;
}

.ms-footer__social span {
  line-height: 19px;
}

@media (max-width: 700px) {
  body.single-product .ms-shop-main {
    padding-top: 4px !important;
  }

  body.single-product .ms-shop-main > .ms-container.ms-section {
    padding-top: 8px !important;
  }

  body.single-product .ms-shop-main > .ms-container > div.product {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    padding: 10px !important;
  }

  body.single-product .ms-shop-main > .ms-container > div.product .product_title {
    font-size: 1.45rem !important;
  }

  body.single-product .ms-shop-main > .ms-container > div.product .woocommerce-product-gallery img {
    max-height: 390px !important;
    padding: 8px !important;
  }

  .ms-product-fallback-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 12px;
    padding: 12px 14px !important;
  }

  .ms-product-fallback-details .ms-section__eyebrow,
  .ms-product-fallback-details h2,
  .ms-product-fallback-details p:not(.ms-section__eyebrow) {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .ms-product-fallback-details .ms-link-arrow {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 3px !important;
  }

  .ms-commerce-carousel {
    padding-inline: 30px !important;
  }

  .ms-commerce-carousel__viewport {
    padding-top: 10px !important;
    padding-right: 4px !important;
    padding-bottom: 15px !important;
    padding-left: 4px !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
  }

  .ms-commerce-carousel__arrow {
    top: 31% !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  .woocommerce-cart .ms-cart-recommendations {
    width: calc(100vw - 16px) !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
  }

  .ms-pswp-thumbnails {
    right: auto;
    bottom: 8px;
    left: 12px;
    gap: 6px;
  }

  .pswp__scroll-wrap {
    bottom: 70px;
  }

  .ms-pswp-thumbnail {
    width: 48px;
    height: 48px;
  }

  .ms-recently-viewed .ms-section__header {
    padding: 12px 14px !important;
  }

  body.woocommerce-cart .ms-main > .ms-container.ms-section {
    padding-top: 8px !important;
    padding-bottom: 16px !important;
  }

  body.woocommerce-cart .ms-main h1 {
    margin: 0 0 9px !important;
    font-size: 1.75rem !important;
  }
}

/* Mobile commerce rails should use the viewport, not inherit stacked container gutters. */
@media (max-width: 700px) {
  .ms-related-products,
  .ms-recently-viewed,
  .woocommerce-cart .ms-cart-recommendations {
    position: relative;
    left: 50%;
    box-sizing: border-box;
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 6px !important;
    padding-left: 6px !important;
    transform: translateX(-50%);
  }

  .ms-related-products .ms-section__header,
  .ms-recently-viewed .ms-section__header,
  .woocommerce-cart .ms-cart-recommendations .ms-section__header {
    padding-right: 8px !important;
    padding-left: 8px !important;
  }

  .ms-related-products .ms-commerce-carousel,
  .ms-recently-viewed .ms-commerce-carousel,
  .woocommerce-cart .ms-cart-recommendations .ms-commerce-carousel {
    box-sizing: border-box;
    width: 100% !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  .ms-related-products .ms-commerce-carousel__viewport,
  .ms-recently-viewed .ms-commerce-carousel__viewport,
  .woocommerce-cart .ms-cart-recommendations .ms-commerce-carousel__viewport {
    box-sizing: border-box;
    width: 100% !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    scroll-padding-inline: 0;
  }

  .ms-related-products .ms-commerce-carousel ul.products,
  .ms-recently-viewed .ms-commerce-carousel ul.products,
  .woocommerce-cart .ms-cart-recommendations .ms-commerce-carousel ul.products {
    gap: 12px !important;
    justify-content: flex-start;
  }

  .ms-related-products .ms-commerce-carousel ul.products li.product,
  .ms-recently-viewed .ms-commerce-carousel ul.products li.product,
  .woocommerce-cart .ms-cart-recommendations .ms-commerce-carousel ul.products li.product {
    flex: 0 0 calc((100vw - 64px) / 2) !important;
    width: calc((100vw - 64px) / 2) !important;
    max-width: calc((100vw - 64px) / 2) !important;
  }
}

/* Single product: keep one working shipping quote below the purchase actions. */
body.single-product .summary .woo-better-parent-container {
  order: 15 !important;
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin: 8px 0 12px !important;
  padding: 12px 18px !important;
  border: 0 !important;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: none;
}

body.single-product .summary .woo-better-parent-container::before {
  content: "Simulação de frete";
  display: block;
  margin: 0 0 8px;
  color: var(--ms-blue-950);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.25;
}

body.single-product .summary .woo-better-container-current-style,
body.single-product .summary .woo-better-input-button-group-current-style {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

body.single-product .summary .woo-better-input-button-group-current-style {
  gap: 8px !important;
}

body.single-product .summary .woo-better-input-wrapper-current-style {
  min-width: 0;
  flex: 1 1 auto !important;
}

body.single-product .summary .woo-better-input-current-style {
  min-height: 44px !important;
  border-color: rgba(9, 111, 154, 0.24) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.single-product .summary .woo-better-button-current-style {
  min-width: 112px !important;
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0d7fac, #075a86) !important;
  color: #fff !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 16px rgba(5, 91, 132, 0.16) !important;
}

body.single-product .summary .woo-better-button-current-style:hover,
body.single-product .summary .woo-better-button-current-style:focus {
  background: linear-gradient(135deg, #108dba, #067a9a) !important;
}

body.single-product .summary .woo-better-info-block {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .summary .woo-better-current-postcode-block {
  min-height: 34px;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 10px 7px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .summary .woo-better-content-block {
  margin-top: 0 !important;
  padding: 8px 10px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .summary .woo-better-toggle-postcode-wrapper {
  flex: 0 0 auto !important;
  width: auto !important;
  gap: 8px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.single-product .summary .woo-better-toggle-button {
  align-self: center;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

body.single-product .summary .woo-better-change-postcode-button {
  align-self: center;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 0 4px !important;
  padding: 2px 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

body.single-product .summary .woo-better-shipping-list {
  margin-bottom: 8px !important;
}

body.single-product .summary .woo-better-shipping-list li {
  padding-block: 3px !important;
  line-height: 1.35 !important;
}

body.single-product .summary .woo-better-update-section {
  margin-top: 5px !important;
  padding: 8px 10px !important;
}

body.single-product .summary .woo-better-update-icon-container {
  box-shadow: none !important;
  filter: none !important;
}

body.single-product .summary .woo-better-info-text,
body.single-product .summary .woo-better-update-date {
  margin: 0 !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}

body.single-product.ms-single-shipping-ready .summary form.cart #woocommerce-correios-calculo-de-frete-na-pagina-do-produto,
body.single-product.ms-single-shipping-ready .summary form.cart .containerCalculator {
  display: none !important;
}

@media (max-width: 700px) {
  body.single-product .summary .woo-better-parent-container {
    margin-top: 6px !important;
    padding: 10px 14px !important;
  }

  body.single-product .summary .woo-better-input-button-group-current-style {
    align-items: stretch !important;
  }

  body.single-product .summary .woo-better-button-current-style {
    min-width: 96px !important;
    padding-inline: 12px !important;
  }
}

/* Final mobile rail width: escape the product/cart content gutter cleanly. */
@media (max-width: 700px) {
  body.single-product .ms-shop-main > .ms-container > div.product > section.ms-related-products,
  body.single-product .ms-shop-main > .ms-container > div.product > section.ms-recently-viewed,
  body.woocommerce-cart .ms-main section.ms-cart-recommendations {
    left: 50% !important;
    box-sizing: border-box !important;
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 4px !important;
    padding-left: 4px !important;
    transform: translateX(-50%) !important;
  }

  body.single-product section.ms-commerce-section .ms-commerce-carousel,
  body.woocommerce-cart section.ms-cart-recommendations .ms-commerce-carousel {
    width: 100% !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
  }

  body.single-product section.ms-commerce-section .ms-commerce-carousel__viewport,
  body.woocommerce-cart section.ms-cart-recommendations .ms-commerce-carousel__viewport {
    width: 100% !important;
    padding-right: 0 !important;
    padding-bottom: 18px !important;
    padding-left: 0 !important;
  }

  body.single-product section.ms-commerce-section .ms-commerce-carousel ul.products li.product,
  body.woocommerce-cart section.ms-cart-recommendations .ms-commerce-carousel ul.products li.product {
    flex: 0 0 calc((100vw - 52px) / 2) !important;
    width: calc((100vw - 52px) / 2) !important;
    max-width: calc((100vw - 52px) / 2) !important;
  }
}
