/* Checkout-only visual layer. Keep selectors route-scoped: SimpleCheckout markup is reused by other modules. */
body.checkout-simplecheckout,
body.checkout-checkout,
body.checkout-cart,
body.checkout-success,
body.checkout-failure {
  --checkout-black: #0c0c0c;
  --checkout-dark: #1c1c1c;
  --checkout-red: #cd171a;
  --checkout-red-dark: #8e0002;
  --checkout-muted: #707078;
  --checkout-surface: #eeeff5;
  --checkout-border: #e1e3eb;
  --checkout-radius: 16px;
  color: var(--checkout-black);
  font-family: "Involve", sans-serif;
}

body.checkout-simplecheckout .container,
body.checkout-checkout .container,
body.checkout-cart .container,
body.checkout-success .container,
body.checkout-failure .container {
  width: min(calc(100% - 40px), 1536px);
  max-width: 1536px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

body.checkout-simplecheckout #content,
body.checkout-checkout #content,
body.checkout-cart #content,
body.checkout-success #content,
body.checkout-failure #content {
  min-width: 0;
  padding-bottom: 80px;
}

body.checkout-simplecheckout #content > h1,
body.checkout-checkout #content > h1,
body.checkout-cart #content > h1,
body.checkout-success #content > h1,
body.checkout-failure #content > h1 {
  margin: 20px 0 34px;
  padding: 0;
  background: none;
  color: var(--checkout-black);
  font: 600 clamp(34px, 3.2vw, 48px)/1 "Involve", sans-serif;
  letter-spacing: -.03em;
  text-transform: none;
  -webkit-text-fill-color: var(--checkout-black);
}

body.checkout-simplecheckout .breadcrumb,
body.checkout-checkout .breadcrumb,
body.checkout-cart .breadcrumb,
body.checkout-success .breadcrumb,
body.checkout-failure .breadcrumb {
  margin-bottom: 16px;
}

body.checkout-simplecheckout .f-share,
body.checkout-checkout .f-share,
body.checkout-cart .f-share {
  display: none !important;
}

/* Shared controls */
body.checkout-simplecheckout .simple-content .form-control,
body.checkout-checkout #content .form-control,
body.checkout-cart #content .form-control {
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: var(--checkout-surface);
  color: var(--checkout-black);
  font: 400 16px/1.35 "Involve", sans-serif;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.checkout-simplecheckout .simple-content .form-control:hover,
body.checkout-checkout #content .form-control:hover,
body.checkout-cart #content .form-control:hover {
  background: #e7e8ee;
}

body.checkout-simplecheckout .simple-content .form-control:focus,
body.checkout-checkout #content .form-control:focus,
body.checkout-cart #content .form-control:focus {
  border-color: rgba(205, 23, 26, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(205, 23, 26, .1);
}

body.checkout-simplecheckout .simple-content textarea.form-control,
body.checkout-checkout #content textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

body.checkout-simplecheckout .simple-content select.form-control,
body.checkout-checkout #content select.form-control {
  padding-top: 0;
  padding-bottom: 0;
}

/* Controls added by checkout settings or third-party delivery/payment modules */
body.checkout-simplecheckout .simple-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea),
body.checkout-checkout #accordion :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea) {
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  outline: 0;
  background: var(--checkout-surface);
  color: var(--checkout-black);
  font: 400 16px/1.35 "Involve", sans-serif;
  box-shadow: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

body.checkout-simplecheckout .simple-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea):hover,
body.checkout-checkout #accordion :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea):hover {
  background: #e7e8ee;
}

body.checkout-simplecheckout .simple-content :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea):focus,
body.checkout-checkout #accordion :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea):focus {
  border-color: rgba(205, 23, 26, .65);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(205, 23, 26, .1);
}

body.checkout-simplecheckout .simple-content :where(textarea),
body.checkout-checkout #accordion :where(textarea) {
  min-height: 130px;
  resize: vertical;
}

body.checkout-simplecheckout .simple-content :where(select),
body.checkout-checkout #accordion :where(select) {
  padding-top: 0;
  padding-bottom: 0;
}

body.checkout-simplecheckout .simple-content :where(input, select, textarea):disabled,
body.checkout-simplecheckout .simple-content :where(input, textarea)[readonly],
body.checkout-checkout #accordion :where(input, select, textarea):disabled,
body.checkout-checkout #accordion :where(input, textarea)[readonly] {
  background: #e2e3e8;
  color: #85868e;
  cursor: not-allowed;
  opacity: 1;
}

body.checkout-simplecheckout .simple-content :where(input[type="checkbox"], input[type="radio"]),
body.checkout-checkout #accordion :where(input[type="checkbox"], input[type="radio"]) {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--checkout-red);
  vertical-align: top;
}

body.checkout-simplecheckout .simple-content input[type="radio"],
body.checkout-checkout #accordion input[type="radio"] {
  display: inline-block;
  padding: 0;
  border: 2px solid #bdbec7;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
  appearance: none;
  vertical-align: middle;
}

body.checkout-simplecheckout .simple-content input[type="radio"]::before,
body.checkout-checkout #accordion input[type="radio"]::before {
  display: none;
}

body.checkout-simplecheckout .simple-content input[type="radio"]:checked,
body.checkout-checkout #accordion input[type="radio"]:checked {
  border-color: var(--checkout-red);
  background: var(--checkout-red);
  box-shadow: inset 0 0 0 4px #fff;
}

body.checkout-simplecheckout .simple-content :where(label, .checkbox, .radio),
body.checkout-checkout #accordion :where(label, .checkbox, .radio) {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.checkout-simplecheckout .form-group.has-error :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea),
body.checkout-checkout #accordion .form-group.has-error :where(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], input[type="date"], input[type="time"], select, textarea) {
  border-color: var(--checkout-red);
  background: #fff8f8;
}

body.checkout-checkout #content .form-captcha {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: minmax(0, 1fr) clamp(110px, 18vw, 160px);
  gap: 10px 12px;
  align-items: stretch;
}

body.checkout-checkout #content .form-captcha .control-label {
  margin: 0;
  grid-column: 1 / -1;
  color: #35353a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

body.checkout-checkout #content .form-captcha .form-control {
  width: 100%;
  min-width: 0;
  grid-column: 1;
}

body.checkout-checkout #content .form-captcha > img {
  display: block;
  width: 100%;
  height: 56px;
  padding: 7px 10px;
  border: 1px solid var(--checkout-border);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
  grid-column: 2;
}

