/*
 * Native PrestaShop commerce layer
 * Scope: body[data-commerce-native] only.
 * The Warehouse templates remain the source of truth; this file supplies
 * the responsive visual system for account, cart and checkout surfaces.
 */

body[data-commerce-native] {
  --commerce-blue: #1958e3;
  --commerce-blue-soft: #edf3ff;
  --commerce-navy: #122d53;
  --commerce-navy-soft: #27466b;
  --commerce-teal: #138a87;
  --commerce-teal-soft: #e8f6f4;
  --commerce-ink: #142b49;
  --commerce-muted: #64748b;
  --commerce-line: #dce4ed;
  --commerce-mist: #f5f7fa;
  --commerce-paper: #ffffff;
  --commerce-danger: #a83232;
  --commerce-radius: 14px;
  --commerce-shadow: 0 14px 34px rgba(18, 45, 83, .08);
  --commerce-content-max: 1180px;
  background: var(--commerce-mist);
  color: var(--commerce-ink);
  font-family: var(--body, "Segoe UI", Arial, sans-serif);
}

/* The shell search keeps its action compact on native commerce pages. */
body[data-commerce-native] .site-header form.search > button,
body[data-commerce-native] .commerce-header form.search > button,
body[data-commerce-native] .site-header form.nav35-search > button,
body[data-commerce-native] .commerce-header form.nav35-search > button {
  width: auto;
  min-width: 44px;
  flex: 0 0 auto;
}

body[data-commerce-native] #main,
body[data-commerce-native] #content {
  width: min(100% - 32px, var(--commerce-content-max));
  margin-inline: auto;
  min-width: 0;
  padding-block: clamp(32px, 4vw, 56px);
}

body[data-commerce-native]#authentication #main > .page-title,
body[data-commerce-native]#authentication #content > .page-title,
body[data-commerce-native]#registration #main > .page-title,
body[data-commerce-native]#registration #content > .page-title {
  max-width: 480px;
  text-transform: none;
}

body[data-commerce-native] #main > .page-title,
body[data-commerce-native] .page-header .page-title,
body[data-commerce-native] #content > .page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
  color: var(--commerce-navy);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.12;
}

body[data-commerce-native] #main > .page-title::before,
body[data-commerce-native] .page-header .page-title::before,
body[data-commerce-native] #content > .page-title::before {
  width: 5px;
  height: 32px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--commerce-blue) 0 66%, var(--commerce-teal) 66% 100%);
  content: "";
  flex: 0 0 auto;
}

body[data-commerce-native] .breadcrumb,
body[data-commerce-native] .breadcrumbs {
  width: min(100% - 32px, var(--commerce-content-max));
  margin: 17px auto 8px;
  color: var(--commerce-muted);
  font-size: 12px;
}

body[data-commerce-native] .breadcrumb a:hover,
body[data-commerce-native] .breadcrumbs a:hover {
  color: var(--commerce-blue);
}

/* Shared panels, controls and focus states. */
body[data-commerce-native] #main .card,
body[data-commerce-native] #main .cart-container,
body[data-commerce-native] #main .cart-summary,
body[data-commerce-native] #content .card,
body[data-commerce-native] #content .cart-summary,
body[data-commerce-native] .rcacct-card,
body[data-commerce-native] .my-account-side-links,
body[data-commerce-native] .orders .order {
  border: 1px solid var(--commerce-line);
  border-radius: var(--commerce-radius);
  background: var(--commerce-paper);
  box-shadow: var(--commerce-shadow);
}

body[data-commerce-native] #main :is(button, input, select, textarea, .btn),
body[data-commerce-native] #content :is(button, input, select, textarea, .btn) {
  font-family: inherit;
}

body[data-commerce-native] #main :is(button, input, select, textarea, .btn):focus-visible,
body[data-commerce-native] #content :is(button, input, select, textarea, .btn):focus-visible,
body[data-commerce-native] .my-account-side-links a:focus-visible,
body[data-commerce-native] .rcacct-tabs a:focus-visible {
  outline: 3px solid var(--commerce-blue);
  outline-offset: 3px;
}

body[data-commerce-native] #main :is(button, .btn),
body[data-commerce-native] #content :is(button, .btn) {
  min-height: 44px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

body[data-commerce-native] #main .btn-primary,
body[data-commerce-native] #content .btn-primary {
  border-color: var(--commerce-blue);
  background: var(--commerce-blue);
  color: #fff;
  box-shadow: 0 5px 12px rgba(25, 88, 227, .18);
}

body[data-commerce-native] #main .btn-primary:hover,
body[data-commerce-native] #main .btn-primary:focus-visible,
body[data-commerce-native] #content .btn-primary:hover,
body[data-commerce-native] #content .btn-primary:focus-visible {
  border-color: var(--commerce-navy);
  background: var(--commerce-navy);
}

body[data-commerce-native] #main .btn-secondary,
body[data-commerce-native] #content .btn-secondary {
  border: 1px solid var(--commerce-line);
  background: #fff;
  color: var(--commerce-navy);
}

body[data-commerce-native] #main .form-group,
body[data-commerce-native] #content .form-group {
  margin-bottom: 17px;
}

body[data-commerce-native] #main :is(.form-control, select, textarea),
body[data-commerce-native] #content :is(.form-control, select, textarea) {
  min-height: 44px;
  border: 1px solid #cdd9e7;
  border-radius: 10px;
  background: #fff;
  color: var(--commerce-ink);
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

body[data-commerce-native] #main :is(.form-control, select, textarea):focus,
body[data-commerce-native] #content :is(.form-control, select, textarea):focus {
  border-color: var(--commerce-blue);
  background: #fff;
  box-shadow: 0 0 0 4px var(--commerce-blue-soft);
}

body[data-commerce-native] #main textarea,
body[data-commerce-native] #content textarea {
  min-height: 104px;
  padding-block: 11px;
}

body[data-commerce-native] #main :is(label, .form-control-label),
body[data-commerce-native] #content :is(label, .form-control-label) {
  color: var(--commerce-navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

body[data-commerce-native] #main .form-control-comment,
body[data-commerce-native] #content .form-control-comment {
  color: var(--commerce-muted);
  font-size: 11px;
  line-height: 1.45;
}

body[data-commerce-native] #main .has-error :is(.form-control, select, textarea),
body[data-commerce-native] #content .has-error :is(.form-control, select, textarea) {
  border-color: var(--commerce-danger);
  box-shadow: 0 0 0 4px #fceaea;
}

body[data-commerce-native] #main input[type="checkbox"],
body[data-commerce-native] #main input[type="radio"],
body[data-commerce-native] #content input[type="checkbox"],
body[data-commerce-native] #content input[type="radio"] {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  accent-color: var(--commerce-blue);
}

/* Cart and checkout use one 12-column rhythm on desktop. */
body[data-commerce-native] #main > .cart-grid,
body[data-commerce-native] #main > .row:has(> .cart-grid-right),
body[data-commerce-native] #content > .row:has(> .cart-grid-right) {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-inline: 0;
  align-items: start;
}

body[data-commerce-native] #main > .cart-grid > .cart-grid-body,
body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-8,
body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-8 {
  grid-column: span 8;
  min-width: 0;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

body[data-commerce-native] #main > .cart-grid > .cart-grid-right,
body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .cart-grid-right,
body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-4,
body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .cart-grid-right,
body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-4 {
  grid-column: span 4;
  min-width: 0;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

body[data-commerce-native] #main .cart-summary,
body[data-commerce-native] #content .cart-summary {
  position: sticky;
  top: 18px;
  overflow: clip;
}

body[data-commerce-native] #main .cart-summary :is(.card-body, .cart-summary-top, .cart-summary-subtotals-container, .cart-summary-totals),
body[data-commerce-native] #content .cart-summary :is(.card-body, .cart-summary-top, .cart-summary-subtotals-container, .cart-summary-totals) {
  padding-inline: 20px;
}

