/* Final production contract for every storefront modal. */
/* Cookie consent is a global overlay: compact banner first, settings modal on
   demand. This is the sole base contract for both states. */
html body.wg-cookie-open {
  overflow: hidden;
}

html body .wg-cookies {
  position: fixed;
  z-index: 1600;
  inset: auto 0 0;
  display: block;
  padding: 0;
  color: #fff;
  background: transparent;
  box-shadow: none;
}

html body .wg-cookies.is-visible {
  animation: none;
  transform: none;
}

html body .wg-cookies__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 42, 90, .62);
}

html body .wg-cookies__settings {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--wg-ink);
}

html body .wg-cookies__panel {
  position: relative;
  display: flex;
  width: 640px;
  max-width: calc(100% - 48px);
  box-sizing: border-box;
  padding: 36px;
  flex-direction: column;
  gap: 18px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 20, 44, .28);
}

html body .wg-cookies__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wg-line);
  border-radius: 50%;
  background: #fff;
  color: var(--wg-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

html body .wg-cookies__heading {
  display: flex;
  padding-right: 35px;
  align-items: center;
  gap: 14px;
}

html body .wg-cookies__heading img {
  width: 52px;
  height: 52px;
}

html body .wg-cookies__heading h2 {
  margin: 0;
  color: var(--wg-ink);
  font: 700 30px/1.05 'Barlow Condensed', sans-serif;
}

html body .wg-cookies__lead {
  margin: 0;
  color: var(--wg-muted);
  font-size: 15px;
  line-height: 1.6;
}

html body .wg-cookies__option {
  display: flex;
  padding: 14px 0;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid var(--wg-line);
}

html body .wg-cookies__option > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

html body .wg-cookies__option small {
  color: var(--wg-muted);
  font-size: 13px;
}

html body .wg-cookie-switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  flex: 0 0 48px;
  border: 0;
  border-radius: 999px;
  background: #c9d3e3;
  cursor: pointer;
}

html body .wg-cookie-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: left .18s;
}

html body .wg-cookie-switch.is-on {
  background: #1e7a4c;
}

html body .wg-cookie-switch.is-on i {
  left: 23px;
}

html body .wg-cookie-switch.is-locked {
  opacity: .6;
  cursor: default;
}

html body .wg-cookies__actions {
  display: flex;
  justify-content: flex-end;
}

html body .wg-cookies__btn {
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
}

html body .wg-cookies__btn--ghost {
  border: 1px solid var(--wg-line);
  background: #fff;
  color: var(--wg-primary-dark);
}

html body .wg-cookies__btn--primary {
  border: 1px solid var(--wg-primary);
}

html body .wg-cookies__policy {
  align-self: flex-start;
  color: var(--wg-primary-dark);
  font-size: 13px;
}

html body .wg-cookies__banner {
  display: flex;
  min-height: 92px;
  padding: 18px max(24px, calc((100vw - 1256px) / 2));
  align-items: center;
  gap: 28px;
  background: rgba(10, 26, 54, .98);
  box-shadow: 0 -12px 36px rgba(10, 26, 54, .24);
}

html body .wg-cookies__banner[hidden],
html body .wg-cookies__settings[hidden] {
  display: none !important;
}

html body .wg-cookies__banner-copy {
  min-width: 0;
  flex: 1 1 460px;
}

html body .wg-cookies__banner-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
}

html body .wg-cookies__banner-copy p {
  margin: 4px 0 0;
  color: #c9d7ee;
  font-size: 13px;
  line-height: 1.45;
}

html body .wg-cookies__banner-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

html body .wg-cookies__banner .wg-cookies__btn {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 13px;
}

html body .wg-cookies__banner .wg-cookies__btn--ghost {
  border-color: rgba(255, 255, 255, .38);
  background: transparent;
  color: #fff;
}