body.checkout-checkout #content .form-captcha .text-danger {
  margin-top: 0;
  grid-column: 1 / -1;
}

body.checkout-simplecheckout .simplecheckout-error-text,
body.checkout-simplecheckout .simplecheckout-warning-text,
body.checkout-checkout #content .text-danger {
  display: block;
  margin-top: 7px;
  color: var(--checkout-red);
  font-size: 13px;
  line-height: 1.35;
}

body.checkout-simplecheckout [data-error="true"] .form-control,
body.checkout-simplecheckout .form-group.has-error .form-control,
body.checkout-checkout #content .form-group.has-error .form-control {
  border-color: var(--checkout-red);
  background: #fff8f8;
}

body.checkout-simplecheckout .simplecheckout-warning-block,
body.checkout-checkout #content .alert,
body.checkout-cart #content .alert {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid rgba(205, 23, 26, .2);
  border-radius: 14px;
  background: #fff5f5;
  color: #7b1113;
  font-size: 14px;
  line-height: 1.4;
}

/* SimpleCheckout page */
body.checkout-simplecheckout .simple-content {
  width: 100%;
  margin: 0;
}

body.checkout-simplecheckout #simplecheckout_step_menu {
  display: grid;
  margin: 0 0 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 14px 18px 14px 54px;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius);
  background: #fff;
  color: #55555d;
  cursor: pointer;
  align-items: center;
  font: 500 17px/1.2 "Involve", sans-serif;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step::before {
  position: absolute;
  top: 50%;
  left: 16px;
  display: flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--checkout-surface);
  color: #777780;
  content: attr(data-step);
  align-items: center;
  justify-content: center;
  font: 600 13px/1 "Inter", sans-serif;
  transform: translateY(-50%);
  transition: color .2s ease, background-color .2s ease;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step:hover,
body.checkout-simplecheckout #simplecheckout_step_menu .simple-step:focus-visible {
  border-color: #bdbec7;
  background: var(--checkout-surface);
  color: var(--checkout-black);
  outline: 0;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step-current {
  border-color: var(--checkout-dark);
  background: var(--checkout-dark);
  color: #fff;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step-current::before {
  background: var(--checkout-red);
  color: #fff;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step-completed {
  border-color: #cfd0d8;
  color: var(--checkout-black);
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step-completed::before {
  background: var(--checkout-red);
  color: #fff;
}

body.checkout-simplecheckout #simplecheckout_step_menu .simple-step-delimiter {
  display: none;
}

body.checkout-simplecheckout .simplecheckout-step {
  width: 100%;
}

body.checkout-simplecheckout .simplecheckout-step::after,
body.checkout-simplecheckout .simplecheckout::after {
  display: block;
  clear: both;
  content: "";
}

body.checkout-simplecheckout .simplecheckout-left-column,
body.checkout-simplecheckout .simplecheckout-right-column {
  min-width: 0;
}

body.checkout-simplecheckout .simplecheckout-right-column {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.checkout-simplecheckout .simplecheckout-block {
  min-width: 0;
  border: 1px solid #ececf0;
  border-radius: var(--checkout-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 16, 16, .055);
}

body.checkout-simplecheckout .simplecheckout-block .checkout-heading,
body.checkout-simplecheckout .simplecheckout-block .panel-heading {
  min-height: 0;
  margin: 0;
  padding: 20px 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--checkout-black);
  font: 600 24px/1.15 "Involve", sans-serif;
}

body.checkout-simplecheckout .simplecheckout-block-content {
  padding: 20px 22px 22px;
}

/* Cart step */
body.checkout-simplecheckout #simplecheckout_cart {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.checkout-simplecheckout #simplecheckout_cart > .checkout-heading {
  display: none;
}

body.checkout-simplecheckout .simplecheckout-cart__cart-wrapper {
  display: grid;
  width: 100%;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
  align-items: start;
}