body[data-commerce-native] #main .cart-summary-top,
body[data-commerce-native] #content .cart-summary-top {
  padding-top: 19px;
  border-bottom: 1px solid var(--commerce-line);
}

body[data-commerce-native] #main .cart-summary-top h2,
body[data-commerce-native] #content .cart-summary-top h2 {
  margin: 0 0 12px;
  color: var(--commerce-navy);
  font-size: 18px;
  letter-spacing: -.02em;
}

body[data-commerce-native] #main .cart-summary-line,
body[data-commerce-native] #content .cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding-block: 9px;
  color: var(--commerce-muted);
  font-size: 13px;
}

body[data-commerce-native] #main .cart-summary-line :is(.value, .price),
body[data-commerce-native] #content .cart-summary-line :is(.value, .price) {
  flex: 0 0 auto;
  color: var(--commerce-navy);
  font-weight: 750;
  white-space: nowrap;
}

body[data-commerce-native] #main .cart-summary-totals .cart-total,
body[data-commerce-native] #content .cart-summary-totals .cart-total {
  margin-inline: -20px;
  padding: 16px 20px;
  border-top: 1px solid var(--commerce-line);
  background: var(--commerce-navy);
  color: #fff;
}

body[data-commerce-native] #main .cart-summary-totals .cart-total :is(.label, .value),
body[data-commerce-native] #content .cart-summary-totals .cart-total :is(.label, .value) {
  color: #fff;
  font-size: 15px;
  font-weight: 760;
}

/* Cart lines: image, description and actions never overlap. */
body[data-commerce-native] #main .cart-items,
body[data-commerce-native] #content .cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

body[data-commerce-native] #main .cart-item,
body[data-commerce-native] #content .cart-item {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--commerce-line);
}

body[data-commerce-native] #main .product-line-grid,
body[data-commerce-native] #content .product-line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 390px);
  gap: 20px;
  align-items: start;
  margin: 0;
  width: 100%;
  min-width: 0;
}

body[data-commerce-native] #main .product-line-grid-body,
body[data-commerce-native] #content .product-line-grid-body {
  min-width: 0;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

body[data-commerce-native] #main .product-line-grid-body > .row,
body[data-commerce-native] #content .product-line-grid-body > .row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  align-items: start;
}

body[data-commerce-native] #main .product-line-grid-body > .row > .product-image,
body[data-commerce-native] #content .product-line-grid-body > .row > .product-image {
  width: 88px;
  padding: 0;
}

body[data-commerce-native] #main .product-line-grid-body > .row > .product-image a,
body[data-commerce-native] #content .product-line-grid-body > .row > .product-image a {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: var(--commerce-mist);
}

body[data-commerce-native] #main .product-line-grid-body > .row > .product-image img,
body[data-commerce-native] #content .product-line-grid-body > .row > .product-image img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

body[data-commerce-native] #main .product-line-grid-body > .row > .col-9,
body[data-commerce-native] #content .product-line-grid-body > .row > .col-9 {
  min-width: 0;
  width: auto;
  padding: 0;
}

body[data-commerce-native] #main .product-line-info .label,
body[data-commerce-native] #content .product-line-info .label {
  display: block;
  min-width: 0;
  margin: 1px 0 7px;
  color: var(--commerce-navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-commerce-native] #main .product-line-info .label:hover,
body[data-commerce-native] #content .product-line-info .label:hover {
  color: var(--commerce-blue);
}

body[data-commerce-native] #main .product-line-info-secondary,
body[data-commerce-native] #content .product-line-info-secondary {
  color: var(--commerce-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body[data-commerce-native] #main .product-line-grid-right,
body[data-commerce-native] #content .product-line-grid-right {
  min-width: 0;
  width: auto;
  max-width: none;
  flex: none;
  padding: 0;
}

body[data-commerce-native] #main .product-line-grid-right > .row,
body[data-commerce-native] #content .product-line-grid-right > .row {
  display: grid;
  grid-template-columns: repeat(3, max-content) 44px;
  gap: 12px;
  margin: 0;
  align-items: start;
  justify-content: end;
}

body[data-commerce-native] #main .product-line-grid-right .unit-price,
body[data-commerce-native] #main .product-line-grid-right .qty,
body[data-commerce-native] #main .product-line-grid-right .price,
body[data-commerce-native] #content .product-line-grid-right .unit-price,
body[data-commerce-native] #content .product-line-grid-right .qty,
body[data-commerce-native] #content .product-line-grid-right .price {
  width: auto;
  padding: 0;
  text-align: right;
}

body[data-commerce-native] #main .product-line-grid-right .value,
body[data-commerce-native] #main .product-line-grid-right .product-price,
body[data-commerce-native] #content .product-line-grid-right .value,
body[data-commerce-native] #content .product-line-grid-right .product-price {
  color: var(--commerce-navy);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

body[data-commerce-native] #main .product-line-grid-right .qty input,
body[data-commerce-native] #content .product-line-grid-right .qty input {
  width: 66px;
  min-height: 44px;
  padding-inline: 7px;
  text-align: center;
}

body[data-commerce-native] #main .cart-line-product-actions,
body[data-commerce-native] #content .cart-line-product-actions {
  display: grid;
  place-items: center;
  width: 44px;
  min-height: 44px;
}

body[data-commerce-native] #main .remove-from-cart,
body[data-commerce-native] #content .remove-from-cart {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  color: var(--commerce-muted);
}

body[data-commerce-native] #main .remove-from-cart:hover,
body[data-commerce-native] #content .remove-from-cart:hover {
  background: #fff1f1;
  color: var(--commerce-danger);
}

/* Checkout steps share the same quiet field hierarchy. */
body[data-commerce-native] #main .checkout-process,
body[data-commerce-native] #content .checkout-process {
  display: grid;
  gap: 14px;
}

body[data-commerce-native] #main .checkout-step,
body[data-commerce-native] #content .checkout-step {
  overflow: clip;
  margin: 0;
  border: 1px solid var(--commerce-line);
  border-radius: var(--commerce-radius);
  background: #fff;
  box-shadow: 0 7px 18px rgba(18, 45, 83, .045);
}

body[data-commerce-native] #main .checkout-step .step-title,
body[data-commerce-native] #content .checkout-step .step-title,
body[data-commerce-native] #main .checkout-step .step-number,
body[data-commerce-native] #content .checkout-step .step-number {
  color: var(--commerce-navy);
  font-size: 16px;
  font-weight: 760;
}

body[data-commerce-native] #main .checkout-step .step-title,
body[data-commerce-native] #content .checkout-step .step-title {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--commerce-line);
  background: linear-gradient(90deg, #f8fbff, #fff);
}

body[data-commerce-native] #main .checkout-step .step-number,
body[data-commerce-native] #content .checkout-step .step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--commerce-blue-soft);
  color: var(--commerce-blue);
  font-size: 12px;
}

body[data-commerce-native] #main .checkout-step .content,
body[data-commerce-native] #content .checkout-step .content,
body[data-commerce-native] #main .checkout-step .step-edit,
body[data-commerce-native] #content .checkout-step .step-edit {
  padding: 18px;
}

body[data-commerce-native] #main .payment-options,
body[data-commerce-native] #content .payment-options {
  display: grid;
  gap: 10px;
}

body[data-commerce-native] #main .payment-option,
body[data-commerce-native] #content .payment-option {
  border: 1px solid var(--commerce-line);
  border-radius: 11px;
  background: #fff;
}

