/*
 * Spazio Casa CRO — cart v2 responsive hotfix
 * Load after sc-cart-v1.css.
 *
 * Scope: presentation only. Prices, quantities and checkout logic remain
 * managed by PrestaShop.
 */

html.sc-cart-layout-pending #center_column > * {
  visibility: hidden !important;
}

body#order-opc.sc-cart-v2-empty-ready
  #center_column
  > .sc-cart-v2-hidden {
  display: none !important;
}

body#order-opc .sc-cart-v2-empty-cart-eyebrow {
  display: block;
  margin: 0 0 8px;
  color: #dc342f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body#order-opc .sc-cart-v2-empty-cart-icon {
  display: grid;
  place-items: center;
  font-size: 0;
  line-height: normal;
}

body#order-opc .sc-cart-v2-empty-cart-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

@media (max-width: 767px) {
  html.sc-cart-layout-pending #center_column::before {
    min-height: 210px;
    margin: 20px 0 36px;
  }
}

html.sc-cart-layout-pending #center_column::before {
  display: block;
  min-height: 260px;
  margin: 32px 0 56px;
  border: 1px solid #e3e7eb;
  border-radius: 14px;
  background:
    linear-gradient(90deg, #f4f6f8 25%, #fafbfc 37%, #f4f6f8 63%);
  background-size: 400% 100%;
  content: "";
  animation: sc-cart-layout-loading 1.25s ease infinite;
}

@keyframes sc-cart-layout-loading {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* The theme's right rail becomes a full-width black bar on iOS portrait and
 * covers checkout fields. It is redundant because the cart has its own CTA. */
body#order-opc.sc-cart-v1-ready #rightbar,
body#order-opc.sc-cart-v1-ready #to_top_wrap,
body#order-opc.sc-cart-v1-ready #cart_wrap {
  display: none !important;
}

/* A direct visit to an empty checkout must provide a clear recovery path
 * instead of leaving an unexplained white area between header and footer. */
body#order-opc .sc-cart-v2-empty-cart {
  box-sizing: border-box;
  width: min(680px, calc(100% - 32px));
  margin: 48px auto 64px;
  padding: 40px 32px;
  border: 1px solid #e2e6eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(27, 38, 49, 0.08);
  text-align: center;
}

body#order-opc .sc-cart-v2-empty-cart-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #fff0ef;
  color: #dc342f;
  font-size: 27px;
  line-height: 58px;
}

body#order-opc .sc-cart-v2-empty-cart h1 {
  margin: 0 0 12px;
  color: #25292d;
  font-size: 26px;
  line-height: 1.25;
}

body#order-opc .sc-cart-v2-empty-cart p {
  max-width: 520px;
  margin: 0 auto 24px;
  color: #646b73;
  font-size: 15px;
  line-height: 1.55;
}

body#order-opc .sc-cart-v2-empty-cart-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dc342f;
  border-radius: 12px;
  background: #dc342f;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

body#order-opc .sc-cart-v2-empty-cart-cta:hover,
body#order-opc .sc-cart-v2-empty-cart-cta:focus {
  border-color: #bd2723;
  background: #bd2723;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  body#order-opc .sc-cart-v2-empty-cart {
    margin: 24px auto 40px;
    padding: 30px 20px;
    border-radius: 16px;
  }

  body#order-opc .sc-cart-v2-empty-cart h1 {
    font-size: 22px;
  }

  body#order-opc .sc-cart-v2-empty-cart-cta {
    width: 100%;
  }
}

/* Keep the visual step badge on the nested span while preserving a single
 * page-level H1 and semantic H2 headings for the checkout steps. */
body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-checkout-step
  > h2.page-heading {
  display: flex;
  width: auto;
  height: auto;
  align-items: center;
  margin: 0 0 18px;
  border-radius: 0;
  background: transparent;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-checkout-step
  > h2.page-heading
  > span.step-num {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: #dc342f;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

/* Applied by sc-cart-v2.js to the real Uniform checkbox container. */
body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v2-hidden {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-hidden {
  display: none !important;
}

/* A visible secondary CTA keeps registered customers inside the checkout. */
body#order-opc.sc-cart-v1-ready .sc-cart-v2-login-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #2f343b;
  border-radius: 9px;
  background: transparent;
  color: #24282e;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-login-cta:hover,
body#order-opc.sc-cart-v1-ready .sc-cart-v2-login-cta:focus {
  border-color: #dc342f;
  background: transparent;
  color: #b8231e;
  text-decoration: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-voucher-fields.sc-cart-v2-open {
  display: flex !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-summary #cart_voucher,
body#order-opc.sc-cart-v1-ready .sc-cart-v1-summary #voucher,
body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  .sc-cart-v1-voucher-fields {
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  .sc-cart-v1-voucher-fields
  #discount_name {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  max-width: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  .sc-cart-v1-voucher-fields
  button[type='submit'] {
  flex: 0 0 auto;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  .sc-cart-v1-voucher-fields
  .sc-cart-discount-message {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 100% !important;
  margin: 7px 0 0 !important;
  padding: 8px 10px !important;
  border-radius: 7px;
  font-size: 11px !important;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  .sc-cart-v1-voucher-fields
  .sc-cart-discount-message
  br {
  display: none;
}

body#order-opc.sc-cart-v1-ready #login_form_content {
  max-width: none;
  margin-top: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body#order-opc.sc-cart-v1-ready
  #login_form_content.sc-cart-v2-login-open {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "error error error"
    "email password submit"
    "forgot forgot .";
  gap: 8px 10px;
  align-items: start;
}

body#order-opc.sc-cart-v1-ready #login_form_content .form-group,
body#order-opc.sc-cart-v1-ready #login_form_content .submit {
  display: block !important;
  min-width: 0;
  margin: 0;
}

body#order-opc.sc-cart-v1-ready #login_form_content .form-group label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body#order-opc.sc-cart-v1-ready #login_form_content .form-control {
  width: 100%;
  height: 46px;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready #login_form_content .lost_password {
  grid-area: forgot;
  margin: 0;
  align-self: center;
}

body#order-opc.sc-cart-v1-ready #login_form_content #opc_login_errors {
  grid-area: error;
}

body#order-opc.sc-cart-v1-ready
  #login_form_content .sc-cart-v2-login-email {
  grid-area: email;
}

body#order-opc.sc-cart-v1-ready
  #login_form_content .sc-cart-v2-login-password {
  grid-area: password;
}

body#order-opc.sc-cart-v1-ready
  #login_form_content .sc-cart-v2-login-submit {
  grid-area: submit;
}