body.checkout-simplecheckout .simplecheckout-cart__cart-wrapper > .simplecheckout-cart {
  display: grid;
  min-width: 0;
  margin: 0;
  gap: 14px;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid #ececf0;
  border-radius: var(--checkout-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 16, 16, .055);
  grid-template-columns: 120px minmax(0, 1fr) auto 130px;
  grid-template-areas: "image name quantity total";
  gap: 20px;
  align-items: center;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .image { grid-area: image; }
body.checkout-simplecheckout .simplecheckout-product-wrapper > .name { grid-area: name; }
body.checkout-simplecheckout .simplecheckout-product-wrapper > .quantity { grid-area: quantity; }
body.checkout-simplecheckout .simplecheckout-product-wrapper > .total { grid-area: total; }

body.checkout-simplecheckout .simplecheckout-product-wrapper > .image a {
  display: flex;
  width: 120px;
  height: 96px;
  align-items: center;
  justify-content: center;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .name {
  width: auto;
  max-width: none;
  padding: 0;
  text-align: left;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .name > a {
  display: inline-block;
  color: var(--checkout-black);
  font: 500 20px/1.25 "Involve", sans-serif;
  text-decoration: none;
  transition: color .2s ease;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .name > a:hover,
body.checkout-simplecheckout .simplecheckout-product-wrapper > .name > a:focus-visible {
  color: var(--checkout-red);
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .name p,
body.checkout-simplecheckout .simplecheckout-product-wrapper .options {
  margin: 7px 0 0;
  color: var(--checkout-muted);
  font-size: 14px;
  line-height: 1.35;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper > .total {
  width: auto !important;
  min-width: 0;
  color: var(--checkout-black);
  font: 600 22px/1.2 "Involve", sans-serif;
  text-align: right;
  white-space: nowrap;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity .input-group {
  display: grid;
  width: 142px;
  max-width: none !important;
  grid-template-columns: 42px 48px 42px;
  grid-template-rows: 42px 34px;
  gap: 0;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity .input-group-btn {
  display: contents;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity .form-control {
  width: 48px !important;
  min-width: 0 !important;
  min-height: 42px;
  height: 42px;
  padding: 0;
  grid-column: 2;
  grid-row: 1;
  border: 1px solid var(--checkout-border);
  border-radius: 0 !important;
  background: #fff;
  text-align: center;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button {
  display: inline-flex !important;
  width: 42px !important;
  height: 42px !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: var(--checkout-dark) !important;
  color: #fff !important;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button:first-child {
  grid-column: 1;
  grid-row: 1;
  border-radius: 0;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="increaseProductQuantity"] {
  grid-column: 3;
  grid-row: 1;
  border-radius: 0;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="removeProduct"] {
  width: 100% !important;
  height: 30px !important;
  min-height: 30px;
  margin-top: 4px !important;
  grid-column: 1 / -1;
  grid-row: 2;
  border-radius: 9px;
  background: transparent !important;
  color: #777780 !important;
  font-size: 0 !important;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="removeProduct"]::after {
  content: "Удалить";
  font-size: 13px;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="removeProduct"] i {
  display: none;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button:hover,
body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button:focus-visible {
  background: var(--checkout-red-dark) !important;
}

body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="removeProduct"]:hover,
body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button[data-onclick="removeProduct"]:focus-visible {
  background: var(--checkout-surface) !important;
  color: var(--checkout-red) !important;
}

body.checkout-simplecheckout .simplecheckout-cart__total-wrapper {
  position: sticky;
  top: 110px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px;
  border: 1px solid #ececf0;
  border-radius: var(--checkout-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 16, 16, .055);
}

body.checkout-simplecheckout .simplecheckout-cart__total-wrapper > p {
  margin: 0 0 10px;
  color: var(--checkout-black);
  font: 600 24px/1.2 "Involve", sans-serif;
}

body.checkout-simplecheckout .simplecheckout-cart__total-wrapper .simplecheckout-cart-total {
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--checkout-border);
  background: transparent;
}

body.checkout-simplecheckout .simplecheckout-cart__total-wrapper .simplecheckout-cart-total > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

body.checkout-simplecheckout .simplecheckout-cart-total span {
  min-width: 0;
  color: #55555d;
  font-size: 15px;
}

body.checkout-simplecheckout .simplecheckout-cart-total-value,
body.checkout-simplecheckout .simplecheckout-cart-total-value b {
  color: var(--checkout-black);
  font-size: 18px;
  white-space: nowrap;
}

body.checkout-simplecheckout .simplecheckout-cart-total .inputs {
  display: grid;
  width: 100%;
  gap: 11px;
  color: var(--checkout-black);
  text-align: left;
}

body.checkout-simplecheckout .simplecheckout-cart-total .inputs .form-control {
  width: 100% !important;
  margin-top: 10px !important;
}

body.checkout-simplecheckout .simplecheckout-cart-buttons .button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--checkout-dark) !important;
  color: #fff !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease;
}

body.checkout-simplecheckout #simplecheckout_button_cart {
  background: var(--checkout-red) !important;
  color: #fff !important;
}

body.checkout-simplecheckout #simplecheckout_button_cart span {
  color: #fff !important;
}

body.checkout-simplecheckout #simplecheckout_button_cart[aria-disabled="true"],
body.checkout-simplecheckout #simplecheckout_button_cart.is-disabled,
body.checkout-simplecheckout #simplecheckout_button_cart.disabled {
  background: #e2e3e8 !important;
  color: #666770 !important;
  cursor: not-allowed;
}

body.checkout-simplecheckout #simplecheckout_button_cart[aria-disabled="true"] span,
body.checkout-simplecheckout #simplecheckout_button_cart.is-disabled span,
body.checkout-simplecheckout #simplecheckout_button_cart.disabled span {
  color: #666770 !important;
}

body.checkout-simplecheckout .simplecheckout-cart-buttons .button:hover,
body.checkout-simplecheckout .simplecheckout-cart-buttons .button:focus-visible {
  background: var(--checkout-red-dark) !important;
}

/* Delivery, payment and summary */
body.checkout-simplecheckout #simplecheckout_summary,
body.checkout-simplecheckout #simplecheckout_shipping,
body.checkout-simplecheckout #simplecheckout_payment,
body.checkout-simplecheckout #simplecheckout_customer,
body.checkout-simplecheckout #simplecheckout_payment_address,
body.checkout-simplecheckout #simplecheckout_shipping_address,
body.checkout-simplecheckout #simplecheckout_comment,
body.checkout-simplecheckout [id^="simplecheckout_text_"] {
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart {
  padding: 4px 22px 12px;
  border: 0;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart > div {
  display: grid;
  padding: 14px 0;
  border-bottom: 1px solid var(--checkout-border);
  grid-template-columns: 70px minmax(0, 1fr) 70px 120px;
  gap: 14px;
  align-items: center;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart > div:last-child {
  border-bottom: 0;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .image,
body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .name,
body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .quantity,
body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .total {
  width: auto;
  min-width: 0;
  padding: 0;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .image img {
  display: block;
  width: 64px;
  height: 50px;
  object-fit: contain;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .name a {
  color: var(--checkout-black);
  font-weight: 500;
  text-decoration: none;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .total {
  text-align: right;
}

body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart-total {
  display: flex;
  margin: 0 22px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--checkout-border);
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
}

body.checkout-simplecheckout #simplecheckout_shipping .simplecheckout-block-content,
body.checkout-simplecheckout #simplecheckout_payment .simplecheckout-block-content {
  padding: 18px 30px 28px !important;
}

body.checkout-simplecheckout #simplecheckout_shipping > .checkout-heading,
body.checkout-simplecheckout #simplecheckout_payment > .checkout-heading {
  padding: 24px 30px 0 !important;
}

body.checkout-simplecheckout #simplecheckout_shipping .radio,
body.checkout-simplecheckout #simplecheckout_payment .radio,
body.checkout-simplecheckout #simplecheckout_customer .radio {
  margin: 8px 0;
}

body.checkout-simplecheckout #simplecheckout_shipping .radio label,
body.checkout-simplecheckout #simplecheckout_payment .radio label {
  position: relative;
  display: flex !important;
  min-height: 54px;
  margin: 0;
  padding: 14px 16px 14px 54px;
  border: 1px solid var(--checkout-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  color: var(--checkout-black);
  font-size: 16px;
  line-height: 1.3;
  transition: border-color .2s ease, background-color .2s ease;
}

body.checkout-simplecheckout #simplecheckout_shipping .radio label:hover,
body.checkout-simplecheckout #simplecheckout_payment .radio label:hover {
  border-color: #bdbec7;
  background: var(--checkout-surface);
}

body.checkout-simplecheckout #simplecheckout_shipping input[type="radio"],
body.checkout-simplecheckout #simplecheckout_payment input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 24px;
  height: 24px;
  margin: 0 !important;
  border: 2px solid #bdbec7;
  border-radius: 50%;
  background: #fff;
  outline: 0;
  appearance: none;
  transform: translateY(-50%);
  transition: border-color .2s ease, box-shadow .2s ease;
}

body.checkout-simplecheckout #simplecheckout_shipping input[type="radio"]:checked,
body.checkout-simplecheckout #simplecheckout_payment input[type="radio"]:checked {
  border: 2px solid var(--checkout-red);
  background: var(--checkout-red);
  box-shadow: inset 0 0 0 5px #fff;
}

body.checkout-simplecheckout #simplecheckout_shipping input[type="radio"]::before,
body.checkout-simplecheckout #simplecheckout_payment input[type="radio"]::before {
  display: none;
}

body.checkout-simplecheckout #simplecheckout_shipping input[type="radio"]:focus-visible,
body.checkout-simplecheckout #simplecheckout_payment input[type="radio"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(205, 23, 26, .14);
}

/* Customer and address fields */
body.checkout-simplecheckout #simplecheckout_customer .checkout-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

body.checkout-simplecheckout #simplecheckout_customer .checkout-heading span {
  float: none;
}