body[data-commerce-native] #main .payment-option:hover,
body[data-commerce-native] #content .payment-option:hover {
  border-color: #a9bddb;
  background: #fbfdff;
}

body[data-commerce-native] #main #payment-confirmation,
body[data-commerce-native] #content #payment-confirmation {
  margin-top: 17px;
  padding-top: 17px;
  border-top: 1px solid var(--commerce-line);
}

body[data-commerce-native] #main #payment-confirmation :is(button, .btn),
body[data-commerce-native] #content #payment-confirmation :is(button, .btn) {
  width: 100%;
}

/* Customer area: a side rail for navigation and a calm content pane. */
body[data-commerce-native] .my-account-page-content-wrapper > .row {
  display: grid;
  grid-template-columns: minmax(190px, 3fr) minmax(0, 9fr);
  gap: 24px;
  margin: 0;
}

body[data-commerce-native] .my-account-side-links,
body[data-commerce-native] .my-account-page-content {
  width: auto;
  min-width: 0;
  padding: 8px;
}

body[data-commerce-native] .my-account-side-links {
  align-self: start;
}

body[data-commerce-native] .my-account-side-links > a,
body[data-commerce-native] .my-account-side-links .rcacct-nav__link {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  color: var(--commerce-muted);
}

body[data-commerce-native] .my-account-side-links .link-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 650;
}

body[data-commerce-native] .my-account-side-links .link-item i {
  width: 18px;
  color: var(--commerce-teal);
  text-align: center;
}

body[data-commerce-native] .my-account-side-links a:hover .link-item,
body[data-commerce-native] .my-account-side-links .rcacct-nav__link--active .link-item {
  background: var(--commerce-blue-soft);
  color: var(--commerce-navy);
}

body[data-commerce-native] .my-account-page-content > :is(h1, h2, h3, h4, h5, h6):first-child {
  margin-top: 0;
  color: var(--commerce-navy);
}

body[data-commerce-native] .my-account-page-content .links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

body[data-commerce-native] .my-account-page-content .links > a {
  width: auto;
  min-width: 0;
  padding: 0;
}

body[data-commerce-native] .my-account-page-content .links .link-item {
  display: flex;
  min-height: 108px;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--commerce-line);
  border-radius: 12px;
  background: #fff;
  color: var(--commerce-navy);
  font-size: 13px;
  font-weight: 720;
  box-shadow: 0 6px 16px rgba(18, 45, 83, .04);
}

body[data-commerce-native] .my-account-page-content .links .link-item i {
  color: var(--commerce-teal);
  font-size: 21px;
}

body[data-commerce-native] .my-account-page-content .links a:hover .link-item {
  border-color: #abc0de;
  background: #f8fbff;
  color: var(--commerce-blue);
  transform: translateY(-1px);
}

body[data-commerce-native] .rcacct {
  width: min(100%, 560px);
  margin-inline: auto;
}

body[data-commerce-native] .rcacct-card {
  overflow: clip;
}

body[data-commerce-native] .rcacct-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 6px;
  background: var(--commerce-navy);
}

body[data-commerce-native] .rcacct-tabs a {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #b8cae1;
  font-size: 12px;
  font-weight: 760;
}

body[data-commerce-native] .rcacct-tabs a.is-active,
body[data-commerce-native] .rcacct-tabs a:hover {
  background: #fff;
  color: var(--commerce-navy);
}

body[data-commerce-native] .rcacct-face {
  padding: 24px;
}

body[data-commerce-native] .rcacct-face .login-form,
body[data-commerce-native] .login-form,
body[data-commerce-native] .register-form {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

body[data-commerce-native] .rcacct-alt,
body[data-commerce-native] .no-account {
  margin: 18px 0 0;
  color: var(--commerce-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

body[data-commerce-native] .rcacct-alt a,
body[data-commerce-native] .no-account a {
  color: var(--commerce-blue);
  font-weight: 750;
}

/* History tables retain columns on small screens instead of crushing titles. */
body[data-commerce-native] .my-account-page-content :is(.table-responsive, .table-labeled) {
  width: 100%;
  margin-top: 16px;
}

body[data-commerce-native] .my-account-page-content .table {
  margin: 0;
  border-color: var(--commerce-line);
  background: #fff;
  font-size: 12px;
}

body[data-commerce-native] .my-account-page-content .table thead th {
  border-color: var(--commerce-line);
  background: var(--commerce-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}

body[data-commerce-native] .my-account-page-content .table td,
body[data-commerce-native] .my-account-page-content .table th {
  padding: 12px 11px;
  border-color: var(--commerce-line);
  vertical-align: middle;
}

body[data-commerce-native] .my-account-page-content .table tbody tr:nth-child(even) {
  background: #fbfdff;
}

body[data-commerce-native] .my-account-page-content .table .label-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
}

body[data-commerce-native] .my-account-page-content .orders {
  display: grid;
  gap: 10px;
}

body[data-commerce-native] .my-account-page-content .orders .order {
  padding: 14px;
}

body[data-commerce-native] .my-account-page-content .orders .order h3 {
  margin: 0 0 5px;
  color: var(--commerce-navy);
  font-size: 15px;
}

body[data-commerce-native] .my-account-page-content .orders .date,
body[data-commerce-native] .my-account-page-content .orders .total {
  color: var(--commerce-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  body[data-commerce-native] #main > .cart-grid,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right),
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) {
    gap: 16px;
  }

  body[data-commerce-native] #main > .cart-grid > .cart-grid-body,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-8,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-8 {
    grid-column: span 7;
  }

  body[data-commerce-native] #main > .cart-grid > .cart-grid-right,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .cart-grid-right,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-4,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .cart-grid-right,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-4 {
    grid-column: span 5;
  }

  body[data-commerce-native] #main .product-line-grid,
  body[data-commerce-native] #content .product-line-grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
    gap: 14px;
  }

  body[data-commerce-native] #main .product-line-grid-right > .row,
  body[data-commerce-native] #content .product-line-grid-right > .row {
    grid-template-columns: repeat(3, max-content) 44px;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  body[data-commerce-native] #main,
  body[data-commerce-native] #content,
  body[data-commerce-native] .breadcrumb,
  body[data-commerce-native] .breadcrumbs {
    width: min(100% - 20px, var(--commerce-content-max));
  }

  body[data-commerce-native] #main,
  body[data-commerce-native] #content {
    padding-block: 24px;
  }

  body[data-commerce-native] #main > .cart-grid,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right),
  body[data-commerce-native] #content > .row:has(> .cart-grid-right),
  body[data-commerce-native] .my-account-page-content-wrapper > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body[data-commerce-native] #main > .cart-grid > .cart-grid-body,
  body[data-commerce-native] #main > .cart-grid > .cart-grid-right,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-8,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .col-md-4,
  body[data-commerce-native] #main > .row:has(> .cart-grid-right) > .cart-grid-right,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-8,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .col-md-4,
  body[data-commerce-native] #content > .row:has(> .cart-grid-right) > .cart-grid-right {
    grid-column: 1;
  }

  body[data-commerce-native] #main .cart-summary,
  body[data-commerce-native] #content .cart-summary {
    position: static;
  }

  body[data-commerce-native] #main .product-line-grid,
  body[data-commerce-native] #content .product-line-grid {
    display: block;
  }

  body[data-commerce-native] #main .product-line-grid-right,
  body[data-commerce-native] #content .product-line-grid-right {
    margin-top: 14px;
    padding-left: 102px;
  }

  body[data-commerce-native] #main .product-line-grid-right > .row,
  body[data-commerce-native] #content .product-line-grid-right > .row {
    justify-content: start;
  }

  body[data-commerce-native] .my-account-side-links,
  body[data-commerce-native] .my-account-page-content {
    padding: 0;
  }

  body[data-commerce-native] .my-account-side-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
  }

  body[data-commerce-native] .my-account-page-content .links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-commerce-native] .my-account-page-content :is(.table-responsive, .table-labeled) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body[data-commerce-native] .my-account-page-content .table {
    min-width: 650px;
  }
}

