.sm-cart-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  isolation: isolate;
}

.sm-cart-modal.is-open {
  display: flex !important;
  pointer-events: auto !important;
}

.sm-cart-modal[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.sm-cart-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  cursor: pointer;
}

.sm-cart-modal__dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 4px;
  padding: 28px 24px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  pointer-events: auto !important;
}

.sm-cart-modal.is-open .sm-cart-modal__dialog,
.sm-cart-modal.is-open .sm-cart-modal__overlay,
.sm-cart-modal.is-open .sm-cart-modal__actions .btn,
.sm-cart-modal.is-open .sm-cart-modal__close {
  pointer-events: auto !important;
}

.sm-cart-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  pointer-events: auto;
}

.sm-cart-modal__close svg {
  pointer-events: none;
}

.sm-cart-modal__actions .btn {
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.sm-cart-modal__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin: 0 0 8px;
}

.sm-cart-modal__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.sm-cart-modal__image {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  background: #f7f4ef;
}

.sm-cart-modal__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sm-cart-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.sm-cart-modal__qty,
.sm-cart-modal__price {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.sm-cart-modal__price {
  font-weight: 600;
}

.sm-cart-modal__meta {
  flex: 1;
}

.sm-cart-modal__qty,
.sm-cart-modal__price {
  margin: 0 0 4px;
  font-size: 14px;
}

.sm-cart-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-product-add-error[hidden],
.add-action-errors:empty {
  display: none !important;
}

.header__desktop__button,
.header__mobile__right,
.header__toolbar__icons,
a.navlink--cart,
a[data-sm-cart-open],
.header__mobile__button[href="#sm-cart"],
.header__mobile__button[href="/cart"] {
  overflow: visible !important;
}

a.navlink--cart,
a[data-sm-cart-open],
.header__mobile__button[href="#sm-cart"],
.header__mobile__button[href="/cart"],
.sm-cart-link--with-badge {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}

.sm-cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.sm-header-cart-bubble {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #111 !important;
  color: #fff !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
  z-index: 50;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-style: normal;
}

.sm-header-cart-bubble {
  display: none;
}

.sm-header-cart-bubble.is-visible {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.header__cart__status {
  display: none !important;
}

[data-header-cart-full="true"] .icon-cart-full {
  fill: var(--primary, #111) !important;
}

.header__desktop__button,
.header__desktop__buttons,
.header__mobile__right,
.header__mobile__button,
.theme__header,
.header__mobile {
  overflow: visible !important;
}

.header__mobile__right .header__mobile__button {
  position: relative !important;
  overflow: visible !important;
}

.header__mobile__button .sm-header-cart-bubble.is-visible {
  z-index: 200 !important;
}

/* Темата рисува брояч върху .header__inner — скриваме, ползваме .sm-header-cart-bubble */
.header__inner[data-header-cart-full="true"]::before,
.header__inner[data-header-cart-full="true"]::after {
  display: none !important;
  content: none !important;
}

#drawer-cart.sm-cart-drawer-open,
#drawer-cart.drawer--visible.is-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 99999 !important;
}

#drawer-cart.sm-cart-drawer-open .drawer__content,
#drawer-cart.drawer--visible.is-open .drawer__content {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: min(450px, 100vw) !important;
  max-width: 450px !important;
  height: 100% !important;
  visibility: visible !important;
  content-visibility: visible !important;
  transform: translate3d(0, 0, 0) !important;
  pointer-events: auto !important;
  z-index: 2 !important;
  background: #fff !important;
}

#drawer-cart.sm-cart-drawer-open .drawer__underlay,
#drawer-cart.drawer--visible.is-open .drawer__underlay {
  position: fixed !important;
  inset: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.sm-product-add-error {
  color: #9b2c2c;
  font-size: 14px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fdeaea;
  border: 1px solid #e8b4b4;
  border-radius: 4px;
}

.add-action-errors:empty {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.sm-cart-drawer.drawer--visible,
.sm-cart-drawer.is-visible,
.sm-cart-drawer.is-open {
  visibility: visible;
  transform: translateZ(0);
  z-index: 9999;
}

#drawer-cart.drawer--visible .drawer__underlay,
#drawer-cart.is-open .drawer__underlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#drawer-cart.drawer--visible .drawer__content,
#drawer-cart.is-open .drawer__content {
  transform: translate3d(0, 0, 0);
}

/* Темата скрива деца на .drawer__content с opacity:0 без .drawer__inner */
#drawer-cart.drawer--visible .drawer__content > .drawer__top,
#drawer-cart.drawer--visible .drawer__content > .drawer__body,
#drawer-cart.drawer--visible .drawer__content > .drawer__bottom,
#drawer-cart.is-open .drawer__content > .drawer__top,
#drawer-cart.is-open .drawer__content > .drawer__body,
#drawer-cart.is-open .drawer__content > .drawer__bottom,
#drawer-cart.sm-cart-drawer-open .drawer__content > .drawer__top,
#drawer-cart.sm-cart-drawer-open .drawer__content > .drawer__body,
#drawer-cart.sm-cart-drawer-open .drawer__content > .drawer__bottom {
  opacity: 1 !important;
  visibility: visible !important;
}

#drawer-cart.drawer--visible.is-open .drawer__content,
#drawer-cart.sm-cart-drawer-open .drawer__content {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

#drawer-cart .drawer__body.sm-cart-drawer__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  opacity: 1 !important;
  color: #111 !important;
}

#drawer-cart .sm-cart-panel,
#drawer-cart .sm-cart-lines,
#drawer-cart .sm-cart-empty,
#drawer-cart .sm-cart-line,
#drawer-cart .sm-cart-errors,
#drawer-cart .sm-cart-loading {
  opacity: 1 !important;
  visibility: visible !important;
}

