/*
 * Spazio Casa CRO — cart v1
 * Presentation and progressive enhancement only.
 * Prices, quantities, discounts and checkout logic remain managed by PrestaShop.
 */

body#order-opc.sc-cart-v1-ready {
  background: #f6f7f8;
}

body#order-opc #HOOK_SHOPPING_CART {
  display: none !important;
}

/* Keep checkout fields unobstructed; consent remains available outside checkout. */
body#order-opc.sc-cart-v1-ready [id^="trustbadge-container-"],
body#order-opc.sc-cart-v1-ready [id*="trustbadge"],
body#order-opc.sc-cart-v1-ready [class*="trustbadge"],
body#order-opc.sc-cart-v1-ready iframe[src*="trustedshops"],
body#order-opc.sc-cart-v1-ready #cookiescript_badge,
body#order-opc.sc-cart-v1-ready #jivo-iframe-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body#order-opc.sc-cart-v1-ready #back-top,
body#order-opc.sc-cart-v1-ready #back_to_top,
body#order-opc.sc-cart-v1-ready .back-to-top,
body#order-opc.sc-cart-v1-ready .scroll-to-top {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready #center_column > #cart_title {
  margin: 8px 0 6px;
  border: 0;
  color: #202124;
  font-size: clamp(26px, 2.3vw, 36px);
  font-weight: 700;
  letter-spacing: -.025em;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready #cart_title + .alert + .cart_last_product + p {
  margin-bottom: 22px;
  color: #5f6368;
  font-size: 15px;
}

.sc-cart-v1-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .8fr);
  grid-template-areas:
    "products continue"
    "products summary";
  grid-template-rows: auto minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.sc-cart-v1-products,
.sc-cart-v1-summary {
  min-width: 0;
}

.sc-cart-v1-products {
  grid-area: products;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 18px;
}

.sc-cart-v1-cart-card,
.sc-cart-v1-checkout-step {
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(32, 33, 36, .055);
}

.sc-cart-v1-checkout-step {
  width: 100%;
  margin: 0 !important;
  padding: 22px;
}

.sc-cart-v1-checkout-step > .page-heading,
.sc-cart-v1-checkout-step > h1.page-heading {
  margin: 0 0 18px;
  border: 0;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-transform: none;
}

.sc-cart-v1-checkout-step .opc-main-block {
  margin-bottom: 0;
}

.sc-cart-v1-payment-step #opc_payment_methods {
  margin: 0;
}

.sc-cart-v1-step-intro {
  margin: -8px 0 18px;
  color: #62676d;
  font-size: 13px;
  line-height: 1.5;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-checkout-step .step-num {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: #e43731;
  color: #fff;
  font-size: 14px;
}

body#order-opc.sc-cart-v1-ready #opc_new_account #login_form {
  position: relative;
  margin: 0 0 18px;
  padding: 13px 15px;
  border: 1px solid #e5e7ea;
  border-radius: 12px;
  background: #f8f9fa;
  box-shadow: none;
}

body#order-opc.sc-cart-v1-ready
  #opc_new_account
  #login_form
  .page-subheading {
  display: inline;
  margin: 0;
  border: 0;
  color: #3c4043;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready #opc_new_account #login_form > p {
  display: inline;
  margin-left: 7px;
}

body#order-opc.sc-cart-v1-ready #opc_new_account #login_form > p a {
  color: #c92f2a;
  font-size: 13px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #opc_new_account #login_form .form-group,
body#order-opc.sc-cart-v1-ready #opc_new_account #login_form .submit {
  display: none;
}

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

body#order-opc.sc-cart-v1-ready #new_account_form > fieldset {
  padding: 0;
}

body#order-opc.sc-cart-v1-ready #new_account_form > fieldset > .box {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body#order-opc.sc-cart-v1-ready #new_account_title {
  margin: 0 0 14px;
  border: 0;
  color: #202124;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready #opc_account_choice {
  margin: 0;
  padding: 0;
}