body.checkout-simplecheckout #simplecheckout_customer .checkout-heading-button {
  margin-left: auto;
  float: none !important;
}

body.checkout-simplecheckout #simplecheckout_customer .checkout-heading-button a {
  color: var(--checkout-red);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

body.checkout-simplecheckout #simplecheckout_customer .checkout-heading-button a:hover,
body.checkout-simplecheckout #simplecheckout_customer .checkout-heading-button a:focus-visible {
  color: var(--checkout-red-dark);
  text-decoration-color: currentColor;
}

body.checkout-simplecheckout #simplecheckout_customer .simplecheckout-block-content,
body.checkout-simplecheckout #simplecheckout_payment_address .simplecheckout-block-content,
body.checkout-simplecheckout #simplecheckout_shipping_address .simplecheckout-block-content,
body.checkout-simplecheckout #simplecheckout_comment .simplecheckout-block-content {
  padding: 18px 22px 22px !important;
  border: 0;
  background: #fff;
  box-shadow: none;
}

body.checkout-simplecheckout .simple-content .form-group {
  display: grid !important;
  margin: 0 0 16px;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 8px 16px;
  align-items: center;
}

body.checkout-simplecheckout .simple-content .form-group > div {
  width: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  float: none;
  grid-column: 2;
}

body.checkout-simplecheckout .simple-content .form-group > label,
body.checkout-simplecheckout .simple-content .form-group > .control-label {
  width: auto;
  margin: 0;
  padding: 0;
  float: none;
  grid-column: 1;
  color: #35353a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

body.checkout-simplecheckout .simple-content .form-group > .simplecheckout-error-text {
  grid-column: 2;
}

body.checkout-simplecheckout .row-customer_register {
  padding: 12px 0 4px;
  border-bottom: 1px solid var(--checkout-border);
}

body.checkout-simplecheckout .row-customer_register .radio {
  display: inline-flex !important;
  margin: 0 30px 0 0 !important;
  vertical-align: middle;
  align-items: center;
}

body.checkout-simplecheckout .row-customer_register .radio:last-child {
  margin-right: 0 !important;
}

body.checkout-simplecheckout .simple-content input[type="checkbox"],
body.checkout-simplecheckout .simple-content .row-customer_register input[type="radio"] {
  accent-color: var(--checkout-red);
}

body.checkout-simplecheckout .simple-content .m-radio input[type="radio"] {
  display: none !important;
}

body.checkout-simplecheckout .simple-content .m-radio label {
  display: inline-flex;
  min-height: 22px;
  margin: 0 !important;
  padding: 0 0 0 30px !important;
  align-items: center;
  line-height: 22px;
}

body.checkout-simplecheckout .simple-content .m-radio label::before {
  top: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid #bdbec7;
  background: #fff;
  transform: translateY(-50%);
}

body.checkout-simplecheckout .simple-content .m-radio input[type="radio"]:checked + label::before {
  border-color: var(--checkout-red);
}

body.checkout-simplecheckout .simple-content .m-radio input[type="radio"]:checked + label::after {
  top: 50%;
  left: 6px;
  width: 10px;
  height: 10px;
  background: var(--checkout-red);
  animation: none;
  transform: translateY(-50%);
}

body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio label,
body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio label {
  min-height: 54px;
  margin: 0 !important;
  padding: 14px 16px 14px 54px !important;
  line-height: 1.3;
}

body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio label::before,
body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio label::before {
  left: 16px;
}

body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio input[type="radio"]:checked + label::after,
body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio input[type="radio"]:checked + label::after {
  left: 22px;
}

body.checkout-simplecheckout #simplecheckout_comment textarea {
  width: 100% !important;
}

/* Main checkout actions */
body.checkout-simplecheckout #buttons.simplecheckout-button-block,
body.checkout-simplecheckout .simplecheckout-button-block {
  display: flex;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.checkout-simplecheckout .simplecheckout-button-right,
body.checkout-simplecheckout .simplecheckout-button-left {
  display: flex;
  float: none;
  align-items: center;
  gap: 10px;
}

body.checkout-simplecheckout .simplecheckout-button-right {
  margin-left: auto;
  order: 2;
}

body.checkout-simplecheckout .simplecheckout-button-left {
  order: 1;
}

body.checkout-simplecheckout .simplecheckout-button-block .button,
body.checkout-simplecheckout #simplecheckout_button_login,
body.checkout-checkout #content .btn,
body.checkout-cart #content .buttons .btn,
body.checkout-success #content .btn,
body.checkout-failure #content .btn {
  display: inline-flex;
  min-width: 150px;
  min-height: 56px;
  margin: 0;
  padding: 12px 24px;
  border: 0;
  border-radius: 14px;
  outline: 0;
  background: var(--checkout-red) !important;
  color: #fff !important;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font: 500 18px/1.2 "Involve", sans-serif;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

body.checkout-simplecheckout .simplecheckout-button-block .button:hover,
body.checkout-simplecheckout .simplecheckout-button-block .button:focus-visible,
body.checkout-simplecheckout #simplecheckout_button_login:hover,
body.checkout-simplecheckout #simplecheckout_button_login:focus-visible,
body.checkout-checkout #content .btn:hover,
body.checkout-checkout #content .btn:focus-visible,
body.checkout-cart #content .buttons .btn:hover,
body.checkout-cart #content .buttons .btn:focus-visible,
body.checkout-success #content .btn:hover,
body.checkout-success #content .btn:focus-visible,
body.checkout-failure #content .btn:hover,
body.checkout-failure #content .btn:focus-visible {
  background: var(--checkout-red-dark) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

body.checkout-simplecheckout .simplecheckout-button-block .button:active,
body.checkout-simplecheckout #simplecheckout_button_login:active,
body.checkout-checkout #content .btn:active,
body.checkout-cart #content .buttons .btn:active,
body.checkout-success #content .btn:active,
body.checkout-failure #content .btn:active {
  background: #730002 !important;
  transform: none;
}