/* Add-to-cart modal uses this one shared structure on every route. */
html body #blockcart-modal.wg-cart-modal .modal-content {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__close {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__top {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__product {
  padding: 32px;
  border-right: 1px solid var(--wg-line);
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__product h4 {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: #1e7a4c;
  font-size: 17px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__product h4 i {
  font-size: 22px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__product-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__image {
  display: grid;
  width: 120px;
  height: 120px;
  flex: 0 0 120px;
  place-items: center;
  border-radius: 10px;
  background: var(--wg-hero-tint);
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__image img {
  max-width: 90px;
  max-height: 105px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__name {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__meta {
  display: block;
  margin: 2px 0;
  color: var(--wg-muted);
  font-size: 14px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__price {
  display: block;
  margin-top: 8px;
  color: var(--wg-red);
  font: 700 24px/1 'Barlow Condensed', sans-serif;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary {
  display: flex;
  padding: 32px;
  flex-direction: column;
  gap: 12px;
  background: var(--wg-surface);
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary p {
  margin: 0 0 2px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > div {
  display: flex;
  justify-content: space-between;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__total {
  padding-top: 12px;
  border-top: 1px solid var(--wg-line);
  font-size: 18px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__total strong {
  font: 700 30px/1 'Barlow Condensed', sans-serif;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary .btn {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__footer:empty {
  display: none;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__footer:not(:empty) {
  padding: 24px 32px;
  border-top: 1px solid var(--wg-line);
}

@media (max-width: 767px) {
  html body .wg-cookies__panel {
    max-width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 24px 20px;
    gap: 12px;
    overflow: auto;
  }

  html body .wg-cookies__heading h2 {
    font-size: 25px;
  }

  html body .wg-cookies__actions {
    flex-direction: column;
  }

  html body .wg-cookies__btn {
    width: 100%;
  }

  html body .wg-cookies__banner {
    min-height: 0;
    padding: 14px 16px;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  html body .wg-cookies__banner-copy {
    flex-basis: auto;
  }

  html body .wg-cookies__banner-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  html body .wg-cookies__banner-actions .wg-cookies__btn--primary {
    grid-row: 1;
    grid-column: 1 / -1;
  }

  html body .wg-cookies__banner .wg-cookies__btn {
    width: 100%;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__top {
    grid-template-columns: 1fr;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__product {
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid var(--wg-line);
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary {
    padding: 24px;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__image {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
  }
}

html body.modal-open {
  overflow: hidden !important;
}

html body:has(.modal.in),
html body:has(.modal.show) {
  overflow: hidden !important;
}

/* The checkout modal is rendered inside #footer. Mobile checkout hides that
   footer, so expose its containing block only while an overlay is active. */
@media (max-width: 575px) {
  html body#checkout.modal-open #footer {
    display: block !important;
  }
}

html body .modal.in,
html body .modal.show {
  z-index: 2200 !important;
  padding-right: 0 !important;
  background: transparent !important;
}

html body > .modal-backdrop.in,
html body > .modal-backdrop.show,
html body .wishlist-add-to > .modal-backdrop.in,
html body .wishlist-delete > .modal-backdrop.in,
html body .wishlist-create > .modal-backdrop.in,
html body .wishlist-login > .modal-backdrop.in {
  z-index: 2190 !important;
  background: #0e2a5a !important;
  opacity: .56 !important;
}

html body .modal .modal-content {
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 24px rgba(10, 28, 58, .2) !important;
}

html body .modal button.close,
html body .modal .wg-cart-modal__close,
html body .modal .wg-gallery-modal__close {
  display: grid !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 50% !important;
  background: #fff !important;
  color: #13213d !important;
  font-size: 28px !important;
  line-height: 1 !important;
  opacity: 1 !important;
}

/* Quick view — 1040 × 570 desktop artboard. */
@media (min-width: 992px) {
  html body .quickview.modal .modal-dialog {
    width: 1040px !important;
    max-width: calc(100vw - 48px) !important;
    height: 570px !important;
    min-height: 0 !important;
    max-height: calc(100vh - 48px) !important;
    margin: max(24px, calc((100vh - 570px) / 2)) auto !important;
  }

  html body .quickview.modal .modal-content,
  html body .quickview.modal .modal-body,
  html body .quickview.modal .modal-body > .row {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
  }

  html body .quickview.modal .modal-content {
    overflow: hidden !important;
  }

  html body .quickview.modal .modal-header {
    position: absolute !important;
    z-index: 5 !important;
    top: 14px !important;
    right: 14px !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body .quickview.modal .modal-body {
    padding: 0 !important;
  }

  html body .quickview.modal .modal-body > .row {
    display: grid !important;
    grid-template-columns: 480px minmax(0, 1fr) !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-'] {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:first-child {
    position: relative !important;
    display: flex !important;
    padding: 28px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eaf2fd !important;
  }

  html body .quickview.modal .product-cover,
  html body .quickview.modal .product-cover picture {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html body .quickview.modal .product-cover img {
    width: auto !important;
    max-width: 260px !important;
    height: auto !important;
    max-height: 390px !important;
    object-fit: contain !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child {
    display: flex !important;
    padding: 38px 40px 26px !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }

  html body .quickview.modal .product-prices {
    order: 3 !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html body .quickview.modal #product-description-short {
    order: 4 !important;
    max-height: 24px !important;
    margin: 0 0 14px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 1 !important;
  }

  html body .quickview.modal .wg-qv-brand {
    order: 1 !important;
    margin-bottom: 10px !important;
  }

  html body .quickview.modal h1.h1 {
    order: 2 !important;
    margin-bottom: 10px !important;
  }

  html body .quickview.modal .product-quickview-review {
    order: 5 !important;
    margin: 0 0 16px !important;
  }

  html body .quickview.modal .product-actions {
    order: 6 !important;
    margin-top: 0 !important;
  }

  html body .quickview.modal .wg-qv-stock {
    order: 7 !important;
  }

  html body .quickview.modal .wg-qv-full {
    order: 8 !important;
  }

  html body .quickview.modal .wg-quickview-flags {
    position: absolute !important;
    z-index: 3 !important;
    top: 18px !important;
    left: 18px !important;
  }

  html body .quickview.modal .wg-quickview-flags .product-flags {
    position: static !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  html body .quickview.modal .wg-quickview-flags .product-flag {
    position: static !important;
    width: fit-content !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    line-height: 14px !important;
  }

  html body .quickview.modal .wg-quickview-flags .product-flag:not(.discount) {
    display: none !important;
  }

  html body .quickview.modal .product-quantity {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 108px minmax(0, 1fr) 48px !important;
    gap: 10px !important;
    align-items: stretch !important;
  }

  html body .quickview.modal .product-quantity > .qty,
  html body .quickview.modal .product-quantity > .add,
  html body .quickview.modal .product-quantity > .wishlist-button {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    height: 46px !important;
    margin: 0 !important;
  }

  html body .quickview.modal .product-quantity > .add .add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 46px !important;
    padding: 0 12px !important;
    overflow: hidden !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
  }

  html body .quickview.modal .product-quantity .wg-atc-price {
    display: inline !important;
  }

  html body .quickview.modal .product-quantity > .wishlist-button,
  html body .quickview.modal .wg-quickview-wishlist {
    width: 44px !important;
    height: 44px !important;
  }

  html body .quickview.modal .modal-footer,
  html body .quickview.modal .product-images,
  html body .quickview.modal .arrows {
    display: none !important;
  }
}

/* Content order is identical on desktop and mobile. Native quick-view hooks
   append the review widget after the short description, so order the visible
   regions explicitly instead of relying on hook insertion order. */
html body .quickview.modal .wg-qv-brand { order: 1 !important; }
html body .quickview.modal h1.h1 { order: 2 !important; }
html body .quickview.modal .product-quickview-review {
  order: 5 !important;
  margin: 0 0 14px !important;
}
html body .quickview.modal #product-description-short {
  order: 4 !important;
  margin: 0 0 14px !important;
}
html body .quickview.modal .product-prices {
  order: 3 !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body .quickview.modal .product-prices .wg-price-badge {
  display: inline-flex !important;
  min-height: 28px !important;
  margin-left: 10px !important;
  padding: 5px 9px !important;
  align-items: center !important;
  border-radius: 6px !important;
  background: #d2263d !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
html body .quickview.modal .product-actions {
  order: 6 !important;
  margin-top: 0 !important;
}
html body .quickview.modal .wg-qv-stock { order: 7 !important; }
html body .quickview.modal .wg-qv-full { order: 8 !important; }

@media (min-width: 992px) {
  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) {
    padding: 28px 40px 16px !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) h1.h1 {
    margin-bottom: 4px !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) .product-prices {
    margin-bottom: 8px !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) .wg-mailalert {
    margin: 8px 0 !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) .wg-qv-stock,
  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child:has(.wg-mailalert) .wg-qv-full {
    margin-top: 5px !important;
  }
}

html body .quickview.modal .wg-quickview-wishlist {
  display: grid !important;
  width: 48px !important;
  height: 52px !important;
  padding: 0 !important;
  place-items: center !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #13213d !important;
  font: 400 30px/1 Arial, sans-serif !important;
  cursor: pointer !important;
}

html body .quickview.modal .wg-quickview-wishlist:hover,
html body .quickview.modal .wg-quickview-wishlist:focus-visible {
  border-color: #2a6bd1 !important;
  color: #2a6bd1 !important;
}

@media (min-width: 992px) {
  html body .quickview.modal .product-quantity > .wishlist-button,
  html body .quickview.modal .product-quantity > .wishlist-button .wg-quickview-wishlist {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
  }
}

/* Unavailable quick view: keep the notification form and final actions in
 * their own rows. The regular quantity grid has three columns and otherwise
 * places the wishlist control on top of the disabled purchase button. */
html body .quickview.modal .wg-mailalert {
  width: 100% !important;
  margin: 14px 0 12px !important;
}

html body .quickview.modal .wg-mailalert__title {
  margin: 0 0 8px !important;
  color: #536586 !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
}

html body .quickview.modal .wg-mailalert .js-mailalert {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 166px !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 0 !important;
}

html body .quickview.modal .wg-mailalert .js-mailalert input[type='email'],
html body .quickview.modal .wg-mailalert .js-mailalert button {
  width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  margin: 0 !important;
}

html body .quickview.modal .wg-mailalert .js-mailalert button {
  padding-inline: 12px !important;
  font-size: 13px !important;
  white-space: nowrap !important;
}

html body .quickview.modal .wg-mailalert__consent {
  display: flex !important;
  gap: 9px !important;
  margin: 10px 0 0 !important;
  align-items: center !important;
  color: #13213d !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html body .quickview.modal .wg-mailalert__consent input[type='checkbox'] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  flex: 0 0 18px !important;
  accent-color: #2f6fd5 !important;
}

html body .quickview.modal .product-quantity.wg-unavailable-actions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 52px !important;
  gap: 12px !important;
  width: 100% !important;
  height: 52px !important;
  margin: 0 !important;
  align-items: stretch !important;
}

html body .quickview.modal .wg-unavailable-actions > .add,
html body .quickview.modal .wg-unavailable-actions > .wishlist-button,
html body .quickview.modal .wg-unavailable-actions .wishlist-button-add,
html body .quickview.modal .wg-unavailable-actions .wishlist-button-product {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  min-width: 0 !important;
  height: 52px !important;
  margin: 0 !important;
}

html body .quickview.modal .wg-unavailable-actions > .add,
html body .quickview.modal .wg-unavailable-actions > .add .add-to-cart {
  width: 100% !important;
  height: 52px !important;
}

html body .quickview.modal .wg-unavailable-actions > .wishlist-button,
html body .quickview.modal .wg-unavailable-actions .wishlist-button-add,
html body .quickview.modal .wg-unavailable-actions .wishlist-button-product,
html body .quickview.modal .wg-unavailable-actions .wg-quickview-wishlist {
  grid-column: 2 !important;
  width: 52px !important;
  height: 52px !important;
}

/* Cart modal keeps one readable surface and scrolls inside the viewport. */
html body #blockcart-modal.wg-cart-modal .modal-dialog {
  width: 1000px !important;
  max-width: calc(100vw - 48px) !important;
  margin: max(24px, 8vh) auto !important;
}

html body #blockcart-modal.wg-cart-modal .modal-content {
  max-height: calc(100dvh - 48px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping {
  display: flex !important;
  width: 100% !important;
  padding: 14px 16px !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 12px !important;
  background: #f5f8fe !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping p {
  display: flex !important;
  margin: 0 !important;
  align-items: center !important;
  gap: 8px !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping .material-icons {
  color: #2a6bd1 !important;
  font-size: 18px !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping--ready p {
  color: #1e7a4c !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping-track {
  display: block !important;
  width: 100% !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  background: #dce5f2 !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping-track > span {
  display: block !important;
  height: 100% !important;
  border-radius: inherit !important;
  background: #2a6bd1 !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > .btn {
  gap: 8px !important;
  text-transform: none !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > .btn .material-icons {
  font-size: 17px !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__price del {
  margin-left: 8px !important;
  color: #7e8ca5 !important;
  font: 400 14px/1.2 Arial, sans-serif !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__price:has(del) {
  color: #c6283d !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal__footer:not(:empty) {
  padding: 20px 32px 24px !important;
  border-top: 1px solid #dce5f2 !important;
  background: #fff !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-recs h5 {
  margin: 0 0 14px !important;
  color: #13213d !important;
  font: 700 20px/1.1 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-recs__grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-rec {
  display: grid !important;
  min-width: 0 !important;
  padding: 9px !important;
  align-items: center !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 9px !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 10px !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-rec__image {
  display: grid !important;
  width: 52px !important;
  height: 52px !important;
  place-items: center !important;
  border-radius: 8px !important;
  background: #EAF2FD !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-rec__image img {
  width: auto !important;
  max-width: 44px !important;
  height: auto !important;
  max-height: 44px !important;
  object-fit: contain !important;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-rec__name {
  display: -webkit-box !important;
  margin-bottom: 4px !important;
  overflow: hidden !important;
  color: #13213d !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

html body #blockcart-modal.wg-cart-modal .wg-cart-modal-rec__body strong {
  color: #c6283d !important;
  font-size: 14px !important;
}

@media (max-width: 767px) {
  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__footer:not(:empty) {
    padding: 18px !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal-recs__grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping {
    padding: 12px !important;
    border-radius: 10px !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping p {
    gap: 7px !important;
    font-size: 12px !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__shipping-track {
    height: 6px !important;
    flex-basis: 6px !important;
  }
}

/* Desktop cart modal follows the approved 1000 x 600 composition: the dialog
   is vertically centred, the recommendation strip stays inside the surface,
   and the secondary action remains visually secondary. */
@media (min-width: 992px) {
  html body #blockcart-modal.wg-cart-modal .modal-dialog {
    height: min(600px, calc(100dvh - 48px)) !important;
    margin: max(24px, calc((100dvh - 600px) / 2)) auto !important;
  }

  html body #blockcart-modal.wg-cart-modal .modal-content {
    display: flex !important;
    height: 100% !important;
    max-height: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__top {
    grid-template-columns: 540px minmax(0, 1fr) !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__footer:not(:empty) {
    flex: 0 0 auto !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > .btn-secondary {
    border: 1px solid #2a6bd1 !important;
    background: #fff !important;
    color: #1d52a8 !important;
  }

  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > .btn-secondary:hover,
  html body #blockcart-modal.wg-cart-modal .wg-cart-modal__summary > .btn-secondary:focus-visible {
    border-color: #12356d !important;
    background: #f5f8fe !important;
    color: #12356d !important;
  }
}

/* Gallery is a real lightbox, not a nested small card. */
html body #product-modal .modal-dialog {
  width: min(1040px, calc(100vw - 48px)) !important;
  max-width: 1040px !important;
  height: min(820px, calc(100dvh - 48px)) !important;
  margin: 24px auto !important;
}

html body #product-modal .modal-content,
html body #product-modal .modal-body {
  width: 100% !important;
  height: 100% !important;
}

/* Product-comment confirmations and errors are compact dialogs, not banners
   pinned to the top edge of the viewport. */
html body :is(
  #product-comment-posted-modal,
  #product-comment-post-error,
  #report-comment-confirmation,
  #report-comment-posted,
  #report-comment-post-error,
  #update-comment-usefulness-post-error
).modal.in,
html body :is(
  #product-comment-posted-modal,
  #product-comment-post-error,
  #report-comment-confirmation,
  #report-comment-posted,
  #report-comment-post-error,
  #update-comment-usefulness-post-error
).modal.show {
  display: flex !important;
  padding: 24px !important;
  align-items: center !important;
  justify-content: center !important;
}

html body :is(
  #product-comment-posted-modal,
  #product-comment-post-error,
  #report-comment-confirmation,
  #report-comment-posted,
  #report-comment-post-error,
  #update-comment-usefulness-post-error
) .modal-dialog {
  width: 620px !important;
  max-width: 100% !important;
  margin: 0 !important;
}

html body :is(
  #product-comment-posted-modal,
  #product-comment-post-error,
  #report-comment-confirmation,
  #report-comment-posted,
  #report-comment-post-error,
  #update-comment-usefulness-post-error
) .modal-content {
  max-height: calc(100dvh - 48px) !important;
  overflow: auto !important;
}

/* Checkout terms — CMS content is injected outside body#cms, so it needs its
   own complete modal contract instead of inheriting the raw document markup. */
html body#checkout #modal .modal-dialog {
  width: 680px !important;
  max-width: calc(100vw - 48px) !important;
  height: min(820px, calc(100dvh - 48px)) !important;
  margin: 24px auto !important;
}

html body#checkout #modal .modal-content {
  position: relative !important;
  height: 100% !important;
  overflow: hidden !important;
}

html body#checkout #modal .modal-header {
  position: absolute !important;
  z-index: 5 !important;
  top: 14px !important;
  right: 14px !important;
  width: 44px !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

html body#checkout #modal .modal-header .modal-title {
  display: none !important;
}

html body#checkout #modal .js-modal-content {
  height: 100% !important;
  padding: 48px 44px 40px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
}

html body#checkout #modal .wg-legal {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body#checkout #modal .wg-legal__head {
  margin: 0 64px 26px 0 !important;
}

html body#checkout #modal .wg-legal__head h1 {
  margin: 0 0 7px !important;
  color: #13213d !important;
  font: 700 42px/1.02 "Barlow Condensed", "Arial Narrow", sans-serif !important;
  letter-spacing: -.02em !important;
}

html body#checkout #modal .wg-legal__head p {
  margin: 0 !important;
  color: #52617d !important;
  font-size: 13px !important;
}

html body#checkout #modal .wg-legal__layout {
  display: block !important;
}

html body#checkout #modal .wg-legal__toc {
  position: static !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px 8px !important;
  margin: 0 0 28px !important;
  padding: 16px !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 14px !important;
  background: #f5f8fe !important;
}

html body#checkout #modal .wg-legal__toc > strong {
  grid-column: 1 / -1 !important;
  padding: 0 4px 8px !important;
  color: #52617d !important;
  font: 600 10px/1.2 "JetBrains Mono", monospace !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

html body#checkout #modal .wg-legal__toc a {
  display: flex !important;
  min-height: 34px !important;
  padding: 7px 9px !important;
  align-items: center !important;
  border-radius: 8px !important;
  color: #13213d !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

html body#checkout #modal .wg-legal__toc a:hover,
html body#checkout #modal .wg-legal__toc a:focus-visible {
  background: #eaf2fd !important;
  color: #1d52a8 !important;
}

html body#checkout #modal .wg-legal__toc button {
  grid-column: 1 / -1 !important;
  height: 42px !important;
  margin: 7px 0 0 !important;
  border: 1px solid #cdd9e9 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #1d52a8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

html body#checkout #modal .wg-legal__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

html body#checkout #modal .wg-legal__body section {
  margin: 0 !important;
  padding: 0 !important;
  scroll-margin-top: 20px !important;
}

html body#checkout #modal .wg-legal__body h2 {
  margin: 0 0 10px !important;
  color: #13213d !important;
  font: 700 27px/1.1 "Barlow Condensed", "Arial Narrow", sans-serif !important;
}

html body#checkout #modal .wg-legal__body p,
html body#checkout #modal .wg-legal__body li {
  color: #13213d !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

html body#checkout #modal .wg-legal__body ol {
  margin: 10px 0 0 !important;
  padding-left: 22px !important;
}

html body#checkout #modal .wg-legal__notice {
  margin: -2px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  background: #eaf2fd !important;
  color: #1d52a8 !important;
}

html body#checkout #modal .wg-legal__table {
  overflow: hidden !important;
  border: 1px solid #dce5f2 !important;
  border-radius: 12px !important;
  background: #fff !important;
}

html body#checkout #modal .wg-legal__table > div {
  display: grid !important;
  grid-template-columns: 2fr .8fr .7fr !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  align-items: center !important;
  gap: 10px !important;
  border-bottom: 1px solid #dce5f2 !important;
  font-size: 12px !important;
}

html body#checkout #modal .wg-legal__table > div:first-child {
  min-height: 40px !important;
  background: #f5f8fe !important;
  color: #52617d !important;
  font: 600 9px/1.2 "JetBrains Mono", monospace !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

html body#checkout #modal .wg-legal__table > div:last-child {
  border-bottom: 0 !important;
}

@media print {
  html body.wg-printing-legal * {
    visibility: hidden !important;
  }

  html body.wg-printing-legal .wg-legal,
  html body.wg-printing-legal .wg-legal * {
    visibility: visible !important;
  }

  html body.wg-printing-legal .wg-legal {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
    background: #fff !important;
  }

  html body.wg-printing-legal .wg-legal__toc {
    display: none !important;
  }

  html body.wg-printing-legal .wg-legal__body {
    display: block !important;
  }

  html body.wg-printing-legal .wg-legal__body section,
  html body.wg-printing-legal .wg-legal__notice {
    margin: 0 0 20px !important;
    break-inside: avoid !important;
  }
}

@media (max-width: 575px) {
  html body.modal-open .wg-mobile-bottom--global,
  html body.modal-open .wg-mobile-buybar {
    display: none !important;
  }

  html body .modal .modal-content {
    border-radius: 16px !important;
  }

  html body :is(
    #product-comment-posted-modal,
    #product-comment-post-error,
    #report-comment-confirmation,
    #report-comment-posted,
    #report-comment-post-error,
    #update-comment-usefulness-post-error
  ).modal.in,
  html body :is(
    #product-comment-posted-modal,
    #product-comment-post-error,
    #report-comment-confirmation,
    #report-comment-posted,
    #report-comment-post-error,
    #update-comment-usefulness-post-error
  ).modal.show {
    padding: 12px !important;
  }

  html body .quickview.modal .modal-dialog,
  html body #blockcart-modal.wg-cart-modal .modal-dialog,
  html body .wishlist-modal .modal-dialog {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    margin: 12px auto !important;
  }

  html body .quickview.modal .modal-content,
  html body #blockcart-modal.wg-cart-modal .modal-content,
  html body .wishlist-modal .modal-content {
    max-height: calc(100dvh - 24px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html body .quickview.modal .modal-header {
    position: absolute !important;
    z-index: 6 !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  html body .quickview.modal .modal-header button.close {
    position: static !important;
    inset: auto !important;
    float: none !important;
    width: 44px !important;
    height: 44px !important;
  }

  html body .quickview.modal .modal-body > .row {
    display: block !important;
    margin: 0 !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:first-child {
    display: flex !important;
    width: 100% !important;
    height: 190px !important;
    min-height: 190px !important;
    padding: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #eaf2fd !important;
  }

  html body .quickview.modal .product-cover img {
    width: auto !important;
    max-width: 135px !important;
    height: auto !important;
    max-height: 160px !important;
    object-fit: contain !important;
  }

  html body .quickview.modal .modal-body > .row > [class*='col-']:last-child {
    width: 100% !important;
    padding: 22px 18px 18px !important;
  }

  html body .quickview.modal .product-quantity {
    display: grid !important;
    grid-template-columns: 108px 46px !important;
    gap: 8px !important;
    justify-content: space-between !important;
  }

  html body .quickview.modal .wg-mailalert .js-mailalert {
    grid-template-columns: 1fr !important;
  }

  html body .quickview.modal .product-quantity.wg-unavailable-actions {
    grid-template-columns: minmax(0, 1fr) 46px !important;
    height: 50px !important;
  }

  html body .quickview.modal .product-quantity > .qty {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  html body .quickview.modal .product-quantity > .wishlist-button {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html body .quickview.modal .product-quantity > .add {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
  }

  html body .quickview.modal .product-quantity > .add .add-to-cart {
    width: 100% !important;
    min-width: 0 !important;
  }

  html body .quickview.modal .product-quantity > .wishlist-button,
  html body .quickview.modal .wg-quickview-wishlist {
    width: 46px !important;
  }

  html body .quickview.modal .modal-footer,
  html body .quickview.modal .product-images,
  html body .quickview.modal .arrows {
    display: none !important;
  }

  html body #product-modal .modal-dialog {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    height: calc(100dvh - 24px) !important;
    margin: 12px auto !important;
  }

  html body #product-modal .modal-content {
    height: calc(100dvh - 24px) !important;
    overflow: hidden !important;
    border-radius: 16px !important;
  }

  html body#product #product-modal .modal-body {
    position: relative !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 58px !important;
    gap: 12px !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 58px 14px 14px !important;
    align-items: stretch !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  html body#product #product-modal .modal-body > figure {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: #eaf2fd !important;
  }

  html body#product #product-modal .modal-body > figure picture {
    display: contents !important;
  }

  html body#product #product-modal .product-cover-modal,
  html body#product #product-modal .js-modal-product-cover {
    display: block !important;
    width: auto !important;
    max-width: 92% !important;
    height: auto !important;
    max-height: 92% !important;
    margin: 0 !important;
    object-fit: contain !important;
  }

  html body#product #product-modal .image-caption {
    display: none !important;
  }

  html body#product #product-modal #thumbnails {
    position: static !important;
    z-index: 3 !important;
    grid-row: 2 !important;
    display: flex !important;
    width: auto !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  html body#product #product-modal .js-modal-mask,
  html body#product #product-modal .mask {
    position: static !important;
    width: 100% !important;
    height: 58px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  html body#product #product-modal .product-images,
  html body#product #product-modal .js-modal-product-images {
    position: static !important;
    display: flex !important;
    width: max-content !important;
    height: 58px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 8px !important;
  }

  html body#product #product-modal .product-images > li.thumb-container {
    display: block !important;
    width: 54px !important;
    min-width: 54px !important;
    height: 54px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dce5f2 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  html body#product #product-modal .product-images .thumb {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    opacity: 1 !important;
    object-fit: contain !important;
  }

  html body#product #product-modal .wg-gallery-modal__close {
    position: absolute !important;
    z-index: 6 !important;
    top: 10px !important;
    right: 10px !important;
  }

  html body #post-product-comment-modal .modal-dialog {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 12px auto !important;
  }

  html body #post-product-comment-modal .modal-content {
    min-height: 0 !important;
    max-height: calc(100dvh - 24px) !important;
    overflow-y: auto !important;
    border-radius: 16px !important;
  }

  html body#checkout #modal .modal-dialog {
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
  }

  html body#checkout #modal .modal-content {
    border-radius: 0 !important;
  }

  html body#checkout #modal .modal-header {
    top: 10px !important;
    right: 10px !important;
  }

  html body#checkout #modal .js-modal-content {
    padding: 62px 18px 28px !important;
    scrollbar-gutter: auto !important;
  }

  html body#checkout #modal .wg-legal__head {
    margin: 0 0 22px !important;
  }

  html body#checkout #modal .wg-legal__head h1 {
    max-width: 280px !important;
    font-size: 34px !important;
  }

  html body#checkout #modal .wg-legal__toc {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }

  html body#checkout #modal .wg-legal__toc > strong,
  html body#checkout #modal .wg-legal__toc button {
    grid-column: 1 !important;
  }

  html body#checkout #modal .wg-legal__toc a {
    min-height: 32px !important;
    padding: 6px 8px !important;
  }

  html body#checkout #modal .wg-legal__body h2 {
    font-size: 25px !important;
  }

  html body#checkout #modal .wg-legal__table {
    overflow-x: auto !important;
  }

  html body#checkout #modal .wg-legal__table > div {
    width: 540px !important;
  }
}