body#order-opc.sc-cart-v1-ready #opc_account_choice .title_block,
body#order-opc.sc-cart-v1-ready #opc_account_choice .bullet {
  display: none;
}

body#order-opc.sc-cart-v1-ready #opc_account_choice > div {
  width: 100%;
  padding: 0;
}

body#order-opc.sc-cart-v1-ready #opc_guestCheckout {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 11px;
  background: #e43731;
  color: #fff;
  font-weight: 800;
}

body#order-opc.sc-cart-v1-ready #opc_createAccount {
  display: none;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form.sc-cart-v1-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin-top: 4px;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .required:first-of-type,
body#order-opc.sc-cart-v1-ready #opc_account_form > .page-subheading,
body#order-opc.sc-cart-v1-ready #opc_account_form > .inline-infos,
body#order-opc.sc-cart-v1-ready #opc_account_form > .checkbox,
body#order-opc.sc-cart-v1-ready #opc_account_form > #g-recaptcha,
body#order-opc.sc-cart-v1-ready #opc_account_form > .opc-add-save,
body#order-opc.sc-cart-v1-ready #opc_account_form > .alert,
body#order-opc.sc-cart-v1-ready #opc_account_form > #opc_invoice_address,
body#order-opc.sc-cart-v1-ready #opc_account_form > input[type="hidden"],
body#order-opc.sc-cart-v1-ready #opc_account_form > .sc-cart-v1-field-wide,
body#order-opc.sc-cart-v1-ready #opc_account_form > .sc-cart-v1-fiscal-toggle,
body#order-opc.sc-cart-v1-ready #opc_account_form > .sc-cart-v1-fiscal-field {
  grid-column: 1 / -1;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .required:first-of-type {
  margin: 0;
  color: #777c82;
  font-size: 11px;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .page-subheading {
  margin: 8px 0 0;
  padding-top: 18px;
  border: 0;
  border-top: 1px solid #eceff1;
  color: #202124;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .form-group {
  margin: 0;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .form-group label {
  margin-bottom: 6px;
  color: #4c5156;
  font-size: 12px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .form-control {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border: 1px solid #d9dde1;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #202124;
  font-size: 14px;
}

body#order-opc.sc-cart-v1-ready #opc_account_form .form-control:focus {
  border-color: #e43731;
  box-shadow: 0 0 0 3px rgba(228, 55, 49, .11);
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v1-optional-hidden,
body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v1-synced-field,
body#order-opc.sc-cart-v1-ready
  #opc_account_form
  .sc-cart-v1-fiscal-field {
  display: none !important;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form.sc-cart-v1-fiscal-open
  .sc-cart-v1-fiscal-field {
  display: block !important;
}

.sc-cart-v1-fiscal-toggle {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding: 0 13px;
  border: 1px solid #e2e5e8;
  border-radius: 10px;
  background: #f8f9fa;
  color: #4c5156;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .inline-infos {
  margin: -7px 0 0;
  color: #74797e;
  font-size: 11px;
}

body#order-opc.sc-cart-v1-ready
  #opc_account_form
  > .checkbox:not(.sc-cart-v1-optional-hidden) {
  margin: 2px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8f9fa;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .opc-add-save {
  margin: 4px 0 0;
  padding: 0;
}

body#order-opc.sc-cart-v1-ready #opc_account_form > .opc-add-save button {
  min-width: 210px;
  min-height: 50px;
  border: 0;
  border-radius: 11px;
  background: #e43731;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

body#order-opc.sc-cart-v1-ready
  #opc_delivery_methods
  .order_carrier_content {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

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

.sc-cart-v1-delivery-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid #dfe9e2;
  border-radius: 13px;
  background: #f1f8f3;
}

.sc-cart-v1-delivery-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dff1e4;
  font-size: 20px;
}

.sc-cart-v1-delivery-copy strong,
.sc-cart-v1-delivery-copy small {
  display: block;
}

.sc-cart-v1-delivery-copy strong {
  color: #244d31;
  font-size: 14px;
}

.sc-cart-v1-delivery-copy small {
  margin-top: 3px;
  color: #55705d;
  font-size: 12px;
}

.sc-cart-v1-delivery-price {
  color: #217a42;
  font-size: 13px;
}

body#order-opc.sc-cart-v1-ready .sc-cart-v1-delivery-notes {
  margin-top: 16px;
}

body#order-opc.sc-cart-v1-ready
  .sc-cart-v1-delivery-notes
  > p {
  display: none;
}

.sc-cart-v1-note-label,
.sc-cart-v1-note-help {
  display: block;
}

.sc-cart-v1-note-label {
  margin-bottom: 7px;
  color: #3f4449;
  font-size: 13px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #message {
  min-height: 86px;
  padding: 11px 12px;
  border: 1px solid #d9dde1;
  border-radius: 10px;
  box-shadow: none;
  resize: vertical;
}

.sc-cart-v1-note-help {
  margin-top: 6px;
  color: #777c82;
  font-size: 11px;
}

.sc-cart-v1-payment-preview {
  margin-bottom: 14px;
}

.sc-cart-v1-payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}

.sc-cart-v1-payment-grid > span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid #e0e3e6;
  border-radius: 10px;
  background: #fff;
  color: #3f4449;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.sc-cart-v1-payment-grid b {
  color: #202124;
  font-size: 13px;
}

.sc-cart-v1-payment-preview > small {
  display: block;
  color: #777c82;
  font-size: 11px;
  line-height: 1.45;
}

.sc-cart-v1-payment-pending {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 9px;
  background: #f8f9fa;
  color: #656a70;
  font-size: 12px;
}

body#order-opc.sc-cart-v1-ready #cart_summary {
  margin: 0;
  border: 0;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready #cart_summary thead {
  background: #f8f9fa;
}