body.checkout-simplecheckout #simplecheckout_button_prev,
body.checkout-simplecheckout #simplecheckout_button_back,
body.checkout-checkout #content .btn-default,
body.checkout-cart #content .pull-left .btn {
  border: 1px solid var(--checkout-border);
  background: #fff !important;
  color: var(--checkout-black) !important;
}

body.checkout-simplecheckout #simplecheckout_button_prev:hover,
body.checkout-simplecheckout #simplecheckout_button_prev:focus-visible,
body.checkout-simplecheckout #simplecheckout_button_back:hover,
body.checkout-simplecheckout #simplecheckout_button_back:focus-visible,
body.checkout-checkout #content .btn-default:hover,
body.checkout-checkout #content .btn-default:focus-visible,
body.checkout-cart #content .pull-left .btn:hover,
body.checkout-cart #content .pull-left .btn:focus-visible {
  border-color: var(--checkout-dark);
  background: var(--checkout-dark) !important;
  color: #fff !important;
}

body.checkout-simplecheckout .simplecheckout-button-block .button[disabled],
body.checkout-simplecheckout .simplecheckout-button-block .button.is-disabled {
  background: #d7d8df !important;
  color: #8b8c94 !important;
  cursor: not-allowed;
  pointer-events: none;
}

body.checkout-simplecheckout #agreement_checkbox {
  max-width: 660px;
  margin: 0 20px 0 0;
  float: none;
}

body.checkout-simplecheckout #agreement_checkbox label {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  color: #55555d;
  font-size: 14px;
  line-height: 1.4;
}

body.checkout-simplecheckout #agreement_checkbox input {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
}

/* Embedded SimpleCheckout login */
body.checkout-simplecheckout #simple_login_layer {
  position: fixed !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  background: rgba(28, 28, 28, .54) !important;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

body.checkout-simplecheckout #simple_login {
  position: fixed !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(500px, calc(100vw - 40px)) !important;
  height: auto !important;
  max-height: calc(100dvh - 40px);
  padding: 0 !important;
  overflow-y: auto;
  border: 0 !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, .22);
  transform: translate(-50%, -50%);
}

body.checkout-simplecheckout #simplecheckout_login {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
}

body.checkout-simplecheckout #simplecheckout_login .simplecheckout-block-content {
  padding: 30px !important;
}

body.checkout-simplecheckout #simple_login_header {
  display: flex;
  min-height: 36px;
  margin: 0 0 10px;
  justify-content: flex-end;
}

body.checkout-simplecheckout .simplecheckout-login-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 0;
  border-radius: 10px;
  background: var(--checkout-dark);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, transform .2s ease;
}

body.checkout-simplecheckout .simplecheckout-login-close svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

body.checkout-simplecheckout .simplecheckout-login-close:hover,
body.checkout-simplecheckout .simplecheckout-login-close:focus-visible {
  background: var(--checkout-red-dark);
  outline: 0;
}

body.checkout-simplecheckout .simplecheckout-login-close:active {
  transform: scale(.94);
}

body.checkout-simplecheckout #simplecheckout_login fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body.checkout-simplecheckout #simplecheckout_login .form-group {
  display: block !important;
  margin-bottom: 18px;
}

body.checkout-simplecheckout #simplecheckout_login .control-label {
  display: block;
  margin: 0 0 8px;
  color: var(--checkout-black);
  font-size: 15px;
}

body.checkout-simplecheckout #simplecheckout_login .form-control {
  width: 100%;
}

body.checkout-simplecheckout #simplecheckout_login .form-group a {
  display: inline-block;
  margin-top: 9px;
  color: #55555d;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}

body.checkout-simplecheckout #simplecheckout_login .form-group a:hover,
body.checkout-simplecheckout #simplecheckout_login .form-group a:focus-visible {
  color: var(--checkout-red);
}

body.checkout-simplecheckout #simplecheckout_button_login {
  width: 100%;
  margin-top: 4px;
}

html.checkout-redesign-modal-open,
body.checkout-redesign-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* Standard OpenCart checkout fallback */
body.checkout-checkout #accordion {
  display: grid;
  gap: 14px;
}

body.checkout-checkout #accordion .panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ececf0;
  border-radius: var(--checkout-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 16, 16, .05);
}

body.checkout-checkout #accordion .panel-heading {
  padding: 0;
  border: 0;
  background: transparent;
}

body.checkout-checkout #accordion .panel-title,
body.checkout-checkout #accordion .panel-title a {
  display: flex;
  min-height: 68px;
  margin: 0;
  padding: 18px 22px;
  color: var(--checkout-black);
  align-items: center;
  font: 600 21px/1.25 "Involve", sans-serif;
  text-decoration: none;
}

body.checkout-checkout #accordion .panel-title a::after {
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  flex: 0 0 auto;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

body.checkout-checkout #accordion .panel-title a {
  width: 100%;
}

body.checkout-checkout #accordion .panel-title a:not(.collapsed)::after {
  transform: rotate(225deg);
}

body.checkout-checkout #accordion .panel-title .fa-caret-down {
  display: none;
}

body.checkout-checkout #accordion .panel-body {
  padding: 4px 22px 24px;
  border: 0;
}

body.checkout-checkout #collapse-checkout-option .panel-body > .row {
  display: grid;
  margin-right: 0;
  margin-left: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.checkout-checkout #collapse-checkout-option .panel-body > .row::before,
body.checkout-checkout #collapse-checkout-option .panel-body > .row::after {
  display: none;
}

body.checkout-checkout #collapse-checkout-option .panel-body > .row > .col-sm-6 {
  display: flex;
  width: auto;
  min-width: 0;
  padding-right: 0;
  padding-left: 0;
  float: none;
  flex-direction: column;
}