#drawer-cart .sm-cart-panel[data-sm-cart-step="1"] {
  display: block !important;
}

#drawer-cart .drawer__bottom.sm-cart-drawer__bottom {
  flex: 0 0 auto !important;
}

.sm-cart-drawer__top {
  flex-wrap: wrap;
  gap: 8px;
}

#drawer-cart.sm-cart-drawer--mini .sm-cart-steps,
#drawer-cart.sm-cart-drawer--mini .sm-cart-review-extras {
  display: none !important;
}

#drawer-cart.sm-cart-drawer--mini [data-sm-cart-back],
#drawer-cart.sm-cart-drawer--mini [data-sm-cart-place] {
  display: none !important;
}

#drawer-cart.sm-cart-drawer--mini .sm-cart-drawer__body {
  padding: 0 20px 100px;
}

#drawer-cart.sm-cart-drawer--mini .drawer__top {
  padding: 0 20px;
}

#drawer-cart.sm-cart-drawer--mini .sm-cart-drawer__bottom {
  padding: 16px 20px 20px;
  border-top: 1px solid #ece6dd;
  background: #fff;
}

#drawer-cart.sm-cart-drawer--mini .cart__drawer__title,
#drawer-cart.sm-cart-drawer--mini .sm-cart-drawer__title {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
}

.sm-cart-drawer__note {
  margin: 0 0 12px;
  font-size: 12px;
  font-style: italic;
  color: #666;
  line-height: 1.4;
}

#drawer-cart.sm-cart-drawer--checkout .sm-cart-drawer__note {
  display: none;
}

.sm-cart-drawer__bottom .btn--primary[data-sm-cart-checkout-btn] {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.sm-cart-steps {
  width: 100%;
  max-width: 640px;
  margin: 8px auto 0;
}

.sm-cart-steps__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.sm-cart-steps__step {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  cursor: default;
}

.sm-cart-steps__step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 2px;
  background: #d8d0c4;
  z-index: 0;
}

.sm-cart-steps__step:first-child::before {
  left: 50%;
}

.sm-cart-steps__step:last-child::before {
  right: 50%;
}

.sm-cart-steps__step.is-done::before {
  background: #111;
}

.sm-cart-steps__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d8d0c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  background: #fff;
  box-sizing: border-box;
  flex-shrink: 0;
}

.sm-cart-steps__label {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #888;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.sm-cart-page .sm-cart-steps__step {
  cursor: pointer;
}

.sm-cart-steps__step.is-active .sm-cart-steps__dot {
  background: #fff;
  border-color: #111;
  color: #111;
}

.sm-cart-steps__step.is-active .sm-cart-steps__label {
  color: #111;
  font-weight: 600;
}

.sm-cart-steps__step.is-done .sm-cart-steps__dot {
  background: #111;
  border-color: #111;
  color: #fff;
}

.sm-cart-steps__step.is-done .sm-cart-steps__label {
  color: #111;
}

/* legacy class — keep if cached HTML still references it */
.sm-cart-steps__item {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #d8d0c4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: #888;
  background: #fff;
}

@media (min-width: 480px) {
  .sm-cart-steps__label {
    font-size: 11px;
  }

  .sm-cart-steps__dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .sm-cart-steps__step::before {
    top: 15px;
  }
}

@media (min-width: 768px) {
  .sm-cart-steps {
    max-width: 720px;
  }

  .sm-cart-steps__label {
    font-size: 12px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
}

.sm-cart-drawer__body {
  padding-bottom: 120px;
}

.sm-cart-loading {
  margin: 24px 0;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.sm-cart-drawer__body.is-loading .sm-cart-panel[data-sm-cart-step="1"] .sm-cart-lines {
  min-height: 48px;
}

.sm-cart-errors {
  background: #fdecea;
  border: 1px solid #f5c6c0;
  color: #8a1f11;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
  border-radius: 4px;
  scroll-margin-top: 96px;
  scroll-margin-bottom: 24px;
}

.sm-cart-empty {
  text-align: center;
  padding: 32px 16px;
}

.sm-cart-panel__title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 600;
}

.sm-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #ece6dd;
  align-items: start;
}

.sm-cart-line__media {
  display: block;
  line-height: 0;
}

.sm-cart-line__image {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 2px;
  background: #f7f4ef;
}

.sm-cart-line__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.sm-cart-line__title {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  line-height: 1.45;
  flex: 1;
}

.sm-cart-line__title a {
  color: inherit;
  text-decoration: none;
}

.sm-cart-line__unit-price {
  margin: 6px 0 10px;
  font-size: 14px;
  color: #111;
}

.sm-cart-line__qty {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  height: 36px;
  box-sizing: border-box;
  border: 1px solid #d8d0c4;
  border-radius: 0;
  overflow: hidden;
  vertical-align: top;
}

.sm-cart-line__remove {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  color: #666;
  line-height: 0;
}

.sm-cart-line__remove:hover {
  color: #111;
}

.sm-cart-line__qty button {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  font-size: 18px;
  line-height: 1;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sm-cart-line__qty button:hover {
  background: #f7f4ef;
}

#drawer-cart .sm-cart-line__qty,
#drawer-cart .sm-cart-line__remove,
#drawer-cart .sm-cart-line__qty button,
#drawer-cart .sm-cart-line__qty input {
  pointer-events: auto !important;
}