@media (max-width: 700px) {
  body[data-commerce-native] #main,
  body[data-commerce-native] #content {
    padding-top: 28px;
  }

  body[data-commerce-native] #main > h1.page-title,
  body[data-commerce-native] #content > h1.page-title {
    font-size: clamp(24px, 6vw, 30px) !important;
  }
}

/* Keep the native TouchSpin actions and their 44px hit targets, while
 * presenting the familiar minus / value / plus order. */
body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-down,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-down {
  order: 1;
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-up,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-up {
  order: 2;
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin button .fa,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin button .fa {
  display: none;
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-down::before,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "−";
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-up::before,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "+";
}

@media (max-width: 480px) {
  body[data-commerce-native] #main .cart-summary-totals .cart-total,
  body[data-commerce-native] #content .cart-summary-totals .cart-total {
    gap: 10px;
  }

  body[data-commerce-native] #main .cart-summary-totals .cart-total .label,
  body[data-commerce-native] #content .cart-summary-totals .cart-total .label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    font-size: 12px;
  }

  body[data-commerce-native] #main .cart-summary-totals .cart-total .value,
  body[data-commerce-native] #content .cart-summary-totals .cart-total .value {
    flex: 0 0 auto;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body[data-commerce-native] #main > .page-title,
  body[data-commerce-native] .page-header .page-title,
  body[data-commerce-native] #content > .page-title {
    margin-top: 17px;
    margin-bottom: 14px;
    font-size: 24px;
  }

  body[data-commerce-native] #main > .page-title::before,
  body[data-commerce-native] .page-header .page-title::before,
  body[data-commerce-native] #content > .page-title::before {
    height: 27px;
  }

  body[data-commerce-native] #main .product-line-grid-body > .row,
  body[data-commerce-native] #content .product-line-grid-body > .row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
  }

  body[data-commerce-native] #main .product-line-grid-body > .row > .product-image,
  body[data-commerce-native] #content .product-line-grid-body > .row > .product-image,
  body[data-commerce-native] #main .product-line-grid-body > .row > .product-image a,
  body[data-commerce-native] #content .product-line-grid-body > .row > .product-image a {
    width: 72px;
    height: 72px;
  }

  body[data-commerce-native] #main .product-line-grid-body > .row > .product-image img,
  body[data-commerce-native] #content .product-line-grid-body > .row > .product-image img {
    width: 64px;
    height: 64px;
  }

  body[data-commerce-native] #main .product-line-info .label,
  body[data-commerce-native] #content .product-line-info .label {
    font-size: 13px;
  }

  body[data-commerce-native] #main .product-line-grid-right,
  body[data-commerce-native] #content .product-line-grid-right {
    padding-left: 83px;
  }

  body[data-commerce-native] #main .product-line-grid-right > .row,
  body[data-commerce-native] #content .product-line-grid-right > .row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 44px;
    gap: 8px;
  }

  body[data-commerce-native] #main .product-line-grid-right .unit-price,
  body[data-commerce-native] #main .product-line-grid-right .price,
  body[data-commerce-native] #content .product-line-grid-right .unit-price,
  body[data-commerce-native] #content .product-line-grid-right .price {
    text-align: left;
  }

  body[data-commerce-native] .my-account-side-links {
    grid-template-columns: 1fr;
  }

  body[data-commerce-native] .my-account-page-content .links {
    grid-template-columns: 1fr;
  }

  body[data-commerce-native] .rcacct-face {
    padding: 18px 15px;
  }

  body[data-commerce-native] #main .checkout-step .content,
  body[data-commerce-native] #content .checkout-step .content,
  body[data-commerce-native] #main .checkout-step .step-edit,
  body[data-commerce-native] #content .checkout-step .step-edit {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-commerce-native] *,
  body[data-commerce-native] *::before,
  body[data-commerce-native] *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Checkout refinement: keep the native four-step DOM and make its reading
 * order match the purchase task. The cart summary remains the single source
 * for totals; the mobile strip added by native-account.mjs is presentation
 * only and has no controls or form fields. */
body#checkout[data-commerce-native] #main > .row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  margin-inline: 0;
  align-items: start;
}

body#checkout[data-commerce-native] #main > .row > .col-md-8,
body#checkout[data-commerce-native] #main > .row > .cart-grid-right {
  width: auto;
  max-width: none;
  min-width: 0;
  padding-inline: 0;
  float: none;
}

body#checkout[data-commerce-native] #main > .row > .col-md-8 {
  grid-column: 1;
}

body#checkout[data-commerce-native] #main > .row > .cart-grid-right {
  grid-column: 2;
}

@media (min-width: 901px) {
  body#checkout[data-commerce-native] #main > .row > .cart-grid-right {
    position: relative;
    align-self: start;
  }

  body#checkout[data-commerce-native] #main > .row > .cart-grid-right .cart-summary {
    position: sticky;
    top: 18px;
    overflow: visible;
  }
}

/* Labels above controls reduce the long left-label rhythm while leaving the
 * form names, hidden inputs and native validation untouched. */
body#checkout[data-commerce-native] #main .checkout-step .form-group.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label meta"
    "input input";
  row-gap: 6px;
  align-items: start;
  margin-bottom: 14px;
}

body#checkout[data-commerce-native] #main .checkout-step .form-group.row > .form-control-label,
body#checkout[data-commerce-native] #main .checkout-step .form-group.row > .col-form-label {
  grid-area: label;
  width: auto;
  max-width: none;
  padding-inline: 0;
  float: none;
  margin: 0;
}

body#checkout[data-commerce-native] #main .checkout-step .form-group.row > .js-input-column {
  grid-area: input;
  width: auto;
  max-width: none;
  padding-inline: 0;
  float: none;
}

body#checkout[data-commerce-native] #main .checkout-step .form-group.row > .form-control-comment {
  grid-area: meta;
  width: auto;
  max-width: none;
  padding-inline: 0;
  float: none;
  align-self: end;
  margin: 0;
  color: var(--commerce-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

body#checkout[data-commerce-native] #main .checkout-step .form-group.row:has(input[type="checkbox"]) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "input";
}

body#checkout[data-commerce-native] #main .checkout-step .form-group.row:has(input[type="checkbox"]) > .form-control-label {
  display: none;
}

body#checkout[data-commerce-native] #main .checkout-step {
  overflow: visible;
  scroll-margin-top: 24px;
}

body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row {
  grid-column: 1 / -1;
  min-width: 0;
}

body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row:has(input[name="firstname"]),
body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row:has(input[name="lastname"]) {
  grid-column: span 1;
}

body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row:has(input[name="id_gender"]):not(:has(input[required])) {
  display: none;
}

body[data-commerce-native] .top-header a,
body[data-commerce-native] .top-header nav a {
  color: #fff !important;
}

body[data-commerce-native] .top-header a:hover,
body[data-commerce-native] .top-header nav a:hover,
body[data-commerce-native] .top-header a:focus-visible,
body[data-commerce-native] .top-header nav a:focus-visible {
  color: #dcecff !important;
}

body#checkout[data-commerce-native] .rc-native-checkout-mobile-total {
  display: none;
}

body#checkout[data-commerce-native] #main .rc-native-guest-note {
  margin: 0 0 14px;
  color: var(--commerce-muted);
  font-size: 13px;
  line-height: 1.45;
}