body#order-opc.sc-cart-v1-ready
  #login_form_content #opc_login_errors.sc-cart-v2-login-error {
  display: flex !important;
  min-height: 38px;
  align-items: center;
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #efb7b5;
  border-radius: 9px;
  background: #fff4f3;
  color: #8c211e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready #login_form_content #SubmitLogin {
  min-height: 46px;
  padding-right: 22px;
  padding-left: 22px;
  border: 1px solid #dc342f;
  border-radius: 9px;
  background: #dc342f;
  color: #fff;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #new_account_form {
  border-radius: 12px;
  overflow: visible;
}

body#order-opc.sc-cart-v1-ready #opc_account_form {
  border-radius: inherit;
}

body#order-opc.sc-cart-v1-ready #new_account_form .opc-button {
  margin: 0 0 14px;
}

body#order-opc.sc-cart-v1-ready
  :is(
    #opc_guestCheckout,
    #submitGuestAccount,
    #SubmitLogin,
    .sc-cart-v1-checkout,
    .sc-cart-v1-mobile-bar button
  ) {
  border-color: #dc342f !important;
  background: #dc342f !important;
  color: #fff !important;
}

body#order-opc.sc-cart-v1-ready #opc_guestCheckout {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-width: 1px;
  border-style: solid;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body#order-opc.sc-cart-v1-ready
  :is(
    #opc_guestCheckout,
    #submitGuestAccount,
    #SubmitLogin,
    .sc-cart-v1-checkout,
    .sc-cart-v1-mobile-bar button
  ):hover {
  border-color: #bd2723 !important;
  background: #bd2723 !important;
}

/* Nearly every delivery field is required: keep the requirement accessible,
 * remove repetitive stars, and show errors only after an attempted submit. */