.sm-cart-line__qty input {
  flex: 0 0 44px;
  width: 44px;
  height: 36px;
  min-height: 0;
  max-height: 36px;
  padding: 0;
  margin: 0;
  text-align: center;
  border: 0;
  border-left: 1px solid #d8d0c4;
  border-right: 1px solid #d8d0c4;
  font-size: 14px;
  line-height: 36px;
  box-sizing: border-box;
  -moz-appearance: textfield;
  appearance: textfield;
}

#drawer-cart .sm-cart-line__qty input[type="number"] {
  min-height: 0 !important;
  height: 36px !important;
  padding: 0 !important;
  line-height: 36px !important;
}

.sm-cart-line__qty input::-webkit-outer-spin-button,
.sm-cart-line__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sm-cart-line__remove {
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: #111;
  line-height: 0;
}

.sm-cart-promo__row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.sm-cart-promo__applied {
  margin: 8px 0 0;
  font-size: 13px;
}

.sm-cart-link {
  background: none;
  border: 0;
  padding: 0;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  color: #111;
}

.sm-cart-fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}

.sm-cart-fieldset legend,
.sm-cart-fieldset__legend {
  font-weight: 600;
  margin-bottom: 10px;
}

.sm-cart-panel--delivery {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.sm-cart-delivery-pay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: start;
}

.sm-cart-delivery-pay__col--delivery {
  padding-right: 28px;
  border-right: 1px solid #ece6dd;
}

.sm-cart-delivery-pay__col--payment {
  padding-left: 28px;
}

.sm-cart-panel--delivery .sm-cart-fieldset {
  margin-bottom: 0;
}

.sm-cart-panel--delivery .sm-cart-fieldset__legend {
  display: block;
  text-align: center;
  font-size: 14px;
  margin-bottom: 14px;
}

.sm-cart-fieldset--payment {
  margin-top: 0;
}