body.checkout-checkout #collapse-checkout-option #button-account,
body.checkout-checkout #collapse-checkout-option #button-login {
  width: 100%;
  margin-top: auto;
}

body.checkout-checkout #accordion .control-label {
  margin-bottom: 8px;
  color: #35353a;
  font-size: 14px;
  font-weight: 500;
}

body.checkout-checkout #accordion .form-group,
body.checkout-checkout #accordion .radio,
body.checkout-checkout #accordion .checkbox,
body.checkout-checkout #accordion .form-group > [class*="col-"] {
  min-width: 0;
}

body.checkout-checkout #accordion .form-control {
  width: 100%;
  max-width: 100%;
}

body.checkout-checkout #accordion .radio label,
body.checkout-checkout #accordion .checkbox label,
body.checkout-checkout #accordion .control-label {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.checkout-checkout #accordion .radio label,
body.checkout-checkout #accordion .checkbox label {
  line-height: 1.4;
}

body.checkout-checkout #accordion input[type="radio"],
body.checkout-checkout #accordion input[type="checkbox"] {
  accent-color: var(--checkout-red);
}

body.checkout-checkout #accordion .buttons,
body.checkout-cart #content .buttons {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

/* Standard cart fallback */
body.checkout-cart #content .table-responsive {
  overflow: hidden;
  border: 1px solid #ececf0;
  border-radius: var(--checkout-radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 16, 16, .05);
}

body.checkout-cart #content .table {
  margin: 0;
  border: 0;
}

body.checkout-cart #content .table > thead > tr > td,
body.checkout-cart #content .table > tbody > tr > td {
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--checkout-border);
  vertical-align: middle;
}

body.checkout-cart #content .table > thead > tr > td {
  background: var(--checkout-surface);
  color: #55555d;
  font-size: 13px;
  font-weight: 500;
}

body.checkout-cart #content .img-thumbnail {
  width: 100px;
  height: 80px;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}

body.checkout-cart #content form > .table-responsive {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.checkout-cart #content form > .table-responsive > .table,
body.checkout-cart #content form > .table-responsive > .table > tbody {
  display: block;
  width: 100%;
}

body.checkout-cart #content form > .table-responsive > .table > thead {
  display: none;
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr {
  display: grid;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid #ececf0;
  border-radius: 20px;
  background: #fff;
  grid-template-columns: 110px minmax(220px, 1fr) 190px minmax(110px, 140px) minmax(120px, 150px);
  grid-template-areas:
    "image name quantity price total"
    "image model quantity price total";
  gap: 8px 22px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(16, 16, 16, .05);
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(1) { grid-area: image; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) { grid-area: name; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(3) { grid-area: model; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(4) { grid-area: quantity; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5) { grid-area: price; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6) { grid-area: total; }

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) > a {
  color: var(--checkout-black);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s ease;
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) > a:hover,
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) > a:focus-visible {
  color: var(--checkout-red);
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(3) {
  color: #85868e;
  font-size: 13px;
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(4)::before,
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5)::before,
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6)::before {
  display: block;
  margin-bottom: 8px;
  color: #85868e;
  font-size: 13px;
  line-height: 1.2;
}

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(4)::before { content: "Количество"; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5)::before { content: "Цена"; }
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6)::before { content: "Итого"; }

body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5),
body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6) {
  color: var(--checkout-black);
  font-size: 17px;
  font-weight: 500;
  text-align: right;
}

body.checkout-cart #content .quantity-group .input-group {
  display: flex;
  width: 100%;
  max-width: 190px !important;
  align-items: stretch;
}

body.checkout-cart #content .quantity-group .form-control {
  height: 56px;
  min-height: 56px;
  width: auto;
  min-width: 58px;
  padding-right: 12px;
  padding-left: 12px;
  border-radius: 14px 0 0 14px;
  flex: 1 1 auto;
  text-align: center;
}

body.checkout-cart #content .quantity-group .input-group-btn {
  display: flex;
  width: auto;
  margin-left: 0;
  font-size: inherit;
}

body.checkout-cart #content .quantity-group .btn {
  display: inline-flex;
  width: 52px;
  min-width: 52px;
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease;
}

body.checkout-cart #content .quantity-group .btn-primary {
  background: var(--checkout-dark) !important;
  color: #fff !important;
}

body.checkout-cart #content .quantity-group .btn-danger {
  border-radius: 0 14px 14px 0;
  background: var(--checkout-red) !important;
  color: #fff !important;
}

body.checkout-cart #content .quantity-group .btn:hover,
body.checkout-cart #content .quantity-group .btn:focus-visible {
  background: var(--checkout-red-dark) !important;
  color: #fff !important;
}

body.checkout-cart #content > #accordion {
  display: grid;
  margin: 0 0 26px;
  gap: 10px;
}

body.checkout-cart #content > #accordion .panel {
  margin: 0;
  overflow: hidden;
  border: 1px solid #ececf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

body.checkout-cart #content > #accordion .panel-heading {
  padding: 0;
  border: 0;
  background: transparent;
}

body.checkout-cart #content > #accordion .panel-title,
body.checkout-cart #content > #accordion .panel-title > a {
  margin: 0;
}

body.checkout-cart #content > #accordion .panel-title > a {
  display: flex;
  min-height: 58px;
  padding: 15px 18px;
  color: var(--checkout-black);
  align-items: center;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}

body.checkout-cart #content > #accordion .panel-title > a:hover,
body.checkout-cart #content > #accordion .panel-title > a:focus-visible {
  background: var(--checkout-surface);
  color: var(--checkout-red);
}

body.checkout-cart #content > #accordion .panel-title > a .fa-caret-down {
  display: none;
}

body.checkout-cart #content > #accordion .panel-title > a::after {
  width: 9px;
  height: 9px;
  margin-left: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  flex: 0 0 auto;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

body.checkout-cart #content > #accordion .panel-title > a[aria-expanded="true"]::after {
  transform: rotate(225deg);
}

body.checkout-cart #content > #accordion .panel-body {
  padding: 18px;
  border-top: 1px solid var(--checkout-border);
}

body.checkout-cart #content > .row > .col-sm-4.col-sm-offset-8 {
  width: min(100%, 420px);
  margin-left: auto;
  margin-right: 15px;
  padding: 0;
  float: none;
}

