:root {
  --color-gray: #efeff4;
  --bg: #fff;
  --gray: #efeff4;
  --textColor: #000;
  --primary: #0A5B59;
}

@font-face {
  font-family: 'Inter';
  src: url('/css/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Zero Cool';
  src: url('./ZeroCool.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================= BASE ========================= */
* {
  box-sizing: border-box;
}

.cart-page {
  margin: 0;
  font-family: Inter, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--textColor);
}

/* ========================= TEXT SIZES ========================= */
.cart-item__info h3,
.cart-item__info p,
.cart-item__price,
.extra-item span,
.qty-count,
.tab,
.cart-empty,
input,
textarea,
select,
.summary {
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
}

/* ========================= LAYOUT ========================= */
.container {
  --container-padding: 40px;
  max-width: 1360px;
  width: 100%;
  padding: 0 var(--container-padding) 10px;
  margin: 0 auto;
}

/* ========================= CART ITEM ========================= */
.cart-item {
  position: relative;
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: stretch;
}

.cart-item__img {
  flex-shrink: 0;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
  width: 100%;
}

.cart-item__info h3 {
  margin: 0;
}

.cart-item__info p {
  margin: 0;
}

.cart-item__price {
  font-weight: 500;
  white-space: nowrap;
}

/* ========================= RIGHT COLUMN ========================= */
.cart-item__right {
  flex: 0 0 auto;
  min-width: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
}

/* ========================= DELETE BUTTON ========================= */
.cart-remove-btn {
  display: none;
  position: relative;
  width: 28px;
  height: 28px;
  top: -15px;
  right: 8px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 2;
}

/* ========================= COUNTER (+/-) ========================= */
.qty-toggle {
  margin-top: 0;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--color-green);
  border-radius: 999px;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.qty-btn svg {
  width: 10px;
  height: 10px;
}

.qty-count {
  min-width: 18px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* ========================= EXTRAS ========================= */
.extras {
  margin-top: 20px;
}

.extra-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 0;
}

.extra-item span {
  display: flex;
  align-items: center;
}

.extra-icon {
  width: 80px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.extra-icon svg {
  width: 50px;
  height: 50px;
}

/* ========================= DIVIDER ========================= */
.CartItems-module-scss-module__95u-UG__hr {
  height: 2px;
  background: var(--color-gray);
  margin: 20px 0 10px;
  border-radius: 2px;
}

/* ========================= BACK BUTTON ========================= */
.backButton__link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.2;
  color: var(--addGray);
  text-decoration: none;
  user-select: none;
  cursor: pointer;
}

.backButton__link:hover {
  opacity: 0.8;
}

.backButton {
  margin-bottom: 20px;
}

/* ========================= EXTRA TOGGLE ========================= */
.extra-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  transform: translateY(-1px);
}

/* ========================= FORM ========================= */
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  min-width: 0;
}

.row input {
  flex: 1;
  min-width: 0;
  background: var(--color-gray);
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  outline: none;
}

.row input::placeholder {
  color: #2d2d2d;
  opacity: 0.6;
}

.full-input {
  width: 100%;
  background: var(--color-gray);
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  outline: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.full-textarea {
  width: 100%;
  background: var(--color-gray);
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
  outline: none;
  resize: none;
  min-height: 120px;
  margin-bottom: 10px;
}

.full-input::placeholder,
.full-textarea::placeholder {
  color: #2d2d2d;
  opacity: 0.6;
}

.full-input:focus,
.full-textarea:focus {
  background: #e7e7ec;
}

/* ========================= STATES ========================= */
.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

/* ========================= HINT ========================= */
.hint {
  flex: 1;
  font-size: 16px;
  color: #777;
}

/* ========================= SECTION TITLE ========================= */
.section-title {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 48px;
  line-height: 120%;
  margin: 0 0 10px;
  color: #000;
}

/* ========================= NAV TAB ========================= */
.NavTab {
  width: 100%;
  margin-bottom: 10px;
}

.NavTab__container {
  --padding: 5px;
  background: var(--color-gray);
  padding: 5px !important;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  height: 62px !important;
}

.NavTab__tabs {
  display: flex;
  position: relative;
  z-index: 2;
  height: 100%;
}

.NavTab__tab {
display: flex;
align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  position: relative;
  font-size: 20px;
  font-weight: 500;
  color: #888;
  transition: color 0.2s ease;
  user-select: none;
}

.NavTab__tab.active {
  color: #fff !important;
}

.NavTab__overlay {
  position: absolute;
  top: 5px;
  left: 5px;
  height: calc(100% - 10px);
  width: 0;
  background: var(--primary);
  border-radius: 20px;
  transition: transform 0.25s ease, width 0.25s ease;
  z-index: 1;
}

/* ========================= TIME ========================= */
.timeTab .NavTab__container {
  margin-top: 10px;
}

.time-group {
  display: flex;
  gap: 10px;
  width: 100%;
  flex: 0 0 50%;
}

.time-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5px;
  font-size: 20px;
  font-weight: 500;
  flex: 0 0 auto;
}