@media (max-width: 767px) {
  .sm-cart-delivery-pay {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sm-cart-delivery-pay__col--delivery {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid #ece6dd;
    padding-bottom: 24px;
  }

  .sm-cart-delivery-pay__col--payment {
    padding-left: 0;
  }
}

.sm-cart-delivery-kinds {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-cart-delivery-kind-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sm-cart-delivery-submenu {
  margin: 4px 0 6px 0;
  padding-left: 22px;
  border-left: 2px solid #ece6dd;
}

.sm-cart-delivery-submenu__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.sm-cart-delivery-submenu__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
}

.sm-cart-delivery-submenu .sm-cart-option--courier {
  margin-left: 0;
  align-items: center;
}

.sm-cart-delivery-submenu .sm-cart-option--courier input[type="radio"] {
  margin: 0;
  align-self: center;
}

.sm-cart-delivery-submenu .sm-cart-option--courier .sm-cart-option__text {
  align-self: center;
  align-items: center;
}

.sm-cart-delivery-submenu .sm-cart-option--courier .sm-cart-option__label {
  font-weight: 500;
}

.sm-cart-option--courier.sm-cart-option--has-logo {
  align-items: center;
}

.sm-cart-option__icon--courier {
  flex: 0 0 72px;
  width: 72px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-cart-courier-logo {
  display: block;
  max-width: 64px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sm-cart-option--delivery-kind {
  align-items: center;
}

.sm-cart-option--delivery-kind input[type="radio"] {
  margin: 0;
  align-self: center;
}

.sm-cart-option--delivery-kind .sm-cart-option__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: #111;
}

.sm-cart-option--delivery-kind .sm-cart-option__icon-svg {
  display: block;
  width: 28px;
  height: 28px;
}

.sm-cart-option--delivery-kind .sm-cart-option__text {
  align-self: center;
  align-items: center;
}

.sm-cart-option--delivery-kind .sm-cart-option__label {
  font-weight: 600;
  line-height: 1.35;
}

.sm-cart-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-cart-options__empty {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.sm-cart-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #d8d0c4;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sm-cart-option:hover {
  border-color: #111;
}

.sm-cart-option.is-selected {
  border-color: #111;
  background: #f7f4ef;
}

.sm-cart-option input {
  flex: 0 0 auto;
  margin: 3px 0 0;
  accent-color: #111;
}

.sm-cart-option__text {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
  min-width: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #111;
}

.sm-cart-option__label {
  font-weight: 500;
}

.sm-cart-option__meta {
  color: #555;
  font-weight: 400;
}

.sm-cart-option__meta-free {
  font-weight: 600;
  color: #2d6a4f;
  letter-spacing: 0.01em;
}

.sm-cart-option--payment {
  align-items: center;
}

.sm-cart-option--payment input[type="radio"] {
  margin: 0;
  align-self: center;
}

.sm-cart-option--payment .sm-cart-option__text {
  align-self: center;
  align-items: center;
}

.sm-cart-option--payment .sm-cart-option__icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}

.sm-cart-option--payment .sm-cart-option__icon-svg {
  display: block;
  width: 28px;
  height: 28px;
}

.sm-cart-option--payment.is-selected .sm-cart-option__icon {
  color: #111;
}

.sm-cart-form label,
.sm-cart-form__field {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.sm-cart-form__field:last-child {
  margin-bottom: 0;
}

.sm-cart-form__field--phone .sm-cart-form__label {
  display: block;
  margin-bottom: 6px;
}

.sm-cart-phone-input {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.sm-cart-form__field--phone .sm-cart-phone-input__prefix {
  width: 100% !important;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: 4px;
  padding-right: 4px;
  border: 1px solid #d8d0c4;
  border-right: none;
  border-radius: 0;
  background: #f0ebe3;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  color: #111;
  text-align: center;
  box-sizing: border-box;
  cursor: default;
  pointer-events: none;
  -webkit-text-fill-color: #111;
  height: 100%;
  min-height: 0;
}

.sm-cart-form__field--phone .sm-cart-phone-input__prefix:focus {
  outline: none;
  box-shadow: none;
}

.sm-cart-form__field--phone .sm-cart-phone-input__local {
  width: 100% !important;
  min-width: 0;
  margin: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 100%;
  min-height: 0;
}

.sm-cart-field-hidden,
.sm-cart-form--contact .sm-cart-form__extra,
.sm-cart-form--contact [data-sm-cart-step4-extra] {
  display: none !important;
}

.sm-cart-form--contact .sm-cart-form__contact {
  display: grid;
  gap: 16px;
}

html.sm-cart-page--checkout .sm-cart-page__wizard {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

html.sm-cart-page--checkout .sm-cart-panel--step4 {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

html.sm-cart-page--checkout .sm-cart-panel--step4 .sm-cart-panel__title {
  text-align: center;
  margin-bottom: 20px;
}

html.sm-cart-page--checkout .sm-cart-panel--step4-contact .sm-cart-form__contact {
  max-width: 100%;
}

#drawer-cart .sm-cart-panel--step4-contact .sm-cart-form__contact {
  display: grid;
  gap: 14px;
}

.sm-cart-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

/* Застраховка: скрита по подразбиране (темата/.sm-cart-check override-ват [hidden]) */
[data-sm-cart-insurance-wrap] {
  display: none !important;
}

[data-sm-cart-insurance-wrap].sm-cart-insurance--available {
  display: flex !important;
}

.sm-cart-totals {
  margin-bottom: 12px;
  font-size: 14px;
}

.sm-cart-totals__rows {
  width: 100%;
}

.sm-cart-totals__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 5px 0;
  line-height: 1.45;
  color: #444;
}

.sm-cart-totals__row span:first-child {
  flex: 1 1 auto;
}

.sm-cart-totals__row span:last-child {
  flex: 0 0 auto;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

.sm-cart-totals__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #e5dfd4;
  font-size: 15px;
  color: #111;
}

.sm-cart-totals__row--total span:last-child {
  font-weight: 700;
  font-size: 16px;
}

.sm-cart-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sm-cart-success {
  text-align: center;
  padding: 40px 16px;
}

@media (max-width: 767px) {
  .sm-cart-line {
    grid-template-columns: 72px 1fr;
  }
  .sm-cart-line__image {
    width: 72px;
    height: 72px;
  }
}


/* /cart — отделна страница (не slide-over drawer) */
html.sm-cart-page #drawer-cart {
  display: none !important;
}

html.sm-cart-page .sm-cart-page__root {
  width: 100%;
}

html.sm-cart-page .sm-cart-page__errors {
  margin: 0 auto 16px;
  max-width: 720px;
  box-sizing: border-box;
}

html.sm-cart-page--checkout .sm-cart-page__wizard > .sm-cart-errors {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

html.sm-cart-page .sm-cart-page__head-wrap {
  padding-bottom: 0;
}

html.sm-cart-page .sm-cart-page__title {
  text-align: center;
  margin: 0 0 20px;
  width: 100%;
}

/* Заглавие само горе в head — не и в панела под стъпките */
html.sm-cart-page.sm-cart-page-step-4 .sm-cart-page__wizard .sm-cart-panel--step4 > .sm-cart-panel__title,
html.sm-cart-page.sm-cart-page-step-5 .sm-cart-page__wizard .sm-cart-panel--summary > .sm-cart-panel__title,
html.sm-cart-page.sm-cart-page-step-5 .sm-cart-page__wizard .sm-cart-panel[data-sm-cart-step="5"] > .sm-cart-panel__title {
  display: none !important;
  margin: 0;
}

html.sm-cart-page .sm-cart-page__review-wrap {
  padding-top: 0;
}

html.sm-cart-page .sm-cart-page__subtotal-wrap {
  display: block;
  text-align: right;
}

html.sm-cart-page .sm-cart-page__subtotal {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
}

html.sm-cart-page .sm-cart-page__subtotal--formula .sm-cart-page__subtotal {
  font-size: 14px;
  font-weight: 400;
}

html.sm-cart-page .sm-cart-page__subtotal span,
html.sm-cart-page .sm-cart-page__subtotal strong {
  font-weight: 600;
  color: #111;
}

.sm-cart-totals__formula--step1 {
  text-align: right;
  font-size: 14px;
}

html.sm-cart-page--checkout .sm-cart-page__head-wrap {
  display: block !important;
}

html.sm-cart-page--checkout .sm-cart-page__head-wrap[hidden] {
  display: none !important;
}

html.sm-cart-page [data-sm-cart-page-steps][hidden] {
  display: none !important;
}

html.sm-cart-page .sm-cart-page__steps:not([hidden]) {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
  padding: 0 12px;
  box-sizing: border-box;
}

html.sm-cart-page .sm-cart-page__steps .sm-cart-steps {
  margin-top: 0;
}

html.sm-cart-page .sm-cart-page__wizard {
  margin-top: 24px;
}

html.sm-cart-page .sm-cart-page__wizard-nav .sm-cart-nav .btn--full {
  width: auto;
}

html.sm-cart-page .sm-cart-page__wizard-nav {
  padding-top: 8px;
}

html.sm-cart-page--checkout [data-sm-cart-page-review] {
  display: none !important;
}

html.sm-cart-page--checkout [data-sm-cart-page-wizard] {
  display: block !important;
}

html.sm-cart-page--checkout .sm-cart-page__wizard-nav {
  display: block;
  margin-bottom: 32px;
  padding-bottom: 28px;
}

html.sm-cart-page--checkout .sm-cart-wizard-foot__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

html.sm-cart-page--checkout #sm-cart-page.sm-cart-page__root {
  padding-bottom: 24px;
  margin-bottom: 16px;
}

html.sm-cart-page .sm-cart-page__wizard[hidden] {
  display: none !important;
}

html.sm-cart-page--checkout .sm-cart-page__wizard[hidden] {
  display: none !important;
}

html.sm-cart-page--checkout .sm-cart-page__wizard:not([hidden]) {
  display: block !important;
}
html.sm-cart-page .sm-cart-page__wizard > .sm-cart-steps {
  display: block;
  margin: 0 auto 24px;
  padding: 0 12px;
  box-sizing: border-box;
}

html.sm-cart-page .sm-cart-page__step1-extras {
  margin: 24px 0 8px;
  padding-top: 20px;
  border-top: 1px solid #ece6dd;
}

html.sm-cart-page .sm-cart-page__step1-extras .sm-cart-review-extras {
  display: block !important;
}

/* /cart — HTML таблица */
#sm-cart-page .sm-cart-page__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  height: auto !important;
  overflow: visible !important;
}

#sm-cart-page .sm-cart-page__table tbody td {
  box-sizing: border-box;
  vertical-align: middle;
}