body.checkout-cart #content > .row > .col-sm-4.col-sm-offset-8 > .table {
  overflow: hidden;
  border: 1px solid #ececf0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 16, 16, .04);
}

body.checkout-cart #content > .row > .col-sm-4.col-sm-offset-8 > .table > tbody > tr:last-child > td {
  border-bottom: 0;
}

/* Checkout result pages; common/success.twig is shared, so scope only by route body class. */
body.checkout-success #content,
body.checkout-failure #content {
  max-width: 900px;
  min-height: 460px;
  margin: 0 auto 70px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid #ececf0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(16, 16, 16, .065);
}

body.checkout-success #content > h1,
body.checkout-failure #content > h1 {
  max-width: 760px;
  margin-top: 0;
  margin-bottom: 26px;
}

body.checkout-success #content > p,
body.checkout-failure #content > p,
body.checkout-success #content > ul,
body.checkout-failure #content > ul {
  max-width: 720px;
  color: #55555d;
  font-size: 17px;
  line-height: 1.55;
}

body.checkout-success #content a:not(.btn),
body.checkout-failure #content a:not(.btn) {
  color: var(--checkout-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.checkout-success #content .buttons,
body.checkout-failure #content .buttons {
  margin-top: 34px;
}

body.checkout-success #content .pull-right,
body.checkout-failure #content .pull-right {
  float: none !important;
}

@media (max-width: 1299px) {
  body.checkout-simplecheckout .simplecheckout-left-column,
  body.checkout-simplecheckout .simplecheckout-right-column {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
  }

  body.checkout-simplecheckout .simplecheckout-cart__cart-wrapper {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 991px) {
  body.checkout-simplecheckout .simplecheckout-cart__cart-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  body.checkout-simplecheckout .simplecheckout-cart__total-wrapper {
    position: static;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper {
    grid-template-columns: 100px minmax(0, 1fr) auto;
    grid-template-areas:
      "image name total"
      "image quantity total";
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .image a {
    width: 100px;
    height: 80px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .total {
    align-self: center;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr {
    grid-template-columns: 90px minmax(0, 1fr) 180px;
    grid-template-areas:
      "image name quantity"
      "image model quantity"
      "price price total";
  }
}

@media (max-width: 767px) {
  body.checkout-simplecheckout .container,
  body.checkout-checkout .container,
  body.checkout-cart .container,
  body.checkout-success .container,
  body.checkout-failure .container {
    width: min(calc(100% - 30px), 1536px);
  }

  body.checkout-simplecheckout #content,
  body.checkout-checkout #content,
  body.checkout-cart #content,
  body.checkout-success #content,
  body.checkout-failure #content {
    padding-bottom: 54px;
  }

  body.checkout-simplecheckout #content > h1,
  body.checkout-checkout #content > h1,
  body.checkout-cart #content > h1,
  body.checkout-success #content > h1,
  body.checkout-failure #content > h1 {
    margin: 15px 0 24px;
    font-size: clamp(30px, 9.5vw, 36px);
    line-height: 1;
  }

  body.checkout-simplecheckout #simplecheckout_step_menu {
    display: flex;
    margin-right: -15px;
    margin-bottom: 20px;
    padding: 0 15px 10px 0;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--checkout-dark) var(--checkout-border);
    scrollbar-width: thin;
  }

  body.checkout-simplecheckout #simplecheckout_step_menu::-webkit-scrollbar {
    height: 5px;
  }

  body.checkout-simplecheckout #simplecheckout_step_menu::-webkit-scrollbar-track {
    border-radius: 5px;
    background: var(--checkout-border);
  }

  body.checkout-simplecheckout #simplecheckout_step_menu::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--checkout-dark);
  }

  body.checkout-simplecheckout #simplecheckout_step_menu .simple-step {
    min-height: 56px;
    padding: 12px 16px 12px 50px;
    flex: 0 0 min(78vw, 260px);
    scroll-snap-align: start;
    font-size: 15px;
  }

  body.checkout-simplecheckout .simplecheckout-block .checkout-heading,
  body.checkout-simplecheckout .simplecheckout-block .panel-heading {
    padding: 18px 18px 0;
    font-size: 21px;
  }

  body.checkout-simplecheckout .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_customer .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_payment_address .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_shipping_address .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_comment .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_shipping .simplecheckout-block-content,
  body.checkout-simplecheckout #simplecheckout_payment .simplecheckout-block-content {
    padding: 16px 18px 20px !important;
  }

  body.checkout-simplecheckout #simplecheckout_shipping > .checkout-heading,
  body.checkout-simplecheckout #simplecheckout_payment > .checkout-heading {
    padding: 18px 18px 0 !important;
  }

  body.checkout-simplecheckout .simple-content .form-group {
    display: block !important;
    margin-bottom: 16px;
  }

  body.checkout-simplecheckout .simple-content .form-group > label,
  body.checkout-simplecheckout .simple-content .form-group > .control-label {
    display: block;
    margin-bottom: 8px;
  }

  body.checkout-simplecheckout .simple-content .form-group > .simplecheckout-error-text {
    margin-top: 7px;
  }

  body.checkout-simplecheckout .simple-content .form-control,
  body.checkout-checkout #content .form-control,
  body.checkout-cart #content .form-control {
    min-height: 54px;
    padding: 13px 15px;
    border-radius: 13px;
    font-size: 16px;
  }

  body.checkout-simplecheckout #simplecheckout_customer .checkout-heading {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  body.checkout-simplecheckout #simplecheckout_customer .checkout-heading-button {
    width: 100%;
    margin-left: 0;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart {
    padding: 4px 18px 10px;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart > div:first-child {
    display: none;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart > div {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    grid-template-areas:
      "image name total"
      "image quantity total";
    gap: 8px 12px;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .image { grid-area: image; }
  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .name { grid-area: name; }
  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .quantity { grid-area: quantity; }
  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .total { grid-area: total; }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart-total {
    margin: 0 18px;
    justify-content: space-between;
  }

  body.checkout-simplecheckout #buttons.simplecheckout-button-block,
  body.checkout-simplecheckout .simplecheckout-button-block {
    flex-direction: column;
    align-items: stretch;
  }

  body.checkout-simplecheckout .simplecheckout-button-right,
  body.checkout-simplecheckout .simplecheckout-button-left {
    width: 100%;
  }

  body.checkout-simplecheckout .simplecheckout-button-right {
    margin-left: 0;
    order: 1;
  }

  body.checkout-simplecheckout .simplecheckout-button-left {
    order: 2;
  }

  body.checkout-simplecheckout .simplecheckout-button-block .button,
  body.checkout-simplecheckout #simplecheckout_button_login,
  body.checkout-checkout #content .btn,
  body.checkout-cart #content .buttons .btn,
  body.checkout-success #content .btn,
  body.checkout-failure #content .btn {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 13px;
    font-size: 18px;
  }

  body.checkout-simplecheckout #agreement_checkbox {
    width: 100%;
    max-width: none;
    margin: 0 0 12px;
  }

  body.checkout-simplecheckout #simple_login {
    width: calc(100vw - 30px) !important;
    max-height: calc(100dvh - 30px);
    border-radius: 18px !important;
  }

  body.checkout-simplecheckout #simplecheckout_login .simplecheckout-block-content {
    padding: 20px !important;
  }

  body.checkout-checkout #accordion .panel-title,
  body.checkout-checkout #accordion .panel-title a {
    min-height: 58px;
    padding: 15px 17px;
    font-size: 18px;
  }

  body.checkout-checkout #accordion .panel-body {
    padding: 4px 17px 20px;
  }

  body.checkout-checkout #collapse-checkout-option .panel-body > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  body.checkout-cart #content form > .table-responsive {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.checkout-cart #content form > .table-responsive > .table,
  body.checkout-cart #content form > .table-responsive > .table > tbody {
    display: block;
    width: 100%;
  }

  body.checkout-cart #content form > .table-responsive > .table > thead {
    display: none;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr {
    display: grid;
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #ececf0;
    border-radius: 18px;
    background: #fff;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: none;
    gap: 8px 14px;
    box-shadow: 0 8px 24px rgba(16, 16, 16, .05);
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    grid-area: auto;
    text-align: left;
    overflow-wrap: anywhere;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2),
  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(3) {
    grid-column: 2;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) {
    grid-row: 1;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(3) {
    grid-row: 2;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(2) > a {
    color: var(--checkout-black);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(3) {
    color: #85868e;
    font-size: 13px;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(4) {
    margin-top: 8px;
    grid-column: 1 / -1;
    grid-row: 3;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(4)::before {
    display: block;
    margin-bottom: 7px;
    color: #85868e;
    content: "Количество";
    font-size: 13px;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5),
  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6) {
    display: flex;
    padding-top: 10px;
    border-top: 1px solid var(--checkout-border);
    grid-column: 1 / -1;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5) {
    grid-row: 4;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6) {
    grid-row: 5;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(5)::before {
    color: #85868e;
    content: "Цена";
    font-size: 13px;
  }

  body.checkout-cart #content form > .table-responsive > .table > tbody > tr > td:nth-child(6)::before {
    color: #85868e;
    content: "Итого";
    font-size: 13px;
  }

  body.checkout-cart #content form > .table-responsive .img-thumbnail {
    width: 88px;
    height: 74px;
  }

  body.checkout-cart #content .quantity-group .input-group {
    max-width: none !important;
  }

  body.checkout-cart #content > .buttons.clearfix {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  body.checkout-cart #content > .buttons.clearfix .pull-left,
  body.checkout-cart #content > .buttons.clearfix .pull-right {
    width: 100%;
    float: none !important;
  }

  body.checkout-cart #content > .buttons.clearfix .pull-right {
    order: 1;
  }

  body.checkout-cart #content > .buttons.clearfix .pull-left {
    order: 2;
  }

  body.checkout-cart #content > .row > .col-sm-4.col-sm-offset-8 {
    width: calc(100% - 30px);
    margin-right: 15px;
    margin-left: 15px;
  }

  body.checkout-success #content,
  body.checkout-failure #content {
    min-height: 0;
    margin-bottom: 45px;
    padding: 24px 20px;
    border-radius: 18px;
  }

  body.checkout-success #content > p,
  body.checkout-failure #content > p,
  body.checkout-success #content > ul,
  body.checkout-failure #content > ul {
    font-size: 15px;
  }

  body.checkout-simplecheckout .f-share,
  body.checkout-checkout .f-share,
  body.checkout-cart .f-share {
    display: none !important;
  }
}