/* ========================= SELECT (единое правило) ========================= */
.select {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 60px;
  padding: 18px;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  color: #2d2d2d;
}

.select .-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.arrow {
  font-size: 18px;
  transition: .2s;
}

/* ========================= SELECT WRAPPER ========================= */
.select-wrapper {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#date-select-wrapper {
  flex: 0 0 50%;
  min-width: 0;
}

/* ========================= SELECT CONTAINER ========================= */
.SelectTimeDelivery-module__container {
  width: 98%;
  box-sizing: border-box;
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: stretch;
}

.SelectTimeDelivery-module__container > * {
  min-width: 0;
}

/* ========================= OPTIONS DROPDOWN ========================= */
.options {
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  display: none;
  flex-direction: column;
  z-index: 10;
  max-height: 160px;
  overflow: hidden;
  padding: 4px 0;
}

.options.open {
  display: flex;
}

.options::-webkit-scrollbar {
  width: 6px;
}

.options::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
}

.options::-webkit-scrollbar-track {
  background: transparent;
}

.options-inner {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.option {
  padding: 10px 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  cursor: pointer;
}

.option:hover {
  background: #f3f3f3;
}

/* ========================= PAYMENT ========================= */
.paymentTab {
  margin-bottom: 10px;
}

.payment-section {
  width: 100%;
}

.payment-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-stack .row {
  margin: 0;
}

/* ========================= CASH ========================= */
.cash-options {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  background: var(--color-gray);
  padding: 5px;
  border-radius: 25px;
  overflow: hidden;
}

.cash-btn {
  flex: 1;
  height: 56px;
  border: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.02em;
  color: #888;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.cash-btn.active {
  background: var(--primary);
  color: #fff;
}

.cash-btn:hover {
  color: #000;
}

#cash-block {
  margin-bottom: 10px !important;
}

/* ========================= PROMO ========================= */
.promo-wrapper {
  margin-top: 10px !important;
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-wrapper input {
  flex: 0 0 50%;
  background: var(--color-gray);
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-family: Inter, sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: #2d2d2d;
  outline: none;
}

.promo-wrapper input::placeholder {
  color: #2d2d2d;
  opacity: 0.6;
}

#promo-status {
  flex: 1;
  font-size: 19px;
  font-weight: 500;
  color: #888;
}

#promo-status.valid {
  color: #0a5b59;
}

#promo-status.invalid {
  color: #e53535;
}

/* ========================= FINAL ========================= */
.final {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.total-box,
.order-btn {
  height: 60px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px;
}

.total-box {
  background: var(--color-gray);
  padding: 0 16px;
  box-sizing: border-box;
}

.order-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

#total {
  font-weight: 700;
}

/* ========================= CART LAYOUT ========================= */
.cart-container {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.cart-left,
.cart-right {
  flex: 1;
  min-width: 0;
}

.cart-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* ========================= SUPPORT ========================= */
.support {
  position: relative;
  height: 220px;
  margin-top: 25px;
  background: #f3f3f3;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.support-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  max-width: 65%;
  box-sizing: border-box;
}

.support h3 {
  font-family: 'Zero Cool', sans-serif;
  font-size: clamp(16px, 2.8vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0;
}

.support p {
  font-size: 16px;
  line-height: 130%;
  margin: 0;
  color: #333;
}

.support a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
}

.support img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 60%;
  object-fit: cover;
  object-position: left center;
  pointer-events: none;
  z-index: 1;
}

/* ========================= HINT ========================= */
.Hint-module-scss-module__1aQlBq__container {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 10px;
  margin: 20px;
}

.Hint-module-scss-module__1aQlBq__value {
  line-height: 1.3;
  font-size: 20px;
  font-weight: 500;
}

.Hint-module-scss-module__1aQlBq__container svg {
  flex: 0 0 auto;
  margin-top: 2px;
}