body#order-opc.sc-cart-v1-ready #cart_summary th {
  border: 0;
  border-bottom: 1px solid #eceff1;
  padding: 14px 10px;
  color: #5f6368;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body#order-opc.sc-cart-v1-ready #cart_summary td {
  border: 0;
  border-bottom: 1px solid #eceff1;
  padding: 20px 10px;
  vertical-align: middle;
}

body#order-opc.sc-cart-v1-ready #cart_summary tbody tr:last-child td {
  border-bottom: 0;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_product {
  width: 112px;
  padding-left: 18px;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_product img {
  width: 92px;
  height: 104px;
  object-fit: contain;
  border: 1px solid #eceff1;
  border-radius: 12px;
  background: #fff;
}

body#order-opc.sc-cart-v1-ready #cart_summary .product-name a {
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_ref,
body#order-opc.sc-cart-v1-ready #cart_summary .cart_description .color_666 {
  margin-top: 5px;
  color: #6f7378;
  font-size: 12px;
  line-height: 1.45;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail span {
  display: inline-grid;
  grid-template-columns: 8px minmax(0, 1fr);
  grid-template-rows: auto auto;
  width: 100%;
  align-items: center;
  justify-items: start;
  gap: 2px 6px;
  color: #217a42;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail span::before {
  grid-column: 1;
  grid-row: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  content: "";
}

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;
  color: #6f7378;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}

body#order-opc.sc-cart-v1-ready .cart_quantity_button {
  display: inline-grid;
  grid-template-columns: 32px 38px 32px;
  width: 102px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7dadd;
  border-radius: 10px;
  background: #fff;
}

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

body#order-opc.sc-cart-v1-ready .cart_quantity_button a,
body#order-opc.sc-cart-v1-ready .cart_quantity_button input {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  float: none !important;
  width: 100%;
  height: 36px;
  margin: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none !important;
  color: #202124;
  text-align: center;
}

body#order-opc.sc-cart-v1-ready .cart_quantity_button a {
  display: grid;
  width: 32px;
  place-items: center;
  background: #f8f9fa;
  font-size: 18px;
  font-weight: 500;
}