#sm-cart-page .sm-cart-page__td-image a {
  display: block;
  width: 90px;
  height: 90px;
}

#sm-cart-page .sm-cart-page__img {
  width: 90px;
  height: 90px;
  padding-top: 0;
  object-fit: cover;
  display: block;
}

#sm-cart-page .sm-cart-page__product-link {
  display: inline;
}

#sm-cart-page .sm-cart-page__remove {
  position: static;
  margin-top: 8px;
}

#sm-cart-page .sm-cart-page__warn-row td {
  padding-top: 12px;
  padding-bottom: 0;
  border-bottom: 0;
}

#sm-cart-page .sm-cart-page__table .sm-cart-stock-warning {
  margin: 0;
}

/* Мобилна — card layout (не table) */
@media only screen and (max-width: 767px) {
  #sm-cart-page .sm-cart-page__table {
    display: block !important;
    table-layout: auto;
  }

  #sm-cart-page .sm-cart-page__table colgroup {
    display: none;
  }

  #sm-cart-page .sm-cart-page__table thead {
    display: none !important;
  }

  #sm-cart-page .sm-cart-page__table tbody {
    display: block !important;
  }

  #sm-cart-page .sm-cart-page__table tbody tr.sm-cart-page__warn-row {
    display: block !important;
    width: 100%;
  }

  #sm-cart-page .sm-cart-page__table tbody tr.sm-cart-line,
  #sm-cart-page .sm-cart-page__table tbody tr.cart__items__row,
  html.sm-cart-page .cart__template .cart__items__row {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box;
    min-height: 80px;
    padding: 0 0 20px !important;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border, #d8d0c4);
    overflow: hidden;
  }

  #sm-cart-page .sm-cart-page__table tbody td {
    display: block !important;
    border-bottom: 0;
    padding: 0;
    box-sizing: border-box;
  }

  #sm-cart-page .sm-cart-page__td-image {
    float: left !important;
    width: 80px !important;
    height: auto !important;
    margin: 0 12px 0 0 !important;
    padding: 0 !important;
  }

  #sm-cart-page .sm-cart-page__td-image a {
    position: static !important;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    overflow: hidden;
  }

  #sm-cart-page .sm-cart-page__td-image .sm-cart-page__img {
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    max-width: none !important;
    padding-top: 0 !important;
    object-fit: cover;
    visibility: visible !important;
    opacity: 1 !important;
  }

  #sm-cart-page .sm-cart-page__td-product {
    display: block !important;
    overflow: hidden !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0 8px !important;
  }

  #sm-cart-page .sm-cart-page__td-qty,
  #sm-cart-page .sm-cart-page__td-total {
    width: auto !important;
    max-width: none !important;
    margin: 0 0 8px 92px !important;
    clear: none !important;
    float: none !important;
  }

  #sm-cart-page .sm-cart-page__td-total {
    margin-bottom: 0 !important;
  }

  #sm-cart-page .sm-cart-page__brand {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
  }

  #sm-cart-page .sm-cart-page__variant {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.35;
  }

  #sm-cart-page .sm-cart-page__variant a {
    color: inherit;
    text-decoration: none;
  }

  #sm-cart-page .sm-cart-page__remove {
    margin-top: 8px;
  }

  html.sm-cart-page #sm-cart-page .sm-cart-page__remove .cart__remove {
    position: static !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    border: 1px solid var(--border, #d8d0c4) !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: inherit;
    text-decoration: none;
  }

  #sm-cart-page .sm-cart-page__td-price {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #sm-cart-page .sm-cart-page__qty-label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light, #888);
  }

  #sm-cart-page .sm-cart-page__td-total {
    font-size: 14px;
  }

  #sm-cart-page .sm-cart-page__total-label {
    font-weight: 600;
  }

  #sm-cart-page .sm-cart-page__td-qty .quantity__wrapper {
    display: inline-flex !important;
    position: relative !important;
    align-items: stretch !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border, #d8d0c4);
  }

  #sm-cart-page .sm-cart-page__td-qty .quantity__button {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
  }

  #sm-cart-page .sm-cart-page__td-qty .quantity__input {
    position: static !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    color: var(--text-dark, #1a1a1a) !important;
    background: #fff !important;
    -webkit-text-fill-color: var(--text-dark, #1a1a1a) !important;
    opacity: 1 !important;
  }

  #sm-cart-page .sm-cart-page__warn-row td {
    display: block !important;
    width: 100% !important;
    padding: 0 0 12px !important;
  }

  #sm-cart-page .sm-cart-page__warn-row + tr.sm-cart-line {
    padding-top: 0;
  }
}