body#order-opc.sc-cart-v1-ready #opc_account_form sup {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-has-error input,
body#order-opc.sc-cart-v1-ready .sc-cart-v2-has-error select,
body#order-opc.sc-cart-v1-ready .sc-cart-v2-has-error .selector {
  border-color: #c62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .12) !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-field-error {
  display: block;
  width: 61%;
  margin-left: 39%;
  margin-top: 6px;
  color: #a51f1f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_errors.sc-cart-v2-account-errors {
  display: block !important;
  margin: 0 0 14px;
  padding: 11px 13px;
  border: 1px solid #efb7b5;
  border-radius: 9px;
  background: #fff4f3;
  color: #8c211e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_errors.sc-cart-v2-account-errors :is(ol, ul) {
  margin: 0;
  padding-left: 19px;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_errors.sc-cart-v2-account-errors li + li {
  margin-top: 5px;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-business-fields
  .sc-cart-v2-pair-error {
  grid-column: 1 / -1;
  width: 100%;
  margin: -2px 0 3px;
}

body#order-opc.sc-cart-v1-ready
  #sc-cart-v2-business-fields
  .sc-cart-v2-business-field
  .sc-cart-v2-field-error,
body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-account-intro
  .sc-cart-v2-field-error {
  width: 100%;
  max-width: 100%;
  margin: 6px 0 0;
  text-align: left;
}

/* Bring legacy Uniform selects in line with the rounded input system. */
body#order-opc.sc-cart-v1-ready #opc_account_form .selector {
  position: relative;
  display: inline-block;
  float: none;
  width: 38% !important;
  height: 46px;
  margin: 0;
  padding-left: 0;
  vertical-align: top;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .selector span {
  display: flex;
  width: 100% !important;
  height: 44px;
  align-items: center;
  padding: 0 42px 0 14px;
  background: transparent;
  color: #30343a;
  line-height: 1.2;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .selector::after {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5b626b;
  border-bottom: 2px solid #5b626b;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form .selector > select.form-control {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  max-width: none !important;
  height: 46px;
  cursor: pointer;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .form-group {
  min-height: 46px;
  margin-bottom: 8px !important;
}

/* The mobile phone field already has contextual validation. Do not show a
 * warning before the customer has attempted to save the form. */
body#order-opc.sc-cart-v1-ready #opc_account_form > p.inline-infos.required {
  display: none !important;
}

/* Invisible reCAPTCHA must not reserve a visible form row. The security badge
 * remains fixed by Google and server-side failures are shown in the alert. */
body#order-opc.sc-cart-v1-ready #opc_account_form #g-recaptcha {
  min-height: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .submit.opc-add-save {
  min-height: 0;
  height: auto;
  margin: 12px 0 0;
  padding: 0;
  border-top: 0;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .submit.opc-add-save
  .opc-required {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-account-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 2px 0 12px;
  padding: 12px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f8f9fa;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-type {
  display: flex;
  width: 100%;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-type legend {
  display: block;
  flex: 0 0 100%;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: #30343a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v2-account-email {
  display: flex !important;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 !important;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v2-account-email label {
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: #30343a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left !important;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v2-account-email input {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 46px;
  margin: 0;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-choice {
  position: relative;
  margin: 0;
  cursor: pointer;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-customer-choice > .radio {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden;
  opacity: 0;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-choice span {
  display: inline-flex;
  min-width: 92px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid #cfd5dc;
  border-radius: 8px;
  background: #fff;
  color: #343a40;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-customer-choice.is-selected > span {
  border-color: #dc342f;
  background: #dc342f;
  color: #fff;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-customer-choice input:focus-visible + span {
  outline: 3px solid rgba(30, 111, 217, .45);
  outline-offset: 2px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-business-fields {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-business-fields.sc-cart-v2-business-open {
  display: grid;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-business-fields
  .sc-cart-v2-business-field {
  display: flex !important;
  min-height: 0;
  flex-direction: column;
  margin: 0 !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-business-fields
  .sc-cart-v2-business-field:first-child {
  grid-column: 1 / -1;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  #sc-cart-v2-business-fields
  .sc-cart-v2-business-field label {
  width: 100%;
  margin: 0 0 5px;
  padding: 0;
  color: #3b4046;
  font-size: 13px;
  font-weight: 700;
  text-align: left !important;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  #sc-cart-v2-business-fields
  .sc-cart-v2-business-field input {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 46px;
  margin: 0;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-business-help {
  grid-column: 1 / -1;
  margin-top: 1px;
  color: #6f767e;
  font-size: 12px;
  line-height: 1.4;
}

/* Keep checkbox copy immediately to the right of the control. */
body#order-opc.sc-cart-v1-ready #opc_account_form label.checkbox,
body#order-opc.sc-cart-v1-ready #opc_account_form .checkbox label {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 9px;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready #opc_account_form label.checkbox .checker,
body#order-opc.sc-cart-v1-ready #opc_account_form .checkbox label .checker {
  flex: 0 0 auto;
  margin: 1px 0 0;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-delivery-notes {
  margin-bottom: 0;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-delivery-notes textarea {
  margin-bottom: 0 !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-note-help {
  display: block;
  margin-top: 5px;
}

body#order-opc.sc-cart-v1-ready #opc_delivery_methods {
  border-radius: 12px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-payment-grid span {
  min-height: 52px;
  font-size: 15px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-payment-grid b {
  font-size: 16px;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-payment-preview
  .sc-cart-v1-payment-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-payment-step.sc-cart-v2-payment-ready
  .sc-cart-v1-payment-preview {
  display: none;
}

body#order-opc.sc-cart-v1-ready #opc_payment_methods[aria-busy="true"] {
  min-height: 58px;
  opacity: .7;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-payment-pending {
  border-radius: 9px;
  font-weight: 600;
}

body#order-opc.sc-cart-v1-ready #opc_payment_methods.sc-cart-v2-payment-empty {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-separated-package {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #dfe4e8;
  border-radius: 9px;
  background: #f8f9fa;
}

/* Sticky fallback: the theme makes body the scrolling container, which
 * prevents native position:sticky from following the viewport. */
@media (min-width: 992px) {
  .sc-cart-v2-sticky-shell {
    position: relative;
  }

  .sc-cart-v1-summary.sc-cart-v2-summary-fixed {
    position: fixed !important;
    z-index: 20;
    top: var(--sc-summary-top, 64px) !important;
    left: var(--sc-summary-left) !important;
    width: var(--sc-summary-width) !important;
  }

  .sc-cart-v1-summary.sc-cart-v2-summary-bottom {
    position: absolute !important;
    top: auto !important;
    right: 0;
    bottom: 0;
    left: auto !important;
    width: var(--sc-summary-width) !important;
  }
}

/* Preserve a visible keyboard focus indicator on all custom controls. */
body#order-opc.sc-cart-v1-ready
  :is(
    .sc-cart-v1-checkout,
    .sc-cart-v1-mobile-bar button,
    .sc-cart-v1-voucher-toggle,
    .sc-cart-v1-fiscal-toggle,
    .sc-cart-v1-continue,
    .cart_quantity_button a,
    .cart_quantity_delete
  ):focus-visible {
  outline: 3px solid rgba(30, 111, 217, .45);
  outline-offset: 2px;
}

/* iPad portrait and other narrow tablets do not have enough usable content
 * width for a cart + sticky summary side by side. */
@media (min-width: 768px) and (max-width: 991px) {
  .sc-cart-v1-shell {
    display: flex;
    gap: 18px;
    flex-direction: column;
  }

  .sc-cart-v1-products {
    order: 1;
  }

  .sc-cart-v1-summary {
    position: static;
    order: 2;
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .sc-cart-v1-continue {
    order: 3;
  }

  .sc-cart-v1-checkout-step {
    scroll-margin-top: 96px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary tbody tr {
    grid-template-columns: 132px minmax(0, 1fr) 112px 52px;
    grid-template-areas:
      "image description unit total"
      "image description quantity delete"
      "image availability quantity delete";
    gap: 8px 16px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_product img {
    width: 132px;
    height: 132px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_unit {
    display: block;
  }
}

@media (max-width: 767px) {
  body#order-opc.sc-cart-v1-ready {
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }

  .sc-cart-v1-checkout-step {
    scroll-margin-top: 92px;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-field-error {
    width: 100% !important;
    margin-left: 0 !important;
  }

  body#order-opc.sc-cart-v1-ready #opc_account_form .selector {
    display: block;
    float: none;
    width: 100% !important;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-account-intro {
    grid-template-columns: 1fr;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-account-email {
    order: -1;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-type {
    flex-wrap: wrap;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-type legend {
    flex: 0 0 100%;
    margin-bottom: 7px;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-choice {
    flex: 1 1 0;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-customer-choice span {
    width: 100%;
    min-width: 0;
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-business-fields {
    grid-template-columns: 1fr;
  }

  body#order-opc.sc-cart-v1-ready
    .sc-cart-v2-business-fields
    .sc-cart-v2-business-field:first-child {
    grid-column: 1;
  }

  body#order-opc.sc-cart-v1-ready
    #login_form_content.sc-cart-v2-login-open {
    grid-template-columns: 1fr;
    grid-template-areas:
      "error"
      "email"
      "password"
      "forgot"
      "submit";
  }

  body#order-opc.sc-cart-v1-ready #login_form_content .lost_password {
    grid-area: forgot;
  }

  /* Keep availability on two clean lines. The v1 inline-flex override caused
   * the delivery estimate to collide with the product total on real iOS. */
  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail span {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    grid-template-rows: auto auto;
    width: 100%;
    max-width: 100%;
    gap: 2px 6px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail span::before {
    grid-column: 1;
    grid-row: 1;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail strong {
    grid-column: 2;
    grid-row: 1;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail small {
    grid-column: 2;
    grid-row: 2;
    max-width: 28ch;
  }

  .sc-cart-v1-mobile-bar {
    min-height: calc(70px + env(safe-area-inset-bottom));
  }

  .sc-cart-v1-mobile-bar button {
    min-width: min(168px, 52vw);
  }

  /* Android Chrome keeps fixed elements above the virtual keyboard. Hide the
   * checkout bar only while the customer is editing a field, then restore it
   * automatically when focus leaves the form control. */
  body#order-opc.sc-cart-v1-ready.sc-cart-v2-keyboard-open
    .sc-cart-v1-mobile-bar {
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(120%) !important;
  }
}

@media (max-width: 360px) {
  .sc-cart-v1-mobile-bar {
    gap: 9px;
  }

  .sc-cart-v1-mobile-total strong {
    font-size: 17px;
  }

  .sc-cart-v1-mobile-bar button {
    min-width: 154px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 14px;
  }
}

/* Account entry points: login stays primary for returning customers, while
 * registration is a clearly secondary, non-blocking choice. */
body#order-opc.sc-cart-v1-ready .sc-cart-v2-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-register-cta {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 18px;
  border: 1px solid #2f343b;
  border-radius: 9px;
  background: #fff;
  color: #24282e;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-register-cta:hover,
body#order-opc.sc-cart-v1-ready .sc-cart-v2-register-cta:focus {
  border-color: #dc342f;
  color: #b8231e;
}

/* Logged-in customers receive a dedicated address step instead of falling
 * back to the compact legacy PrestaShop address list. */
body#order-opc.sc-cart-v1-ready
  #opc_account.sc-cart-v2-auth-account {
  padding: 20px;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 38, 45, .04);
  overflow: visible;
}

body#order-opc.sc-cart-v1-ready
  #opc_account
  > .sc-cart-v2-auth-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready
  #opc_account
  > .sc-cart-v2-auth-heading
  > .step-num {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #dc342f;
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-auth-intro {
  margin: 0 0 17px;
  color: #676e75;
  font-size: 13px;
  line-height: 1.45;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses
  > .row {
  margin-right: 0;
  margin-left: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses
  > .row
  > [class*="col-"] {
  float: none !important;
  width: auto;
  padding: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 15px;
  padding: 14px;
  border-radius: 11px;
  background: #f7f8fa;
}

body#order-opc.sc-cart-v1-ready
  :is(.sc-cart-v2-auth-controls, .sc-cart-v2-auth-cards)::before,
body#order-opc.sc-cart-v1-ready
  :is(.sc-cart-v2-auth-controls, .sc-cart-v2-auth-cards)::after {
  display: none !important;
  content: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-controls
  > [class*="col-"] {
  grid-column: 1;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-select {
  margin: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-select
  > label {
  display: block;
  margin: 0 0 6px;
  color: #343a40;
  font-size: 13px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 46px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector::after {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #5f666d;
  border-bottom: 2px solid #5f666d;
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector
  > span {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector
  > select {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 44px !important;
  margin: 0;
  padding: 0 38px 0 13px;
  border: 0 !important;
  background: #fff;
  color: #343a40;
  -webkit-appearance: none;
  appearance: none;
  opacity: 1 !important;
  font-size: 14px;
  cursor: pointer;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector
  > select.sc-cart-v2-native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-custom-selector::after {
  z-index: 3;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-custom-address-select {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 46px;
}

body#order-opc.sc-cart-v1-ready
  .selector.sc-cart-v2-custom-open,
body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-custom-address-select.sc-cart-v2-custom-open {
  z-index: 120;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-trigger {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  align-items: center;
  padding: 0 42px 0 13px;
  border: 1px solid #d6dce2;
  border-radius: 9px;
  background: #fff;
  color: #343a40;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-trigger:focus {
  outline: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-trigger
  .sc-cart-v2-address-trigger-text {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  background: none;
  color: inherit;
  line-height: inherit;
}

body#order-opc.sc-cart-v1-ready
  .selector.sc-cart-v2-custom-open
  .sc-cart-v2-address-trigger {
  border-color: #dc342f;
  box-shadow: 0 0 0 3px rgba(220, 52, 47, .11);
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-listbox {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: -1px;
  left: -1px;
  max-height: 258px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d6dce2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(32, 37, 42, .16);
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-listbox[hidden] {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-option {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 8px 38px 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #343a40;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.3;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-option:hover,
body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-option:focus {
  background: #f5f6f8;
  color: #20252a;
  outline: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-option-selected {
  background: #fff1f0;
  color: #b8231e;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-address-option-selected::after {
  position: absolute;
  right: 13px;
  color: #dc342f;
  content: "✓";
  font-size: 15px;
  font-weight: 800;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-custom-address-single
  .sc-cart-v2-address-trigger {
  padding-right: 13px;
  cursor: default;
}

body#order-opc.sc-cart-v1-ready
  .selector.sc-cart-v2-custom-address-single::after {
  display: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  #address_invoice_form {
  margin: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  #address_invoice_form
  .selector {
  width: 100% !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-original-same-address {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-different-invoice-choice {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0 13px;
  border: 1px solid #d6dce2;
  border-radius: 9px;
  background: #fff;
  color: #4f565e;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-different-invoice-choice
  input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #dc342f;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses:not(.sc-cart-v2-has-separate-invoice)
  #address_invoice_form,
body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses:not(.sc-cart-v2-has-separate-invoice)
  .sc-cart-v2-auth-invoice-column {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses:not(.sc-cart-v2-has-separate-invoice)
  .sc-cart-v2-auth-delivery-column {
  grid-column: 1 / -1;
  width: auto !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector.sc-cart-v2-auth-single-address::after {
  display: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .selector.sc-cart-v2-auth-single-address
  > select {
  padding-right: 13px;
  cursor: default;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .addressesAreEquals {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin: 10px 0 0;
  color: #5f666d;
  font-size: 13px;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-account
  .addressesAreEquals
  .checker {
  flex: 0 0 auto;
  margin: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-address-card {
  box-sizing: border-box;
  width: 100%;
  min-height: 112px;
  margin: 0;
  padding: 16px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  background: #fff;
  list-style: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-address-card
  .page-subheading {
  margin: 0 0 14px;
  color: #292e33;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-address-card
  > li:not(.address_title):not(.address_update):not(.sc-cart-v2-auth-address-details) {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-address-details {
  display: grid;
  gap: 3px;
  margin: -4px 0 14px;
  color: #565d65;
  font-size: 13px;
  line-height: 1.38;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-address-details
  span:first-child {
  color: #30363c;
  font-weight: 600;
}

body#order-opc.sc-cart-v1-ready
  :is(
    .sc-cart-v2-auth-address-action,
    .sc-cart-v2-auth-add-address
  ) {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #cfd5dc;
  border-radius: 9px;
  background: #fff;
  color: #343a40;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

body#order-opc.sc-cart-v1-ready
  :is(
    .sc-cart-v2-auth-address-action,
    .sc-cart-v2-auth-add-address
  ):hover,
body#order-opc.sc-cart-v1-ready
  :is(
    .sc-cart-v2-auth-address-action,
    .sc-cart-v2-auth-add-address
  ):focus {
  border-color: #dc342f;
  color: #b8231e;
  text-decoration: none;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-auth-addresses
  .address_add {
  margin: 14px 0 0;
}

/* Success feedback follows the same rounded, compact alert system used by
 * field validation instead of the legacy full-width green rectangle. */
body#order-opc.sc-cart-v1-ready
  #opc_account_saved.sc-cart-v2-account-saved {
  position: relative;
  min-height: 46px;
  align-items: center;
  margin: 12px 0 0;
  padding: 12px 14px 12px 45px;
  border: 1px solid #a9d9b2;
  border-radius: 10px;
  background: #eff9f1;
  color: #256b35;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_saved.sc-cart-v2-account-saved::before {
  position: absolute;
  top: 50%;
  left: 14px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #36a852;
  color: #fff;
  content: "✓";
  font-size: 13px;
  transform: translateY(-50%);
}

body#order-opc.sc-cart-v1-ready
  #opc_account_saved.sc-cart-v2-account-saved[style*="display: block"],
body#order-opc.sc-cart-v1-ready
  #opc_account_saved.sc-cart-v2-account-saved[style=""] {
  display: flex !important;
}

/* The legacy OPC replaces the delivery HTML after an address save. These
 * selectors restore the checkout card without hiding carrier information. */
body#order-opc.sc-cart-v1-ready #carrier_area.sc-cart-v1-checkout-step {
  overflow: visible;
}

body#order-opc.sc-cart-v1-ready
  #carrier_area
  > h2.page-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border-radius: 0;
  background: transparent;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready
  #carrier_area
  > h2.page-heading
  > .step-num {
  display: inline-grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  margin: 0;
  place-items: center;
  border-radius: 50%;
  background: #dc342f;
  color: #fff;
  font-size: 14px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-delivery-intro {
  margin: 0 0 14px;
  color: #6b7178;
  font-size: 13px;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods.sc-cart-v2-delivery-methods {
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .order_carrier_content.box {
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v2-carrier-title,
body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v2-note-title {
  margin: 0 0 8px;
  color: #292d32;
  font-size: 14px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods.sc-cart-v1-delivery-locked
  .delivery_options_address {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v2-delivery-option {
  margin: 0 0 14px;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v2-delivery-table {
  display: table;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  table-layout: fixed;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f8fafb;
  overflow: hidden;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v2-delivery-table td {
  float: none !important;
  box-sizing: border-box;
  padding: 12px;
  border-color: #e3e7eb;
  vertical-align: middle;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  td.delivery_option_radio {
  width: 52px;
  text-align: center;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  td.delivery_option_logo {
  width: 92px;
  text-align: center;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  td.delivery_option_logo img {
  width: auto;
  max-width: 64px;
  max-height: 58px;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  td.white_space_normal {
  width: auto;
  color: #42474d;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  td.delivery_option_price {
  width: 108px;
  color: #287b3d;
  font-weight: 700;
  text-align: center;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v1-delivery-notes {
  margin: 0;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .sc-cart-v1-delivery-notes
  textarea {
  min-height: 86px;
  margin: 0 !important;
  border: 1px solid #d8dde3;
  border-radius: 9px;
  resize: vertical;
}

/* Real payment modules inherit the same visual language as the preview and
 * remain genuine links to the module checkout page. */
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > .row,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > .row
  > [class*="col-"] {
  display: contents !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > .row::before,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > .row::after {
  display: none !important;
  content: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-single {
  grid-template-columns: minmax(0, 1fr);
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > form,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > script,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT.sc-cart-v2-payment-options
  > style {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .payment_module {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-disabled {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-message-empty {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .payplugPayment_error:not(.sc-cart-v2-payment-message-empty) {
  grid-column: 1 / -1;
  width: 100% !important;
  margin: 0 !important;
}

body#order-opc.sc-cart-v1-ready .payplugOneyCta_wrapper,
body#order-opc.sc-cart-v1-ready
  #cart_summary_total
  tr.sc-cart-v2-payment-disabled {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-option {
  display: grid;
  height: 100%;
  min-height: 76px;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #fff !important;
  color: #2f3439;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-option::before,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-option::after {
  display: none !important;
  content: none !important;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-option:hover,
body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-option:focus {
  border-color: #dc342f;
  box-shadow: 0 4px 14px rgba(220, 52, 47, .12);
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 9px;
  background: #f4f6f8;
  color: #dc342f;
  font-size: 17px;
  font-weight: 800;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-copy strong {
  font-size: 15px;
  line-height: 1.3;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-copy small {
  color: #6b7178;
  font-size: 12px;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-payment-option.sc-cart-v2-payment-option-selected {
  border-color: #dc342f !important;
  background: #fff7f6 !important;
  box-shadow: 0 0 0 2px rgba(220, 52, 47, 0.12) !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-payment-option.sc-cart-v2-payment-option-selected
  .sc-cart-v2-payment-arrow {
  color: #dc342f;
  font-size: 0;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v2-payment-option.sc-cart-v2-payment-option-selected
  .sc-cart-v2-payment-arrow::after {
  content: "✓";
  font-size: 20px;
  font-weight: 800;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-selection-status {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid #b9dfc4;
  border-radius: 10px;
  background: #f0faf3;
  color: #246b38;
  font-size: 13px;
  line-height: 1.45;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-provider-error {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 14px 0 16px !important;
  padding: 14px 16px !important;
  border: 1px solid #efb4b1 !important;
  border-radius: 10px;
  background: #fff6f5 !important;
  box-shadow: none;
  color: #76211e;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-provider-error-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: #dc342f;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-provider-error-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-provider-error-copy strong {
  color: #76211e;
  font-size: 14px;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-provider-error-copy > span {
  color: #7b3c39;
  font-size: 12px;
  line-height: 1.45;
}

/* Unified post-checkout confirmation. Payment modules keep rendering their
 * server-side instructions inside the same stable success layout. */
body#order-confirmation #center_column {
  float: none;
  width: 100%;
}

body#order-confirmation {
  background: #fafafa;
}

body#order-confirmation #nt-container,
body#order-confirmation .nt-pusher,
body#order-confirmation .nt-content,
body#order-confirmation .nt-content-inner,
body#order-confirmation #body_wrapper,
body#order-confirmation #columns {
  min-height: 0 !important;
}

body#order-confirmation #header,
body#order-confirmation #breadcrumb_wrapper,
body#order-confirmation #footer,
body#order-confirmation #rightbar,
body#order-confirmation #leftbar,
body#order-confirmation #side_products_cart,
body#order-confirmation #side_ntmobilemenu {
  display: none !important;
}

body#order-confirmation .sc-order-confirmation-site-header {
  display: flex;
  width: 100vw;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-left: calc(50% - 50vw);
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #dfe3e8;
  background: #fff;
}

body#order-confirmation .sc-order-confirmation-logo {
  display: inline-flex;
  border-radius: 6px;
}

body#order-confirmation .sc-order-confirmation-site-header img {
  display: block;
  width: 228px;
  max-width: 52vw;
  height: auto;
}

body#order-confirmation .sc-order-confirmation-secure {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #6b7179;
  font-size: 13px;
}

body#order-confirmation .sc-order-confirmation {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 60px;
  color: #24272c;
}

/* Trusted Shops remains available through its compact badge, but its initial
 * trustcard must not obscure the order reference or payment instructions. */
body#order-confirmation.sc-order-confirmation-ts-initializing
  #trustcard-container {
  opacity: 0 !important;
  pointer-events: none !important;
}

body#order-confirmation .sc-order-confirmation-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 30px;
  border: 1px solid #cfe7d7;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9f2, #fff);
}

body#order-confirmation .sc-order-confirmation-check {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #2aa85e;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

body#order-confirmation .sc-order-confirmation-hero h1 {
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: #24272c;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.12;
  text-transform: none;
}

body#order-confirmation .sc-order-confirmation-hero p {
  margin: 0;
  color: #42634e;
  line-height: 1.5;
}

body#order-confirmation .sc-order-confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

body#order-confirmation .sc-order-confirmation-content {
  display: grid;
  gap: 18px;
}

body#order-confirmation .sc-order-confirmation-card {
  padding: 24px;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 27, 38, .04);
}

body#order-confirmation .sc-order-confirmation-card h2 {
  margin: 0 0 17px;
  padding: 0;
  border: 0;
  color: #24272c;
  font-size: 21px;
  text-transform: none;
}

body#order-confirmation .sc-order-confirmation-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

body#order-confirmation .sc-order-confirmation-fact {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  background: #f6f7f9;
}

body#order-confirmation .sc-order-confirmation-fact span,
body#order-confirmation .sc-order-confirmation-fact strong {
  display: block;
}

body#order-confirmation .sc-order-confirmation-fact span {
  margin-bottom: 6px;
  color: #6b7179;
  font-size: 12px;
}

body#order-confirmation .sc-order-confirmation-fact strong {
  overflow-wrap: anywhere;
}

body#order-confirmation .sc-order-confirmation-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 12px;
  background: #eef5fc;
}

body#order-confirmation .sc-order-confirmation-status > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #2f7fca;
  color: #fff;
  font-weight: 800;
}

body#order-confirmation .sc-order-confirmation-status strong,
body#order-confirmation .sc-order-confirmation-status small {
  display: block;
}

body#order-confirmation .sc-order-confirmation-status small {
  margin-top: 4px;
  color: #4d6276;
  line-height: 1.45;
}

body#order-confirmation .sc-order-confirmation-reference {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 17px;
  padding: 13px 15px;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f6f7f9;
}

body#order-confirmation .sc-order-confirmation-reference span {
  color: #6b7179;
  font-size: 12px;
}

body#order-confirmation .sc-order-confirmation-payment {
  margin-top: 18px;
}

body#order-confirmation .sc-order-confirmation-instruction {
  padding: 17px;
  border: 1px solid #c9ddf1;
  border-left: 4px solid #2f7fca;
  border-radius: 4px 11px 11px 4px;
  background: #f3f8fd;
  color: #34536d;
  line-height: 1.5;
}

body#order-confirmation .sc-order-confirmation-payment .alert-success {
  display: none;
}

body#order-confirmation .sc-order-confirmation-payment .box,
body#order-confirmation .sc-order-confirmation-payment .alert,
body#order-confirmation .sc-order-confirmation-payment p {
  max-width: 100%;
  margin-right: 0;
  margin-left: 0;
}

body#order-confirmation .sc-order-confirmation-payment h1,
body#order-confirmation .sc-order-confirmation-payment h2,
body#order-confirmation .sc-order-confirmation-payment h3 {
  color: #24272c;
  text-transform: none;
}

body#order-confirmation .sc-order-confirmation-primary,
body#order-confirmation .sc-order-confirmation-secondary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
}

body#order-confirmation .sc-order-confirmation-primary {
  background: #dc342f;
  color: #fff;
}

body#order-confirmation .sc-order-confirmation-primary:hover {
  background: #c52d29;
  color: #fff;
}

body#order-confirmation .sc-order-confirmation-secondary {
  border: 1px solid #ccd2d9;
  background: #fff;
  color: #24272c;
}

body#order-confirmation .sc-order-confirmation-secondary:hover {
  border-color: #9fa8b2;
  color: #24272c;
}

body#order-confirmation .sc-order-confirmation-primary:focus-visible,
body#order-confirmation .sc-order-confirmation-secondary:focus-visible,
body#order-confirmation .sc-order-confirmation-logo:focus-visible,
body#order-confirmation .sc-order-confirmation-contact:focus-visible {
  outline: 3px solid rgba(47, 127, 202, .32);
  outline-offset: 3px;
}

body#order-confirmation .sc-order-confirmation-product-list {
  display: grid;
  gap: 14px;
}

body#order-confirmation .sc-order-confirmation-product {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

body#order-confirmation .sc-order-confirmation-product-image {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 10px;
  background: #f6f7f9;
}

body#order-confirmation .sc-order-confirmation-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body#order-confirmation .sc-order-confirmation-product strong,
body#order-confirmation .sc-order-confirmation-product small {
  display: block;
}

body#order-confirmation .sc-order-confirmation-product-name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-height: 1.4;
}

body#order-confirmation .sc-order-confirmation-product small,
body#order-confirmation .sc-order-confirmation-help p {
  margin-top: 4px;
  color: #6b7179;
  font-size: 13px;
  line-height: 1.5;
}

body#order-confirmation .sc-order-confirmation-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #dfe3e8;
}

body#order-confirmation .sc-order-confirmation-summary-total {
  border-bottom: 0;
  font-size: 21px;
  font-weight: 800;
}

body#order-confirmation .sc-order-confirmation-help {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #dfe3e8;
}

body#order-confirmation .sc-order-confirmation-help > strong,
body#order-confirmation .sc-order-confirmation-help > p {
  display: block;
}

body#order-confirmation .sc-order-confirmation-help > p {
  margin-bottom: 8px;
}

body#order-confirmation .sc-order-confirmation-contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

body#order-confirmation .sc-order-confirmation-contact {
  display: inline-flex;
  min-width: 0;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #ccd2d9;
  border-radius: 9px;
  background: #fff;
  color: #24272c;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease,
    color .18s ease, transform .18s ease;
}

body#order-confirmation .sc-order-confirmation-contact:hover {
  border-color: #9fa8b2;
  color: #24272c;
  text-decoration: none;
  transform: translateY(-1px);
}

body#order-confirmation .sc-order-confirmation-contact-whatsapp {
  border-color: #1fa855;
  background: #1fa855;
  color: #fff;
}

body#order-confirmation .sc-order-confirmation-contact-whatsapp:hover {
  border-color: #188a46;
  background: #188a46;
  color: #fff;
}

body#order-confirmation .sc-order-confirmation-contact-ticket {
  border-color: #dc342f;
  color: #b62824;
}

body#order-confirmation .sc-order-confirmation-contact-ticket:hover {
  border-color: #dc342f;
  background: #fff3f2;
  color: #9f211e;
}

body#order-confirmation .sc-order-confirmation-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin-top: 24px;
  padding: 18px 22px;
  border-top: 1px solid #dfe3e8;
  color: #6b7179;
  font-size: 12px;
}

body#order-confirmation .sc-order-confirmation-footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* The order confirmation is a focused completion state. Keep the compact
 * trust badge, but remove acquisition widgets that compete with the receipt. */
body#order-confirmation .ts-review-carousel-wrapper,
body#order-confirmation [data-ts-review-carousel],
body#order-confirmation etrusted-widget,
body#order-confirmation iframe[src*="review-carousel-service-widget"] {
  display: none !important;
}

@media (max-width: 820px) {
  body#order-confirmation .sc-order-confirmation-layout {
    grid-template-columns: 1fr;
  }

  body#order-confirmation .sc-order-confirmation-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  body#order-confirmation .sc-order-confirmation-site-header {
    min-height: 70px;
    padding: 14px 16px;
  }

  body#order-confirmation .sc-order-confirmation-secure {
    display: none;
  }

  body#order-confirmation .sc-order-confirmation {
    width: min(100% - 22px, 1120px);
    margin-top: 20px;
  }

  body#order-confirmation .sc-order-confirmation-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  body#order-confirmation .sc-order-confirmation-check {
    width: 50px;
    height: 50px;
  }

  body#order-confirmation .sc-order-confirmation-card {
    padding: 19px;
  }

  body#order-confirmation .sc-order-confirmation-product {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  body#order-confirmation .sc-order-confirmation-product-image {
    width: 62px;
    height: 62px;
  }

  body#order-confirmation .sc-order-confirmation-product-price {
    grid-column: 2;
  }

  body#order-confirmation .sc-order-confirmation-footer {
    align-items: center;
    flex-direction: column;
  }

  body#order-confirmation .sc-order-confirmation-contact-actions {
    grid-template-columns: 1fr;
  }
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-arrow {
  color: #8a9097;
  font-size: 24px;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-demo {
  grid-template-columns: 42px minmax(0, 1fr);
  cursor: default;
}

body#order-opc.sc-cart-v1-ready
  #HOOK_PAYMENT
  .sc-cart-v2-payment-demo:hover {
  border-color: #dfe3e8;
  box-shadow: none;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-title-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v2-payment-demo-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f0f2f4;
  color: #737a82;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.3;
  text-transform: uppercase;
}

/* Safari is stricter about legacy table widths. Fix both columns so labels
 * and prices always remain inside the rounded summary card. */
body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  #cart_summary_total {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  #cart_summary_total
  td {
  position: static !important;
  float: none !important;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  #cart_summary_total
  td:first-child {
  width: 54% !important;
  padding-right: 8px !important;
  padding-left: 0 !important;
  text-align: left !important;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-summary
  #cart_summary_total
  td:last-child {
  width: 46% !important;
  padding-right: 0 !important;
  padding-left: 8px !important;
  text-align: right !important;
  white-space: normal !important;
}

@media (max-width: 767px) {
  /* Safari iOS zooms the viewport when a focused form control renders below
   * 16px. Keep native pinch zoom available while preventing focus jumps. */
  body#order-opc.sc-cart-v1-ready
    :is(
      input[type="text"],
      input[type="email"],
      input[type="tel"],
      input[type="number"],
      input[type="password"],
      select,
      textarea
    ) {
    font-size: 16px !important;
  }

  /* Legacy OPC assigns a percentage width to the ordinary address fields.
   * On phones this left Nome, Cognome and the delivery inputs visibly shorter
   * than the customer-type card above them. Use the complete mobile form row
   * for every editable control, including Uniform-wrapped selects. */
  body#order-opc.sc-cart-v1-ready
    #opc_account_form
    :is(
      input.form-control,
      textarea.form-control,
      select.form-control,
      .selector
    ) {
    display: block;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  body#order-opc.sc-cart-v1-ready #new_account_form .opc-button,
  body#order-opc.sc-cart-v1-ready #opc_guestCheckout {
    width: 100% !important;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_account.sc-cart-v2-auth-account {
    padding: 16px;
  }

  body#order-opc.sc-cart-v1-ready
    .sc-cart-v2-auth-controls,
  body#order-opc.sc-cart-v1-ready
    .sc-cart-v2-auth-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body#order-opc.sc-cart-v1-ready .sc-cart-v2-account-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body#order-opc.sc-cart-v1-ready
    :is(.sc-cart-v2-login-cta, .sc-cart-v2-register-cta) {
    width: 100%;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    .sc-cart-v2-delivery-table,
  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    .sc-cart-v2-delivery-table
    tbody,
  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    .sc-cart-v2-delivery-table
    tr {
    display: block;
    width: 100%;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    .sc-cart-v2-delivery-table
    tr {
    display: grid;
    grid-template-columns: 44px 68px minmax(0, 1fr);
    grid-template-areas:
      "radio logo details"
      "price price price";
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    .sc-cart-v2-delivery-table
    td {
    display: block;
    width: auto !important;
    border-right: 0;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    td.delivery_option_radio {
    grid-area: radio;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    td.delivery_option_logo {
    grid-area: logo;
    padding-right: 6px;
    padding-left: 6px;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    td.white_space_normal {
    grid-area: details;
    padding-left: 8px;
  }

  body#order-opc.sc-cart-v1-ready
    #opc_delivery_methods
    td.delivery_option_price {
    grid-area: price;
    padding-top: 9px;
    padding-bottom: 9px;
    border-top: 1px solid #e3e7eb;
    text-align: right;
  }

  body#order-opc.sc-cart-v1-ready
    #HOOK_PAYMENT.sc-cart-v2-payment-options {
    grid-template-columns: 1fr;
  }

  body#order-opc.sc-cart-v1-ready
    .sc-cart-v1-summary
    #cart_summary_total
    td {
    font-size: 13px;
    line-height: 1.35;
  }

  body#order-opc.sc-cart-v1-ready
    .sc-cart-v1-summary
    #cart_summary_total
    td:first-child {
    width: 50% !important;
  }

  body#order-opc.sc-cart-v1-ready
    .sc-cart-v1-summary
    #cart_summary_total
    td:last-child {
    width: 50% !important;
  }
}

@media (max-width: 767px) {
  html.sc-cart-layout-pending #center_column::before {
    min-height: 210px;
    margin: 20px 0 36px;
  }
}