body#checkout[data-commerce-native] #main .rc-native-optional-account {
  margin: 2px 0 16px;
  border: 1px solid var(--commerce-line);
  border-radius: 10px;
  background: #fbfdff;
}

body#checkout[data-commerce-native] #main .rc-native-optional-account > summary {
  min-height: 44px;
  padding: 11px 14px;
  color: var(--commerce-navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  list-style-position: inside;
}

body#checkout[data-commerce-native] #main .rc-native-optional-account[open] > summary {
  border-bottom: 1px solid var(--commerce-line);
}

body#checkout[data-commerce-native] #main .rc-native-optional-account > .field-password-policy {
  padding: 12px 14px 0;
}

body#checkout[data-commerce-native] #main .rc-native-optional-account > .field-password-policy > p {
  margin: 0 0 10px;
  color: var(--commerce-muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  body#checkout[data-commerce-native] #main,
  body#checkout[data-commerce-native] #content {
    width: min(100% - 32px, 390px);
    max-width: 390px;
    padding-block: 20px 32px;
    box-sizing: border-box;
  }

  body#checkout[data-commerce-native] #main > .page-title,
  body#checkout[data-commerce-native] .page-header .page-title,
  body#checkout[data-commerce-native] #content > .page-title {
    margin: 0 0 16px;
    font-size: clamp(24px, 6vw, 30px);
  }

  body#checkout[data-commerce-native] #main > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  body#checkout[data-commerce-native] #main > .row > .col-md-8,
  body#checkout[data-commerce-native] #main > .row > .cart-grid-right {
    grid-column: 1;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }

  body#checkout[data-commerce-native] #main > .row > .cart-grid-right {
    order: 2;
  }

  body#checkout[data-commerce-native] #main > .row > .col-md-8 {
    order: 1;
  }

  body#checkout[data-commerce-native] #main .checkout-process {
    width: 100%;
    max-width: none;
    gap: 12px;
  }

  body#checkout[data-commerce-native] #main .checkout-step {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  body#checkout[data-commerce-native] #main .checkout-step .step-title {
    min-height: 50px;
    padding: 11px 14px;
  }

  body#checkout[data-commerce-native] #main .checkout-step .content,
  body#checkout[data-commerce-native] #main .checkout-step .step-edit {
    padding: 16px;
  }

  body#checkout[data-commerce-native] #main .checkout-step .form-group.row {
    margin: 0 0 14px;
  }

  body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }

  body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row:has(input[name="firstname"]),
  body#checkout[data-commerce-native] #main #checkout-personal-information-step #customer-form > div > .form-group.row:has(input[name="lastname"]) {
    grid-column: 1;
  }

  body#checkout[data-commerce-native] #main:has(> .rc-native-checkout-mobile-total:not([hidden])) {
    padding-bottom: calc(32px + 72px + env(safe-area-inset-bottom));
  }

  body#checkout[data-commerce-native] .rc-native-checkout-mobile-total:not([hidden]) {
    position: fixed;
    z-index: 30;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border: 1px solid var(--commerce-navy);
    border-radius: 12px;
    background: var(--commerce-navy);
    box-shadow: 0 10px 26px rgba(18, 45, 83, .22);
    color: #fff;
    font-size: 13px;
    pointer-events: none;
  }

  body#checkout[data-commerce-native] .rc-native-checkout-mobile-total strong {
    font-size: 17px;
    font-weight: 760;
    white-space: nowrap;
  }
}

/* The beta shell keeps the drawer on the catalogue body, so these rules are
 * intentionally scoped to the drawer itself rather than the native-page
 * marker. They make the adapter-owned lines usable at 1440px and 390px. */
#side-cart.rc-cart {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

#side-cart.rc-cart .rc-cart-view {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow-x: hidden;
}

#side-cart.rc-cart .rc-cart-items {
  display: grid;
  min-width: 0;
  gap: 0;
  margin: 0;
  padding: 0;
}

#side-cart.rc-cart .rc-cart-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 72px minmax(0, 1fr) max-content max-content;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #dce4ed;
}

#side-cart.rc-cart .rc-cart-item > a:first-child {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 1px solid #e3eaf2;
  border-radius: 12px;
  background: #f5f7fa;
}

#side-cart.rc-cart .rc-cart-item > a:first-child img {
  width: 64px;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
}

#side-cart.rc-cart .rc-cart-item > div:nth-of-type(1) {
  min-width: 0;
}

#side-cart.rc-cart .rc-cart-title {
  min-width: 0;
  margin: 0;
  color: #122d53;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#side-cart.rc-cart .rc-cart-title a {
  color: inherit;
}

#side-cart.rc-cart .rc-cart-item [data-ps-remove] {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

#side-cart.rc-cart .rc-cart-item [data-ps-remove]:hover,
#side-cart.rc-cart .rc-cart-item [data-ps-remove]:focus-visible {
  background: #fff1f1;
  color: #a83232;
}

#side-cart.rc-cart .rc-cart-quantity {
  display: grid;
  grid-template-columns: repeat(3, 44px);
  align-items: center;
}

#side-cart.rc-cart .rc-cart-quantity button,
#side-cart.rc-cart .rc-cart-quantity [data-ps-quantity] {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}

#side-cart.rc-cart .rc-cart-quantity button {
  border: 1px solid #cdd9e7;
  background: #fff;
  color: #122d53;
  font-size: 18px;
  cursor: pointer;
}

#side-cart.rc-cart .rc-cart-quantity button:first-child {
  border-radius: 9px 0 0 9px;
}

#side-cart.rc-cart .rc-cart-quantity button:last-child {
  border-radius: 0 9px 9px 0;
}

#side-cart.rc-cart .rc-cart-quantity [data-ps-quantity] {
  width: 56px;
  border: 1px solid #cdd9e7;
  border-inline: 0;
  border-radius: 0;
  background: #fff;
  color: #142b49;
  font: inherit;
  font-size: 13px;
  text-align: center;
}

#side-cart.rc-cart .rc-cart-item > strong {
  justify-self: end;
  color: #122d53;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

#side-cart.rc-cart [data-cart-status] {
  margin-bottom: 10px;
  color: #142b49;
  font-size: 13px;
  line-height: 1.4;
}

#side-cart.rc-cart .rc-cart-summary {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #dce4ed;
  background: #fff;
}

#side-cart.rc-cart .rc-cart-primary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

#side-cart.rc-cart :is(.rc-panel-close, [data-drawer-close]) {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
}

@media (max-width: 560px) {
  #side-cart.rc-cart .rc-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) max-content;
    gap: 10px;
    align-items: start;
  }

  #side-cart.rc-cart .rc-cart-item > a:first-child {
    width: 64px;
    height: 64px;
  }

  #side-cart.rc-cart .rc-cart-item > a:first-child img {
    width: 56px;
    height: 56px;
  }

  #side-cart.rc-cart .rc-cart-item .rc-cart-quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  #side-cart.rc-cart .rc-cart-item > strong {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }
}

/* Final commerce adapter layout: the drawer scrolls only its line section;
 * the feedback and summary remain visible siblings inside the view. */
#side-cart.rc-cart .rc-cart-view {
  min-height: 0;
  overflow: hidden;
}

#side-cart.rc-cart .rc-cart-feedback {
  flex: none;
  margin: 0;
  padding: 10px 20px;
  border-bottom: 1px solid #e9eff7;
  background: #f5f9ff;
  color: #49617e;
  font-size: 12px;
  line-height: 1.5;
}

#side-cart.rc-cart .rc-cart-items {
  display: block;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 20px;
  overscroll-behavior: contain;
}