/* Десктоп — таблица с подравнени колони */
@media only screen and (min-width: 768px) {
  #sm-cart-page .sm-cart-page__table {
    display: table !important;
    table-layout: fixed;
  }

  #sm-cart-page .sm-cart-page__table thead {
    display: table-header-group !important;
  }

  #sm-cart-page .sm-cart-page__table tbody {
    display: table-row-group !important;
  }

  #sm-cart-page .sm-cart-page__table tr {
    display: table-row !important;
  }

  #sm-cart-page .sm-cart-page__table th,
  #sm-cart-page .sm-cart-page__table td {
    display: table-cell !important;
  }

  #sm-cart-page .sm-cart-page__col-image {
    width: 96px;
  }

  #sm-cart-page .sm-cart-page__col-product {
    width: auto;
  }

  #sm-cart-page .sm-cart-page__col-price {
    width: 110px;
  }

  #sm-cart-page .sm-cart-page__col-qty {
    width: 150px;
  }

  #sm-cart-page .sm-cart-page__col-total {
    width: 110px;
  }

  #sm-cart-page .sm-cart-page__table thead th {
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--border, #d8d0c4);
    font-weight: inherit;
    vertical-align: bottom;
  }

  #sm-cart-page .sm-cart-page__th-image {
    padding-inline-start: 0;
    width: 96px;
  }

  #sm-cart-page .sm-cart-page__th-product {
    text-align: start;
    padding-inline-start: 0;
  }

  #sm-cart-page .sm-cart-page__th-product .cart__return {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
  }

  #sm-cart-page .sm-cart-page__th-price,
  #sm-cart-page .sm-cart-page__td-price {
    width: 110px;
    text-align: center;
  }

  #sm-cart-page .sm-cart-page__th-qty,
  #sm-cart-page .sm-cart-page__td-qty {
    width: 150px;
    text-align: center;
  }

  #sm-cart-page .sm-cart-page__th-total,
  #sm-cart-page .sm-cart-page__td-total {
    width: 110px;
    text-align: center;
  }

  #sm-cart-page .sm-cart-page__table tbody td {
    padding: var(--gutter, 20px) 16px;
    border-bottom: 1px solid var(--border, #d8d0c4);
  }

  #sm-cart-page .sm-cart-page__table tbody tr:first-child td {
    padding-top: var(--gutter, 20px);
  }

  #sm-cart-page .sm-cart-page__td-image {
    width: 96px;
    padding-inline-start: 0;
    padding-inline-end: 8px;
  }

  #sm-cart-page .sm-cart-page__td-product {
    padding-inline-start: 0;
    padding-inline-end: 24px;
    word-break: normal;
    overflow-wrap: break-word;
  }

  #sm-cart-page .sm-cart-page__brand {
    margin: 0 0 4px;
    font-weight: 700;
  }

  #sm-cart-page .sm-cart-page__variant {
    margin: 0;
  }

  #sm-cart-page .sm-cart-page__qty-label,
  #sm-cart-page .sm-cart-page__total-label {
    display: none;
  }

  #sm-cart-page .sm-cart-page__td-price,
  #sm-cart-page .sm-cart-page__td-qty,
  #sm-cart-page .sm-cart-page__td-total {
    white-space: nowrap;
  }

  #sm-cart-page .sm-cart-page__td-qty .quantity__wrapper {
    display: inline-flex;
    margin: 0 auto;
  }

  #sm-cart-page .sm-cart-page__warn-row + tr td {
    padding-top: 8px;
  }
}

html.sm-cart-page .cart__items__row .quantity__wrapper,
html.sm-cart-page #sm-cart-page .quantity__wrapper {
  display: inline-flex !important;
  align-items: stretch;
  position: relative !important;
  margin: 0;
  min-width: 120px;
  border: 1px solid var(--border, #d8d0c4);
  overflow: hidden;
}