body#order-opc.sc-cart-v1-ready .cart_quantity_button .cart_quantity_down {
  visibility: visible !important;
  opacity: 1 !important;
  color: #202124;
  font-size: 18px !important;
  text-indent: 0 !important;
}

body#order-opc.sc-cart-v1-ready .cart_quantity_button input {
  width: 38px;
}

body#order-opc.sc-cart-v1-ready .cart_quantity_delete {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  color: #70757a;
}

/* Product cards: stronger visual hierarchy without changing cart logic. */
body#order-opc.sc-cart-v1-ready #cart_summary,
body#order-opc.sc-cart-v1-ready #cart_summary tbody {
  display: block;
  width: 100%;
}

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

body#order-opc.sc-cart-v1-ready #cart_summary tbody tr {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) 126px 88px;
  grid-template-areas:
    "image description unit total"
    "image description quantity delete"
    "image availability quantity delete";
  gap: 8px 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid #eceff1;
}

body#order-opc.sc-cart-v1-ready #cart_summary tbody tr:last-child {
  border-bottom: 0;
}

body#order-opc.sc-cart-v1-ready #cart_summary td {
  display: block;
  width: auto !important;
  padding: 0;
  border: 0;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_product {
  grid-area: image;
  padding: 0;
}

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

body#order-opc.sc-cart-v1-ready #cart_summary .cart_description {
  grid-area: description;
  align-self: start;
  padding-top: 4px;
}

body#order-opc.sc-cart-v1-ready #cart_summary .product-name a {
  font-size: 17px;
  line-height: 1.4;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_description .color_666 {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f3f5f6;
  color: #51565c;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_description .cart_ref {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  color: #73777c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .025em;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail {
  grid-area: availability;
  align-self: end;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_unit {
  grid-area: unit;
  align-self: start;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_quantity {
  grid-area: quantity;
  align-self: center;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_delete {
  grid-area: delete;
  justify-self: end;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_total {
  grid-area: total;
  align-self: start;
  color: #202124;
  font-size: 17px;
  font-weight: 800;
  text-align: right;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_unit::before,
body#order-opc.sc-cart-v1-ready #cart_summary .cart_total::before {
  display: block;
  margin-bottom: 4px;
  color: #7a7f84;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_unit::before {
  content: "Prezzo";
}

body#order-opc.sc-cart-v1-ready #cart_summary .cart_total::before {
  content: "Totale";
}

.sc-cart-v1-summary {
  grid-area: summary;
  position: sticky;
  z-index: 5;
  top: 20px;
  align-self: start;
  max-height: calc(100vh - 40px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px;
  border: 1px solid #e1e4e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(32, 33, 36, .07);
}

.sc-cart-v1-continue {
  grid-area: continue;
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 7px 12px 9px;
  border: 1px solid #d6d6d6 !important;
  border-radius: 12px;
  background: #fff !important;
  box-shadow: none !important;
  color: #333 !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.sc-cart-v1-continue:hover,
.sc-cart-v1-continue:focus {
  border-color: #bfc2c5 !important;
  background: #f8f9fa !important;
  color: #202124 !important;
  text-decoration: none;
}

.sc-cart-v1-summary-title {
  margin: 0 0 16px;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
}

.sc-cart-v1-trust {
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(32, 33, 36, .045);
}

.sc-cart-v1-benefit,
.sc-cart-v1-protection {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 11px;
  color: #1f6c3b;
  text-decoration: none;
}

.sc-cart-v1-benefit {
  background: #eef8f1;
}

.sc-cart-v1-protection {
  border-top: 1px solid #dce8f7;
  background: #f0f6ff;
  color: #245b91;
}

.sc-cart-v1-benefit > span:first-child,
.sc-cart-v1-protection > span:first-child {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #34a853;
  color: #fff;
  font-weight: 700;
}

.sc-cart-v1-protection > span:first-child {
  background: #2878c7;
  font-size: 17px;
}

.sc-cart-v1-benefit strong,
.sc-cart-v1-benefit small,
.sc-cart-v1-protection strong,
.sc-cart-v1-protection small {
  display: block;
}

.sc-cart-v1-benefit strong,
.sc-cart-v1-protection strong {
  font-size: 13px;
  line-height: 1.3;
}

.sc-cart-v1-benefit small,
.sc-cart-v1-protection small {
  margin-top: 2px;
  color: #4f6f5a;
  font-size: 11px;
  line-height: 1.25;
}

.sc-cart-v1-protection small {
  color: #567493;
}

.sc-cart-v1-benefit small > span {
  display: block;
}

.sc-cart-v1-protection:hover,
.sc-cart-v1-protection:focus {
  color: #174d82;
  text-decoration: underline;
}

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

body#order-opc.sc-cart-v1-ready #cart_summary_total td {
  border: 0;
  border-bottom: 1px solid #eceff1;
  padding: 11px 2px;
  color: #5f6368;
  font-size: 13px;
}

body#order-opc.sc-cart-v1-ready #cart_summary_total td:last-child {
  color: #202124;
  font-weight: 600;
  text-align: right;
}

body#order-opc.sc-cart-v1-ready #cart_summary_total tr:last-child td {
  padding-top: 16px;
  border-bottom: 0;
  color: #202124;
  font-size: 17px;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #cart_summary_total #total_price {
  color: #e43731;
  font-size: 24px;
}

body#order-opc.sc-cart-v1-ready #cart_summary_total .sc-cart-v1-native-shipping-hidden {
  display: none;
}

body#order-opc.sc-cart-v1-ready
  #cart_summary_total
  .sc-cart-v1-shipping-row
  td:last-child {
  color: #202124;
  font-weight: 700;
}

body#order-opc.sc-cart-v1-ready #cart_voucher {
  margin: 0 0 12px;
  border: 1px solid #eceff1;
  border-radius: 12px;
}