#side-cart.rc-cart .rc-cart-item-v8 {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  column-gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 12px 0;
  align-items: start;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-image {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e8edf4;
  border-radius: 10px;
  background: #fff;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-product-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-info {
  min-width: 0;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 5px;
  min-width: 0;
  align-items: start;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-title-row h3 {
  display: -webkit-box;
  margin: 1px 0 0;
  overflow: hidden;
  color: #173453;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-remove {
  display: grid;
  width: 32px;
  height: 32px;
  margin: -2px -2px 0 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #61758e;
  font-size: 20px;
  line-height: 1;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 9px;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-price {
  margin: 0;
  color: #122d53;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-unit {
  color: #61758e;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-line-bottom {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-quantity {
  display: inline-grid;
  grid-template-columns: 40px 40px 40px;
  flex: none;
  width: max-content;
  min-width: 120px;
  height: 42px;
  margin: 0;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-quantity button,
#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-quantity [data-cart-quantity] {
  box-sizing: border-box;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-quantity button {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: #fff;
  color: #3e587b;
  font-size: 17px;
}

#side-cart.rc-cart .rc-cart-item-v8 .rc-cart-quantity [data-cart-quantity] {
  border: 0;
  border-inline: 1px solid #edf1f6;
  border-radius: 0;
  background: #fff;
  color: #233f63;
  font-size: 14px;
  text-align: center;
}

#side-cart.rc-cart .rc-cart-summary {
  position: static;
  flex: none;
  min-width: 0;
  margin: 0;
  padding: 16px 20px calc(17px + env(safe-area-inset-bottom));
  border-top: 1px solid #e2eaf4;
  background: #fff;
  box-shadow: 0 -8px 22px rgb(30 55 88 / 3%);
}

#side-cart.rc-cart .rc-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #233f63;
  font-size: 13px;
}

#side-cart.rc-cart .rc-cart-total strong {
  color: #122d53;
  font-size: 22px;
  font-weight: 750;
  white-space: nowrap;
}

#side-cart.rc-cart .rc-cart-summary > p {
  margin: 5px 0 11px;
  color: #61758e;
  font-size: 11px;
  line-height: 1.4;
}

#side-cart.rc-cart .rc-cart-primary,
#side-cart.rc-cart .rc-cart-secondary {
  display: flex;
  min-height: 44px;
  box-sizing: border-box;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 15px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

#side-cart.rc-cart .rc-cart-primary {
  background: #1958e3;
  color: #fff;
}

#side-cart.rc-cart .rc-cart-secondary {
  justify-content: center;
  margin-top: 7px;
  border: 1px solid #dce5f0;
  background: #fff;
  color: #1958e3;
}

#side-cart.rc-cart .rc-cart-continue {
  display: block;
  min-height: 36px;
  margin: 5px auto 0;
  padding: 6px 4px;
  border: 0;
  background: transparent;
  color: #496784;
  font-size: 11px;
}

/* The native page uses the same adapter controls. Keep the card compact and
 * give each touch/keyboard action a 44px target. */
body[data-commerce-native] #main .cart-items .cart-item,
body[data-commerce-native] #content .cart-items .cart-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) max-content;
  grid-template-areas: "photo info total" "photo quantity total";
  gap: 10px 14px;
  min-height: 0;
  padding: 16px;
  align-items: start;
}

body[data-commerce-native] #main .cart-items .cart-item-photo,
body[data-commerce-native] #content .cart-items .cart-item-photo {
  grid-area: photo;
  width: 88px;
  height: 88px;
}

body[data-commerce-native] #main .cart-items .cart-item-info,
body[data-commerce-native] #content .cart-items .cart-item-info {
  grid-area: info;
  min-width: 0;
}

body[data-commerce-native] #main .cart-items .cart-item-qty,
body[data-commerce-native] #content .cart-items .cart-item-qty {
  display: grid;
  grid-area: quantity;
  grid-template-columns: 56px 44px;
  grid-template-rows: 44px 44px;
  width: max-content;
  height: 88px;
  overflow: hidden;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  background: #fff;
}

body[data-commerce-native] #main .cart-items .cart-item-qty input,
body[data-commerce-native] #content .cart-items .cart-item-qty input {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 56px;
  min-width: 56px;
  height: 88px;
  min-height: 88px;
  border: 0;
  border-right: 1px solid #edf1f6;
  border-radius: 0;
  text-align: center;
}

body[data-commerce-native] #main .cart-items .cart-item-qty button,
body[data-commerce-native] #content .cart-items .cart-item-qty button {
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  background: #fff;
  color: #1958e3;
  font-size: 18px;
}

body[data-commerce-native] #main .cart-items .cart-item-qty button:first-child,
body[data-commerce-native] #content .cart-items .cart-item-qty button:first-child {
  grid-column: 2;
  grid-row: 1;
  border-bottom: 1px solid #edf1f6;
}

body[data-commerce-native] #main .cart-items .cart-item-qty button:last-child,
body[data-commerce-native] #content .cart-items .cart-item-qty button:last-child {
  grid-column: 2;
  grid-row: 2;
}

body[data-commerce-native] #main .cart-items .cart-item-total,
body[data-commerce-native] #content .cart-items .cart-item-total {
  grid-area: total;
  align-self: center;
  white-space: nowrap;
}

body[data-commerce-native] .iqitfreedeliverycount {
  display: none !important;
}

@media (max-width: 560px) {
  #side-cart.rc-cart .rc-cart-items {
    padding-inline: 16px;
  }

  #side-cart.rc-cart .rc-cart-item-v8 {
    grid-template-columns: 72px minmax(0, 1fr);
    column-gap: 10px;
  }

  #side-cart.rc-cart .rc-cart-item-v8 .rc-cart-image {
    width: 72px;
    height: 72px;
  }

  #side-cart.rc-cart .rc-cart-item-v8 .rc-cart-price {
    font-size: 17px;
  }
}

@media (max-width: 350px) {
  #side-cart.rc-cart .rc-cart-items {
    padding-inline: 12px;
  }

  #side-cart.rc-cart .rc-cart-summary {
    padding-inline: 14px;
  }
}

/* Native Warehouse cart: the line item owns the responsive layout.  The
 * previous adapter rules treated `.cart-item`'s nested `.product-line-grid`
 * as if it were a direct image/info row, which collapsed the content column
 * to a few pixels on narrow screens. */
body[data-commerce-native] #main .cart-items .cart-item,
body[data-commerce-native] #content .cart-items .cart-item {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 16px 0;
}

body[data-commerce-native] #main .cart-items .product-line-grid,
body[data-commerce-native] #content .cart-items .product-line-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(275px, 390px);
  gap: 20px;
  width: 100%;
  min-width: 0;
  margin: 0;
}

body[data-commerce-native] #main .cart-items .product-line-grid-body,
body[data-commerce-native] #content .cart-items .product-line-grid-body,
body[data-commerce-native] #main .cart-items .product-line-grid-right,
body[data-commerce-native] #content .cart-items .product-line-grid-right {
  width: auto;
  min-width: 0;
  max-width: none;
  padding: 0;
}

/* PrestaShop's TouchSpin markup is an input followed by a vertical button
 * wrapper. Keep its native URLs and event handlers while presenting one
 * compact horizontal 44px control. */