html.sm-cart-page .cart__items__row .quantity__button,
html.sm-cart-page #sm-cart-page .quantity__button {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: 0;
  background: #fff !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
  color: var(--text-dark, #1a1a1a) !important;
  -webkit-text-fill-color: var(--text-dark, #1a1a1a);
}

html.sm-cart-page .cart__items__row .quantity__input,
html.sm-cart-page #sm-cart-page .quantity__input {
  position: static !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 36px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  padding: 0 !important;
  margin: 0;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--border, #d8d0c4);
  border-right: 1px solid var(--border, #d8d0c4);
  font-size: 14px;
  line-height: 36px;
  color: var(--text-dark, #1a1a1a) !important;
  background: #fff !important;
  -webkit-text-fill-color: var(--text-dark, #1a1a1a);
  -moz-appearance: textfield;
  appearance: textfield;
}

html.sm-cart-page .cart__items__row .quantity__input::-webkit-outer-spin-button,
html.sm-cart-page .cart__items__row .quantity__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sm-cart-stock-warning {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: #9b2c2c;
  background: #fdeaea;
  border: 1px solid #e8b4b4;
  border-radius: 2px;
}

.cart__template .cart__items__row.sm-cart-line--stock-issue .cart__items__grid {
  opacity: 0.92;
}

.sm-cart-line--stock-issue .sm-cart-line__qty {
  border-color: #e8b4b4;
}

.checkout__button.is-disabled,
.checkout__button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

html.sm-cart-page .cart__remove {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border: 1px solid var(--border, #d8d0c4);
  display: inline-block;
}

html.sm-cart-page .checkout__button .cta__dot {
  margin: 0 0.35em;
}

/* Стъпка 2 — upsell / препоръки */
.sm-cart-upsell__lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
  text-align: center;
  max-width: 36em;
  margin-left: auto;
  margin-right: auto;
}

.sm-cart-upsell__loading,
.sm-cart-upsell__empty {
  margin: 0 0 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
}

.sm-cart-upsell__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 600px) {
  .sm-cart-upsell__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

.sm-cart-nav--inline {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sm-cart-nav--split {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
}

.sm-cart-wizard-foot__inner {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
}

.sm-cart-nav--inline .sm-cart-nav__btn,
.sm-cart-nav--split .sm-cart-nav__btn {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
}

html.sm-cart-page .sm-cart-page__wizard-nav .sm-cart-totals {
  width: 100%;
  max-width: 920px;
  margin: 20px auto 16px;
  padding: 0 12px;
  box-sizing: border-box;
}

html.sm-cart-page .sm-cart-page__wizard-nav .sm-cart-totals--formula,
#drawer-cart .sm-cart-drawer__bottom .sm-cart-totals--formula {
  text-align: right;
  padding: 14px 16px;
  border: 1px solid #ece6dd;
  background: #fff;
  box-sizing: border-box;
}

html.sm-cart-page .sm-cart-page__wizard-nav .sm-cart-totals--rows {
  text-align: left;
  max-width: 420px;
  padding: 14px 18px;
  border: 1px solid #ece6dd;
  background: #fff;
  box-sizing: border-box;
}

html.sm-cart-page.sm-cart-page-step-4 .sm-cart-page__wizard-nav .sm-cart-nav--split {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

html.sm-cart-page.sm-cart-page-step-5 .sm-cart-page__wizard-nav .sm-cart-nav--split {
  width: 100%;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.sm-cart-totals__formula {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  font-weight: 400;
  text-align: right;
}

.sm-cart-totals__formula span {
  font-weight: 600;
  color: #111;
}

.sm-cart-totals__formula-total {
  font-weight: 700;
}

html.sm-cart-page .sm-cart-page__wizard-nav [data-sm-cart-place] {
  display: none !important;
}

html.sm-cart-page.sm-cart-page-step-5 .sm-cart-page__wizard-nav [data-sm-cart-place] {
  display: inline-flex !important;
}

html.sm-cart-page.sm-cart-page-step-5 .sm-cart-page__wizard-nav [data-sm-cart-next] {
  display: none !important;
}

.sm-cart-summary {
  max-width: 560px;
  margin: 0 auto 20px;
  text-align: left;
}

.sm-cart-summary__order {
  margin: 0 0 18px;
  font-size: 15px;
  color: #333;
}

.sm-cart-summary__block {
  margin: 0 0 20px;
}

.sm-cart-summary__heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.sm-cart-summary__lines,
.sm-cart-summary__services,
.sm-cart-summary__contact {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #ece6dd;
  background: #fff;
}

.sm-cart-summary__line,
.sm-cart-summary__service {
  display: grid;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ebe3;
  font-size: 14px;
  line-height: 1.4;
}

.sm-cart-summary__line:last-child,
.sm-cart-summary__service:last-child,
.sm-cart-summary__contact-row:last-child {
  border-bottom: none;
}

.sm-cart-summary__contact-row {
  display: grid;
  grid-template-columns: minmax(88px, 0.85fr) 1fr;
  gap: 6px 12px;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid #f0ebe3;
  font-size: 14px;
  line-height: 1.4;
}

.sm-cart-summary__contact-label {
  font-weight: 600;
  color: #111;
}

.sm-cart-summary__contact-value {
  color: #333;
  word-break: break-word;
}

.sm-cart-summary__line {
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
}

.sm-cart-summary__line-image {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  background: #f5f2ed;
}

.sm-cart-summary__line-image--placeholder {
  display: block;
}

.sm-cart-summary__line-name {
  color: #111;
  min-width: 0;
}

.sm-cart-summary__line-qty {
  color: #666;
  white-space: nowrap;
}

.sm-cart-summary__line-price {
  font-weight: 600;
  color: #111;
  text-align: right;
  white-space: nowrap;
}

.sm-cart-summary__service {
  grid-template-columns: minmax(88px, 0.85fr) minmax(0, 1.5fr) auto;
  align-items: center;
}

.sm-cart-summary__service-label {
  font-weight: 600;
  color: #111;
}

.sm-cart-summary__service-detail {
  color: #555;
}

.sm-cart-summary__service-price {
  font-weight: 600;
  color: #111;
  text-align: right;
  white-space: nowrap;
  min-width: 4.5em;
}

.sm-cart-summary__block--total {
  margin-bottom: 0;
}

.sm-cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ece6dd;
  background: #fff;
  font-size: 15px;
}

.sm-cart-summary__total-label {
  font-weight: 600;
  color: #111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 13px;
}

.sm-cart-summary__total-value {
  font-weight: 700;
  font-size: 18px;
  color: #111;
  white-space: nowrap;
}

#drawer-cart .sm-cart-summary {
  max-width: none;
  margin-bottom: 16px;
}

html.sm-cart-page--checkout .sm-cart-panel--summary,
#drawer-cart .sm-cart-panel--summary {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

html.sm-cart-page--checkout .sm-cart-panel--summary .sm-cart-check--invoice,
#drawer-cart .sm-cart-panel--summary .sm-cart-check--invoice {
  justify-content: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.sm-cart-invoice {
  max-width: 420px;
  margin: 0 auto 8px;
  padding-top: 4px;
}

.sm-cart-invoice[hidden] {
  display: none !important;
}

.sm-cart-invoice__type {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.sm-cart-invoice__type .sm-cart-fieldset__legend {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.sm-cart-invoice__type-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 16px 0 0;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}

.sm-cart-invoice .sm-cart-form__field .input-full {
  width: 100%;
  box-sizing: border-box;
}

.sm-cart-panel__title--center {
  text-align: center;
  width: 100%;
}

/* /cart: заглавието на стъпката е в горния h3 (вече центриран) */
#drawer-cart .sm-cart-panel--summary > .sm-cart-panel__title--center,
#drawer-cart .sm-cart-panel[data-sm-cart-step="5"] > .sm-cart-panel__title--center {
  text-align: center !important;
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.sm-cart-panel--upsell .sm-cart-upsell__lead {
  text-align: center;
}

#sm-cart-page .sm-cart-upsell__image-link,
#drawer-cart .sm-cart-upsell__image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 140px;
  max-height: 42vw;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}

.sm-cart-upsell__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #ece6dd;
  background: #fff;
  overflow: hidden;
}

.sm-cart-upsell__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 10px 10px 12px;
  text-align: center;
  gap: 4px;
  background: #fff;
}

@media (min-width: 600px) {
  #sm-cart-page .sm-cart-upsell__image-link,
  #drawer-cart .sm-cart-upsell__image-link {
    height: 160px;
    max-height: 160px;
  }
}