/* Desktop product gallery: a focused lightbox, not an almost full-screen poster. */
@media (min-width: 576px) {
  html body #product-modal .modal-dialog {
    width: min(920px, calc(100vw - 48px)) !important;
    max-width: 920px !important;
    height: min(720px, calc(100dvh - 48px)) !important;
  }

  html body#product #product-modal .modal-body {
    padding: 16px !important;
    grid-template-columns: 78px minmax(0, 1fr) !important;
    gap: 14px !important;
  }

  html body#product #product-modal #thumbnails,
  html body#product #product-modal .js-modal-mask,
  html body#product #product-modal .mask {
    width: 78px !important;
  }

  html body#product #product-modal .product-cover-modal,
  html body#product #product-modal .js-modal-product-cover {
    width: auto !important;
    max-width: min(480px, 92%) !important;
    height: auto !important;
    max-height: min(580px, calc(100dvh - 120px)) !important;
    object-fit: contain !important;
  }
}

/* Product gallery: the zoom view must frame the product, not enlarge the
   source artwork into a poster.  These final limits apply after all legacy
   full-screen lightbox declarations above. */
@media (min-width: 576px) {
  html body #product-modal .modal-dialog {
    width: min(860px, calc(100vw - 48px)) !important;
    max-width: 860px !important;
    height: min(640px, calc(100dvh - 48px)) !important;
    margin: max(24px, calc((100dvh - 640px) / 2)) auto !important;
  }

  html body#product #product-modal .product-cover-modal,
  html body#product #product-modal .js-modal-product-cover {
    width: auto !important;
    max-width: min(360px, 76%) !important;
    height: auto !important;
    max-height: min(470px, calc(100dvh - 150px)) !important;
    object-fit: contain !important;
  }
}

@media (max-width: 575px) {
  html body#product #product-modal .modal-body {
    padding: 58px 14px 14px !important;
  }

  html body#product #product-modal .modal-body > figure {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: stretch !important;
  }

  html body#product #product-modal .product-cover-modal,
  html body#product #product-modal .js-modal-product-cover {
    width: auto !important;
    max-width: min(250px, 76vw) !important;
    height: auto !important;
    max-height: min(340px, calc(100dvh - 300px)) !important;
    object-fit: contain !important;
  }
}