body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin {
  display: inline-flex;
  flex: 0 0 132px;
  width: 132px;
  max-width: none;
  height: 44px;
  min-height: 44px;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 1px solid #cdd9e7;
  border-radius: 9px;
  background: #fff;
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin input,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin input {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 42px;
  min-height: 42px;
  padding: 0 3px;
  border: 0;
  border-inline: 0;
  border-radius: 0;
  background: #fff;
  color: var(--commerce-navy);
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin input::-webkit-inner-spin-button,
body[data-commerce-native] #main .cart-items .qty .bootstrap-touchspin input::-webkit-outer-spin-button,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin input::-webkit-inner-spin-button,
body[data-commerce-native] #content .cart-items .qty .bootstrap-touchspin input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

body[data-commerce-native] #main .cart-items .qty .input-group-btn-vertical,
body[data-commerce-native] #content .cart-items .qty .input-group-btn-vertical {
  display: flex;
  flex: 0 0 88px;
  width: 88px;
  height: 42px;
  flex-direction: row;
  position: static;
}

body[data-commerce-native] #main .cart-items .qty .input-group-btn-vertical button,
body[data-commerce-native] #content .cart-items .qty .input-group-btn-vertical button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 42px;
  min-height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid #edf1f6;
  border-radius: 0;
  background: #fff;
  color: var(--commerce-blue);
  font-size: 18px;
}

body[data-commerce-native] #main .cart-items .qty .input-group-btn-vertical button:hover,
body[data-commerce-native] #content .cart-items .qty .input-group-btn-vertical button:hover {
  background: var(--commerce-blue-soft);
}

body[data-commerce-native] #main .cart-items .qty .input-group-btn-vertical .fa,
body[data-commerce-native] #content .cart-items .qty .input-group-btn-vertical .fa {
  font-size: 16px;
}

body[data-commerce-native] #main .cart-items .qty,
body[data-commerce-native] #content .cart-items .qty {
  text-align: left;
}

body[data-commerce-native] #main .cart-items .cart-summary-line > .label,
body[data-commerce-native] #main .cart-items .cart-summary-line > .value,
body[data-commerce-native] #content .cart-items .cart-summary-line > .label,
body[data-commerce-native] #content .cart-items .cart-summary-line > .value {
  display: block;
}

body[data-commerce-native] #main .cart-summary-line > div,
body[data-commerce-native] #content .cart-summary-line > div {
  display: none;
}

@media (max-width: 700px) {
  body[data-commerce-native] #main .cart-items .product-line-grid,
  body[data-commerce-native] #content .cart-items .product-line-grid {
    display: block;
  }

  body[data-commerce-native] #main .cart-items .product-line-grid-right,
  body[data-commerce-native] #content .cart-items .product-line-grid-right {
    margin-top: 14px;
    padding-left: 83px;
  }

  body[data-commerce-native] #main .cart-items .product-line-grid-right > .row,
  body[data-commerce-native] #content .cart-items .product-line-grid-right > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content 44px;
    grid-template-areas: "unit price remove" "qty qty remove";
    gap: 8px 10px;
    width: 100%;
    margin: 0;
    align-items: center;
  }

  body[data-commerce-native] #main .cart-items .product-line-grid-right .unit-price,
  body[data-commerce-native] #content .cart-items .product-line-grid-right .unit-price {
    grid-area: unit;
    text-align: left;
  }

  body[data-commerce-native] #main .cart-items .product-line-grid-right .qty,
  body[data-commerce-native] #content .cart-items .product-line-grid-right .qty {
    grid-area: qty;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  body[data-commerce-native] #main .cart-items .product-line-grid-right .price,
  body[data-commerce-native] #content .cart-items .product-line-grid-right .price {
    grid-area: price;
    text-align: right;
  }

  body[data-commerce-native] #main .cart-items .cart-line-product-actions,
  body[data-commerce-native] #content .cart-items .cart-line-product-actions {
    grid-area: remove;
    align-self: center;
  }
}

/* RC native ETS checkout, 2026-09-13. Presentation only: conditional fields,
   payment forms, provider logos and the existing checkout events stay native. */
body#checkout[data-commerce-native] #form_ets_onepagecheckout {
  color: #14345b;
  font-family: inherit;
}