@media (max-width: 560px) {
  body.checkout-simplecheckout .simplecheckout-product-wrapper {
    padding: 16px;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-areas:
      "image name"
      "quantity total";
    gap: 16px 12px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .image a {
    width: 82px;
    height: 70px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .name {
    align-self: center;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .name > a {
    font-size: 17px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .quantity {
    justify-self: start;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .total {
    align-self: start;
    justify-self: end;
    font-size: 20px;
  }

  body.checkout-simplecheckout .simplecheckout-cart__total-wrapper {
    padding: 18px;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart > div {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-areas:
      "image name"
      "quantity total";
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart .total {
    text-align: right;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart-total {
    gap: 10px;
  }

  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart-total span,
  body.checkout-simplecheckout #simplecheckout_summary .simplecheckout-cart-total b {
    font-size: 14px;
  }

  body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio label,
  body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio label {
    min-height: 52px;
    padding: 12px 12px 12px 48px !important;
    font-size: 15px;
  }

  body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio label::before,
  body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio label::before {
    left: 14px;
  }

  body.checkout-simplecheckout #simplecheckout_shipping .radio.m-radio input[type="radio"]:checked + label::after,
  body.checkout-simplecheckout #simplecheckout_payment .radio.m-radio input[type="radio"]:checked + label::after {
    left: 20px;
  }

  body.checkout-cart #content .table-responsive {
    overflow-x: auto;
  }
}

@media (max-width: 360px) {
  body.checkout-simplecheckout .container,
  body.checkout-checkout .container,
  body.checkout-cart .container,
  body.checkout-success .container,
  body.checkout-failure .container {
    width: calc(100% - 24px);
  }

  body.checkout-simplecheckout #simplecheckout_step_menu {
    margin-right: -12px;
    padding-right: 12px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper > .image a {
    width: 70px;
    height: 62px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity .input-group {
    width: 130px;
    grid-template-columns: 38px 46px 38px;
  }

  body.checkout-simplecheckout .simplecheckout-product-wrapper .quantity button {
    width: 38px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.checkout-simplecheckout *,
  body.checkout-checkout #content *,
  body.checkout-cart #content *,
  body.checkout-success #content *,
  body.checkout-failure #content * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