#sm-cart-page .sm-cart-upsell__image,
#drawer-cart .sm-cart-upsell__image,
.sm-cart-upsell__image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
}

.sm-cart-upsell__brand {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111;
}

.sm-cart-upsell__name {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  flex: 1 1 auto;
}

.sm-cart-upsell__name a {
  color: inherit;
  text-decoration: none;
}

.sm-cart-upsell__name a:hover {
  text-decoration: underline;
}

.sm-cart-upsell__price {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.sm-cart-upsell__add {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
}

#drawer-cart .sm-cart-upsell__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#drawer-cart .sm-cart-upsell__lead {
  font-size: 12px;
  text-align: left;
}

.sm-cart-address-door--off {
  display: none !important;
}

html.sm-cart-page-step-4 .sm-cart-panel--step4,
html.sm-cart-page-step-4 .sm-cart-panel--step4 .sm-cart-form,
.sm-cart-panel--step4 .sm-cart-form__extra {
  overflow: visible;
}

.sm-cart-ac {
  position: relative;
}

.sm-cart-ac__list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sm-cart-ac__item {
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.sm-cart-ac__item:hover,
.sm-cart-ac__item:focus {
  background: rgba(0, 0, 0, 0.05);
}

.sm-cart-ac__item--muted {
  color: #666;
  cursor: default;
}

.sm-cart-ac__item--muted:hover {
  background: transparent;
}

.sm-cart-form__hint {
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}

.sm-cart-address-door__nums {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

@media (min-width: 560px) {
  .sm-cart-address-door__nums {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sm-cart-ac--manual .sm-cart-ac__list {
  display: none !important;
}

/* Стъпка 4: офис на картата */
.sm-cart-office__toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.sm-cart-office__search-row .sm-cart-form__field {
  margin-bottom: 0;
  min-width: 0;
}

.sm-cart-office__field-grow {
  min-width: 0;
}

.sm-cart-office__list-row {
  margin-top: 0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(198, 30, 58, 0.28);
  background: #fff5f6;
}

.sm-cart-office__list-row .sm-cart-form__field {
  margin-bottom: 0;
}

.sm-cart-office__list-row .sm-cart-form__label {
  color: #9b1c2c;
  font-weight: 600;
}

.sm-cart-office-map-label {
  position: absolute;
  transform: translate(-50%, -100%);
  margin: 0;
  padding: 4px 9px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #c41e3a;
  color: #9b1c2c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 600;
}

.sm-cart-office-map-label.is-selected {
  background: #c41e3a;
  border-color: #9b1c2c;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(155, 28, 44, 0.45);
}

.sm-cart-office__map-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #f4f4f4;
}

.sm-cart-office__map {
  width: 100%;
  height: min(52vh, 380px);
  min-height: 280px;
}

.sm-cart-office__map-hint[hidden],
.sm-cart-office__map-hint--off {
  display: none !important;
  pointer-events: none;
}

.sm-cart-office__map-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  color: #444;
}

.sm-cart-office__selected {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #eef7f3;
  font-size: 14px;
  line-height: 1.4;
}

.sm-cart-office__selected-text {
  flex: 1 1 200px;
  min-width: 0;
}

.sm-cart-office__clear {
  flex: 0 0 auto;
  font-size: 13px;
  padding: 6px 14px;
  white-space: nowrap;
}

.sm-cart-office__iw {
  max-width: 260px;
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 2px 2px;
}

.sm-cart-office__iw .btn--small {
  margin-top: 8px;
  padding: 6px 12px;
  font-size: 13px;
}

.sm-cart-office__hours {
  color: #555;
  font-size: 12px;
}

/* Офис: панелът със същата max-width като навигацията (.sm-cart-steps: 640px / 720px) */
html.sm-cart-page--checkout .sm-cart-panel--step4.sm-cart-panel--step4-office,
#drawer-cart .sm-cart-panel--step4.sm-cart-panel--step4-office {
  max-width: 640px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  html.sm-cart-page--checkout .sm-cart-panel--step4.sm-cart-panel--step4-office,
  #drawer-cart .sm-cart-panel--step4.sm-cart-panel--step4-office {
    max-width: 720px;
  }
}

.sm-cart-form--office .sm-cart-address-door {
  display: none !important;
}

.sm-cart-panel--step4-office .sm-cart-form__extra:not([data-sm-cart-step4-office]) {
  margin-bottom: 0;
}