.sc-cart-v1-voucher-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #3c4043;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}

body#order-opc.sc-cart-v1-ready #cart_voucher .sc-cart-v1-voucher-fields {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 0 12px 12px;
}

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

body#order-opc.sc-cart-v1-ready #cart_voucher .cart_voucher_title {
  display: none;
}

body#order-opc.sc-cart-v1-ready #cart_voucher input.discount_name,
body#order-opc.sc-cart-v1-ready #cart_voucher button[name="submitAddDiscount"] {
  height: 42px;
  margin: 0;
  border-radius: 9px;
}

.sc-cart-v1-checkout {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: #e43731;
  box-shadow: 0 8px 18px rgba(228, 55, 49, .2);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
}

.sc-cart-v1-checkout:hover,
.sc-cart-v1-checkout:focus {
  background: #c92f2a;
  color: #fff;
}

.sc-cart-v1-secure {
  margin: 10px 0 0;
  color: #6f7378;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

body#order-opc.sc-cart-v1-ready .cart_navigation,
body#order-opc.sc-cart-v1-ready .sc-cart-v1-navigation-empty {
  display: none;
}

.sc-cart-v1-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .sc-cart-v1-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, .85fr);
    gap: 18px;
  }

  .sc-cart-v1-summary {
    top: 12px;
    padding: 18px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary tbody tr {
    grid-template-columns: 110px minmax(0, 1fr) 98px;
    grid-template-areas:
      "image description delete"
      "image description total"
      "image availability total"
      "image quantity total";
    gap: 10px 14px;
    padding: 18px;
  }

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

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

@media (max-width: 767px) {
  body#order-opc.sc-cart-v1-ready {
    padding-bottom: 86px;
  }

  body#order-opc.sc-cart-v1-ready #columns {
    padding-right: 12px;
    padding-left: 12px;
  }

  body#order-opc.sc-cart-v1-ready #center_column > #cart_title {
    margin-top: 4px;
    font-size: 27px;
  }

  .sc-cart-v1-shell {
    display: flex;
    gap: 14px;
    flex-direction: column;
  }

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

  .sc-cart-v1-summary {
    order: 2;
  }

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

  .sc-cart-v1-products,
  .sc-cart-v1-summary {
    width: 100%;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary,
  body#order-opc.sc-cart-v1-ready #cart_summary tbody {
    display: block;
    width: 100%;
  }

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

  body#order-opc.sc-cart-v1-ready #cart_summary tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas:
      "image description"
      "availability availability"
      "quantity total";
    gap: 10px 12px;
    padding: 14px;
    align-items: start;
    border-bottom: 1px solid #eceff1;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary tbody tr:last-child {
    border-bottom: 0;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary td {
    display: block;
    width: auto !important;
    padding: 0;
    border: 0;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary td::before {
    display: none;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_product {
    display: block !important;
    grid-area: image;
    width: 82px !important;
    min-width: 0;
    margin: 0;
    padding: 0 !important;
    align-self: start;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_product a {
    display: block !important;
    width: 100%;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#order-opc.sc-cart-v1-ready
    #cart_summary .cart_product .mobile_table_content {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_product img {
    display: block !important;
    width: 82px;
    height: 96px;
    max-width: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_description {
    grid-area: description;
    min-width: 0;
    padding-right: 38px;
    text-align: left !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_description > * {
    float: none !important;
    width: auto !important;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
    text-align: left !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .product-name {
    margin: 0;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .product-name,
  body#order-opc.sc-cart-v1-ready #cart_summary .product-name a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .product-name a {
    font-size: 14px;
    line-height: 1.3;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_description .color_666,
  body#order-opc.sc-cart-v1-ready #cart_summary .cart_description .cart_ref {
    display: block;
    max-width: 100%;
    white-space: normal;
  }

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

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_quantity {
    grid-area: quantity;
    justify-self: start;
    align-self: center;
    text-align: left;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_delete {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail {
    grid-area: availability;
    min-width: 0;
    width: 100% !important;
    margin: 0;
    align-self: start;
    text-align: left !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_avail span {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 0;
    white-space: normal;
    text-align: left !important;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_total {
    grid-area: total;
    align-self: center;
    justify-self: end;
    color: #202124;
    font-size: 16px;
    font-weight: 800;
    text-align: right;
  }

  .sc-cart-v1-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .sc-cart-v1-checkout-step {
    padding: 17px;
  }

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

  body#order-opc.sc-cart-v1-ready #opc_account_form > * {
    grid-column: 1;
  }

  .sc-cart-v1-payment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sc-cart-v1-delivery-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .sc-cart-v1-delivery-price {
    grid-column: 2;
  }

  .sc-cart-v1-checkout,
  .sc-cart-v1-secure {
    display: none;
  }

  .sc-cart-v1-mobile-bar {
    position: fixed;
    z-index: 2147483647;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 11px max(14px, env(safe-area-inset-right)) calc(11px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    border-top: 1px solid #e1e4e8;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -8px 25px rgba(32, 33, 36, .11);
    transition: transform .2s ease;
  }

  .sc-cart-v1-mobile-bar-hidden {
    transform: translateY(110%);
  }

  .sc-cart-v1-mobile-total small,
  .sc-cart-v1-mobile-total strong {
    display: block;
    white-space: nowrap;
  }

  .sc-cart-v1-mobile-total small {
    color: #6f7378;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .sc-cart-v1-mobile-total strong {
    color: #202124;
    font-size: 19px;
  }

  .sc-cart-v1-mobile-bar button {
    display: flex;
    min-width: 168px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #e43731;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
  }

  body#order-opc.sc-cart-v1-ready .cart_navigation {
    margin: 0 0 24px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  body#order-opc.sc-cart-v1-ready #cart_summary tbody tr {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 12px;
  }

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

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_description {
    padding-right: 34px;
  }

  body#order-opc.sc-cart-v1-ready #cart_summary .cart_delete {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-cart-v1-mobile-bar {
    transition: none;
  }
}