body#checkout[data-commerce-native] #ets_onepagecheckout {
  margin: 0;
  row-gap: 18px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout > [class*="onepagecheckout-"] {
  min-width: 0;
  padding: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-onepagecheckout {
  margin: 0 0 18px;
  border: 1px solid #dce5f0 !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(20 52 91 / 4%);
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-onepagecheckout > .title-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-top: 0;
  border-bottom: 1px solid #e6edf5;
  border-radius: 14px 14px 0 0;
  background: #fff;
  color: #14345b;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 700;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .title-heading > .ets_icon_svg {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .title-heading > .ets_icon_svg svg {
  width: 20px;
  height: 20px;
  fill: #1956e8 !important;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-onepagecheckout > .block-content {
  padding: 0 18px 16px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .form-group.row {
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 14px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .form-group.row > .form-control-label,
body#checkout[data-commerce-native] #ets_onepagecheckout .form-group.row > .opc_field_right {
  float: none;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  padding: 0;
  text-align: left;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .form-group.row > .form-control-label {
  margin-bottom: 6px;
  color: #14345b;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(#delivery-addresses, #invoice-addresses) > .form-group.row {
  padding-left: 18px;
  padding-right: 18px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(#delivery-addresses, #invoice-addresses) .title {
  margin: 0 18px 14px;
  padding: 0 0 10px;
  color: #14345b;
  border-color: #e6edf5;
  font-family: inherit;
  font-size: 15px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(input.form-control, select.form-control, textarea.form-control) {
  min-height: 44px;
  border: 1px solid #cfdbe9;
  border-radius: 8px;
  background-color: #fff;
  color: #14345b;
  font-size: 15px;
  box-shadow: none;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(input.form-control, textarea.form-control)::placeholder {
  color: #728398 !important;
  opacity: 1;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(input.form-control, select.form-control, textarea.form-control):focus {
  border-color: #1956e8;
  outline: 2px solid rgb(25 86 232 / 16%);
  outline-offset: 1px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  text-align: left;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options label {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #dce5f0;
  border-radius: 8px;
  color: #536a85;
  font-size: 13px;
  line-height: 1.3;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options label:has(input:checked) {
  border-color: #1956e8;
  background: #f0f5ff;
  color: #1746b2;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options label input:checked + span {
  color: #1746b2;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .type-checkout-options label:has(input:focus-visible) {
  outline: 2px solid #1956e8;
  outline-offset: 3px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .row.delivery-option {
  margin: 0 0 9px;
  padding: 12px 8px;
  border: 1px solid #dce5f0;
  border-radius: 9px;
  background: #fff;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .row.delivery-option:has(input:checked) {
  border-color: #1956e8;
  background: #f5f8ff;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .row.delivery-option label,
body#checkout[data-commerce-native] #ets_onepagecheckout .payment-options .payment-option label {
  margin-bottom: 0;
  color: #14345b;
  line-height: 1.5;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .row.delivery-option span.carrier-delay {
  color: #5f7187;
  line-height: 1.4;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .payment-options .payment-option {
  padding: 10px 0;
  border-bottom: 1px solid #e6edf5;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .custom-radio input[type="radio"]:checked + span {
  background-color: #1956e8;
}

body#checkout[data-commerce-native] #ets_onepagecheckout input:checked + .ets_checkbox::before {
  border-color: #1956e8;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .btn-primary {
  min-height: 44px;
  border: 1px solid #1956e8;
  border-radius: 9px;
  background: #1956e8;
  color: #fff;
  font-family: inherit;
  font-weight: 650;
  text-transform: none;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .btn-primary:not(.loading):hover {
  border-color: #1647bf;
  background: #1647bf !important;
  color: #fff !important;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .btn-primary[name="submitCompleteMyOrder"] {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  font-size: 16px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout #conditions-to-approve {
  margin: 14px 0 18px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout #conditions-to-approve label {
  font-size: 13px;
  line-height: 1.5;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .cart-summary-line.cart-total :is(.label, .value),
body#checkout[data-commerce-native] #ets_onepagecheckout .product-price,
body#checkout[data-commerce-native] #ets_onepagecheckout .product-line-info .current-price .price {
  color: #14345b;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .cart-summary-line.cart-total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #dce5f0;
  font-size: 19px;
  font-weight: 700;
}

/* Do not inherit the native theme's blue link color inside the blue drawer CTA. */
body[data-commerce-native] #side-cart.rc-cart a.rc-cart-primary,
body[data-commerce-native] #side-cart.rc-cart a.rc-cart-browse,
body[data-commerce-native] #side-cart.rc-cart a.rc-cart-primary:is(:visited, :hover, :focus-visible),
body[data-commerce-native] #side-cart.rc-cart a.rc-cart-browse:is(:visited, :hover, :focus-visible) {
  color: #fff !important;
}

body[data-commerce-native] #side-cart.rc-cart a.rc-cart-primary > span,
body[data-commerce-native] #side-cart.rc-cart a.rc-cart-browse > span {
  color: #fff !important;
}

@media (min-width: 992px) {
  body#checkout[data-commerce-native] #form_ets_onepagecheckout:is(.layout_1, .layout_3) #ets_onepagecheckout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
  }

  body#checkout[data-commerce-native] #form_ets_onepagecheckout:is(.layout_1, .layout_3) #ets_onepagecheckout > [class*="onepagecheckout-"] {
    width: auto;
    max-width: none;
    flex: none;
  }

  body#checkout[data-commerce-native] #form_ets_onepagecheckout.layout_1 #ets_onepagecheckout > .col-lg-8 > .block-top > .row {
    margin: 0;
  }

  body#checkout[data-commerce-native] #form_ets_onepagecheckout.layout_1 #ets_onepagecheckout > .col-lg-8 > .block-top > .row > [class*="col-"] {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
    padding: 0;
  }

  body#checkout[data-commerce-native] #form_ets_onepagecheckout.layout_3 #ets_onepagecheckout > .onepagecheckout-left {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body#checkout[data-commerce-native] #form_ets_onepagecheckout.layout_3 #ets_onepagecheckout > .onepagecheckout-center,
  body#checkout[data-commerce-native] #form_ets_onepagecheckout.layout_3 #ets_onepagecheckout > .onepagecheckout-right {
    grid-column: 2;
  }
}

@media (max-width: 991px) {
  body#checkout[data-commerce-native] #ets_onepagecheckout > [class*="onepagecheckout-"] {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-onepagecheckout > .title-heading {
    padding: 14px;
    font-size: 16px;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-onepagecheckout > .block-content {
    padding: 0 14px 14px;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout :is(#delivery-addresses, #invoice-addresses) > .form-group.row {
    padding-left: 14px;
    padding-right: 14px;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout :is(input.form-control, select.form-control, textarea.form-control) {
    font-size: 16px;
  }
}

/* ETS embeds a second #main for its order summary. Reset only that nested
   cart: the standalone cart's 12-column layout and sticky totals do not apply. */
body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main > .cart-grid {
  display: block;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-grid-body,
body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-total-action > .row > [class*="col-"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 0 0 100%;
  padding: 0;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-total-action > .row {
  display: block;
  margin: 0;
}

/* An absent voucher creates an empty half-width column in ETS layout_1.
   A voucher with any rendered element remains available at full width. */
body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-total-action > .row > [class*="col-"]:has(> .cart-summary:not(:has(*))) {
  display: none;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main :is(.card, .card-block, .cart-overview, .cart-detailed-totals) {
  position: static;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #14345b;
  box-shadow: none;
  overflow: visible;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  background: #fff;
  color: #536a85;
  border: 0;
  border-radius: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-line > :is(.label, .value) {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0;
  color: inherit;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-line > .value {
  margin-left: auto;
  text-align: right;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-totals .cart-total {
  margin-top: 9px;
  padding: 15px 0 4px;
  border-top: 1px solid #dce5f0;
  background: #fff;
  color: #14345b;
  font-size: 19px;
  font-weight: 700;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-totals .cart-total > :is(.label, .value) {
  color: #14345b;
  font-size: inherit;
  font-weight: inherit;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main ul.cart-items {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #e6edf5;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-item {
  margin: 0;
  padding: 12px 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px 12px;
  width: 100%;
  margin: 0;
  align-items: start;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid > :is(.product-line-grid-left, .product-line-grid-body, .product-line-grid-right) {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  float: none;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-left {
  grid-column: 1;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-left .product-image {
  width: 68px;
  height: 68px;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-left img {
  width: 68px;
  height: 68px;
  max-width: 100%;
  object-fit: contain;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-body {
  grid-column: 2;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product_info_name a.label {
  color: #14345b;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-right {
  grid-column: 1 / -1;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .product-line-grid-right > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  grid-template-areas: none;
  gap: 8px;
  align-items: center;
  width: 100%;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_info_price_mobile,
body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .ets_remove_cart {
  width: 100%;
  max-width: none;
  padding: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_info_price_mobile > .row {
  display: flex;
  width: 100%;
  max-width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_info_price_mobile > .row > :is(.qty, .form_price, .form_total_price) {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_info_price_mobile > .row > .form_total_price {
  margin-left: auto;
  text-align: right;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .bootstrap-touchspin {
  width: 122px;
  flex-basis: 122px;
  height: 44px;
  min-height: 44px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .bootstrap-touchspin input.js-cart-line-product-quantity {
  position: absolute;
  left: 40px;
  top: 0;
  margin: 0;
  width: 40px;
  min-width: 40px;
  flex-basis: 40px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  font-size: 16px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .input-group-btn-vertical {
  width: 80px;
  min-width: 80px;
  flex-basis: 80px;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .input-group-btn-vertical button {
  width: 40px;
  min-width: 40px;
  flex-basis: 40px;
  height: 42px;
  min-height: 42px;
  padding: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-line-product-actions {
  grid-area: auto;
  margin: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main a.remove-from-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 44px;
  padding: 0;
}

body#checkout[data-commerce-native] #ets_onepagecheckout :is(#delivery-addresses, #invoice-addresses) > .js-address-form {
  padding: 0 18px 4px;
}

@media (max-width: 575px) {
  body#checkout[data-commerce-native] #ets_onepagecheckout :is(#delivery-addresses, #invoice-addresses) > .js-address-form {
    padding-right: 14px;
    padding-left: 14px;
  }
}

/* Mobile ETS summary: one quantity/line-total/remove row. */
@media (max-width: 575px) {
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main {
    padding: 0 !important;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .ets_remove_cart {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    margin: 0;
    transform: none;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_price.hidden_desktop,
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty::before,
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_total_price::before {
    display: none;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_info_price_mobile > .row {
    flex-wrap: nowrap;
    gap: 8px;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .form_total_price .product-price {
    margin: 0;
    color: #14345b;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-totals .cart-total {
    flex-wrap: nowrap;
    gap: 8px;
    font-size: 16px;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-totals .cart-total > .label {
    min-width: 0;
    font-size: 14px;
    line-height: 1.4;
  }

  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .cart-summary-totals .cart-total > .value {
    flex-shrink: 0;
    font-size: 16px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .bootstrap-touchspin {
    width: 98px;
    flex-basis: 98px;
  }
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .bootstrap-touchspin input.js-cart-line-product-quantity {
    width: 32px;
    min-width: 32px;
    flex-basis: 32px;
    left: 32px;
  }
  body#checkout[data-commerce-native] #ets_onepagecheckout .block-shopping-cart #main .qty .input-group-btn-vertical button {
    width: 32px;
    min-width: 32px;
    flex-basis: 32px;
  }
}