/* ========================= CHECKOUT LOCK ========================= */
.checkout-sticky.locked {
  position: relative;
}

.checkout-body {
  position: relative;
}

.checkout-sticky.locked .checkout-body::after {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  z-index: 10;
}

/* ========================= CART EMPTY ========================= */
#cart-empty {
  font-size: 20px;
  font-weight: 500;
  line-height: 120%;
  color: #000;
  margin-top: 10px;
  letter-spacing: -0.01em;
}

/* ========================= ADDRESS POPUP ========================= */
.address-popup {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.popup-content {
  position: relative;
  width: min(520px, 90vw);
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  box-sizing: border-box;
}

.popup-content .order-btn {
  width: 100%;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.popup-close {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
}

.save-address-btn {
  width: 100%;
}

/* ========================= BODY ========================= */
body {
  margin: 0;
  padding-top: 190px;
}

@media (min-width: 901px) {
  .backButton {
    margin-top: 20px;
  }
}

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1050px) {
  body {
    padding-top: 100px;
  }
}

@media (max-width: 900px) {
  .container {
    --container-padding: 16px;
  }

  .cart-container {
    gap: 20px;
  }

  .cart-container {
    flex-direction: column;
  }

  .cart-left,
  .cart-right {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
  }

  .cart-right {
    overflow: visible;
    min-width: 0;
  }

  .cart-item {
    position: relative;
  }

  .cart-remove-btn {
    position: absolute;
    top: 0;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  .NavTab__tab {
    font-size: 16px;
    padding: 14px 0;
  }

  .row input,
  .full-input,
  .full-textarea {
    font-size: 16px;
    padding: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .select {
    height: 47px !important;
    padding: 14px 18px !important;
  }

  .select .-arrow {
    right: 10px;
  }

  .SelectTimeDelivery-module__container {
    width: 100%;
    max-width: 100%;
  }

  .cash-btn {
    font-size: 14px;
    height: 42px;
    border-radius: 12px;
  }

  .support {
    height: 160px;
    margin-top: 10px !important;
    order: 99;
  }

  .support-text {
    max-width: 60%;
    padding: 16px;
    gap: 8px;
  }

  .support h3 {
    font-size: clamp(14px, 4vw, 20px);
  }

  .support p {
    font-size: 14px;
  }

  .support img {
    height: 100%;
    width: 35%;
    object-fit: cover;
    object-position: left center;
  }

  .promo-wrapper {
    order: 98;
  }

  .final {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    z-index: 9999;
  }

  .total-box,
  .order-btn {
    flex: 1 1 50%;
    min-width: 0;
  }

  .total-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    white-space: nowrap;
  }

  .total-box div:first-child {
    display: none;
  }

  #total {
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
  }

  .order-btn {
    height: 48px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    white-space: nowrap;
  }
}

@media (max-width: 900px) {
  .promo-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-wrapper input {
    flex: 0 0 auto;
    width: 100%;
  }

  #promo-status {
    text-align: center;
    font-size: 15px; /* ← добавить */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* ========== КАСТОМНЫЙ ПОПАП ОШИБКИ ========== */
.error-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50vh;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 24px 24px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0, 0.15, 1);
  text-align: center;
  gap: 16px;
}

.error-popup.visible {
  transform: translateY(0);
}

.error-popup__title {
  font-family: 'Zero Cool', sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 48px;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.error-popup__text {
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  margin: 0;
  line-height: 1.5;
}

.error-popup__close {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 12px 36px;
  border-radius: 100px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.error-popup__close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.error-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
}

.error-popup-overlay.visible {
  display: block;
}

@media (max-width: 900px) {
  .error-popup__title {
    font-size: 28px;
  }

  .error-popup__text {
    font-size: 15px;
  }
  * {
  touch-action: manipulation;
}
}

@media (max-width: 900px) {
  footer {
    padding-bottom: 90px;
  }
}  

.order-btn {
  font-family: Inter, sans-serif !important;
}

@media (max-width: 900px) {
  .NavTab__container {
    height: 56px;
  }
}

.NavTab__container {
  height: 62px !important;
}

.NavTab__tabs {
  height: 100%;
}

.NavTab__tab {
  height: 100%;
}

.NavTab__overlay {
  top: 0px;
}

.paymentTab .NavTab__overlay {
  top: 5px !important;

}
@media (max-width: 900px) {
.support img {
  width: 60%;}
}