/* Корзина 2026 — изолированные стили, префикс crt- (всё под .crt-root).
   Токены/ресет/шрифт заданы на .crt-root, не глобально. */

.crt-root {
  --crt-accent: #FE5D26;
  --crt-accent-hover: #D95427;
  --crt-black: #312D2B;
  --crt-bg: #F6F6F6;

  flex-grow: 1;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #000;
  background-color: var(--crt-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.crt-root *,
.crt-root *::before,
.crt-root *::after {
  box-sizing: border-box;
}

.crt-root :where(h1, h2, h3, p) { margin: 0; }

/* Скоуп через :where() — нулевая специфичность, чтобы классы вроде
   .crt-item-img перебивали этот ресет. */
:where(.crt-root) img {
  max-width: 100%;
  height: auto;
  display: block;
}

.crt-root button { font-family: inherit; }

.crt-root [hidden] { display: none !important; }

/* Прод style.css на мобиле вешает глобальный section{margin-bottom:60px}. */
.crt-root section { margin-bottom: 0; }

.crt-container {
  max-width: 1327px;
  margin: 0 auto;
  padding: 0 15px;
}

.crt-cart {
  padding: 24px 0 80px;
}

.crt-cart svg { display: block; }
.crt-cart span { display: block; }

/* ===== Top ===== */
.crt-top {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.crt-top-title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.crt-title {
  font-size: 32px;
  font-weight: 500;
}

.crt-count {
  border-radius: 999px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--crt-accent);
  font-size: 12px;
  font-weight: 500;
  background-color: rgba(254, 93, 38, 0.2);
}

.crt-copy-btn,
.crt-remove-all {
  display: flex;
  gap: 8px;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  position: relative;
}

.crt-copy-btn span,
.crt-remove-all span {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.40);
  line-height: 24px;
  font-weight: 400;
}

.crt-copy-btn:hover span,
.crt-remove-all:hover span { color: #000; }

.crt-copy-btn:hover svg path,
.crt-remove-all:hover svg path {
  stroke: #000;
  stroke-opacity: 1;
}

.crt-top .crt-copy-btn {
  margin-left: 32px;
  margin-right: auto;
}

.crt-copy-info {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
  white-space: nowrap;
  text-align: left;
  z-index: 5;
}

.crt-copy-btn .crt-copy-info-title {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  line-height: 20px;
}

.crt-copy-btn .crt-copy-info-text {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.40);
  line-height: 16px;
}

/* ===== Inner Grid ===== */
/* minmax(0,1fr), а не 1fr: иначе минимальная ширина колонки считается по
   содержимому и лента допов (5 карточек ≈ 1180px) раздувает её вместо скролла. */
.crt-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 24px;
}

/* ===== Cart Items ===== */
.crt-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.crt-item-wrapper {
  min-width: 0;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background-color: #fff;
}

.crt-item-row + .crt-item-row .crt-item,
.crt-item-row + .crt-item-row .crt-item-mobile {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* ===== Cart Item (Desktop) ===== */
.crt-item {
  padding: 8px 8px;
  background: #FFF;
  display: flex;
  align-items: center;
  gap: 16px;
}

.crt-item-img {
  max-width: 96px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  object-fit: contain;
  background: #0000000d;
}

.crt-item-textbox {
  flex: 1;
  min-width: 0;
  margin-right: auto;
}

.crt-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 8px;
}

.crt-item-title a {
  color: inherit;
  text-decoration: none;
}

.crt-item-title a:hover { color: var(--crt-accent); }

.crt-item-controls-box {
  width: 160px;
  flex-shrink: 0;
}

.crt-item-price {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: right;
  white-space: nowrap;
}

.crt-item-counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.crt-item-per-unit {
  font-size: 11px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.35);
  text-align: center;
  margin-top: 0;
  white-space: nowrap;
}

.crt-item-controls {
  display: flex;
  gap: 12px;
}

.crt-item-btn-remove {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.crt-item-btn-remove:hover svg path { stroke-opacity: 1; }

.crt-item-counter {
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.crt-item-counter button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s;
}

.crt-item-counter button:hover { background: rgba(0, 0, 0, 0.08); }
.crt-item-counter button:hover svg path { stroke-opacity: 1; }

.crt-item-count {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  width: 28px;
  text-align: center;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  color: inherit;
  outline: none;
  -moz-appearance: textfield;
}

.crt-item-count::-webkit-outer-spin-button,
.crt-item-count::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== Btn Dop (Additions toggle) ===== */
.crt-item-btn-dop {
  display: flex;
  align-items: center;
  margin-top: 8px;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.crt-item-btn-dop span {
  color: var(--crt-accent);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.crt-item-btn-dop-show svg { transform: rotate(180deg); }

/* ===== Form Wrapper ===== */
.crt-form-wrapper {
  padding-top: 0;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 115px;
  align-self: flex-start;
}

/* ===== Box ===== */
.crt-box {
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  background: #FFF;
  box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.06);
}

/* ===== Form ===== */
.crt-form-title {
  margin-bottom: 32px;
  font-size: 24px;
  color: #000;
  font-weight: 500;
  line-height: 32px;
}

.crt-tabs {
  display: flex;
  padding: 2px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.04);
  gap: 2px;
}

.crt-tab-btn {
  width: 50%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.40);
  cursor: pointer;
}

.crt-tab-btn-active {
  color: #000;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #FFF;
  box-shadow: 0 -1px 1px 0 rgba(0, 0, 0, 0.06) inset, 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.crt-form-row {
  margin-bottom: 0;
}

.crt-form-row > span {
  font-size: 14px;
  margin-bottom: 8px;
  color: #000;
  font-weight: 500;
}

.crt-row-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
}

.crt-row-inputs input {
  padding: 10px;
  font-size: 14px;
  color: #000;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #FFF;
  width: 100%;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.crt-row-inputs input:focus {
  border-color: var(--crt-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
}

.crt-form-row-text {
  display: flex;
  gap: 4px;
}

.crt-form-row-text span {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.40);
}

.crt-input-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

.crt-input-box > span { margin-bottom: 8px; }

.crt-input-box input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #FFF;
  width: 100%;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.crt-input-box input:focus {
  border-color: var(--crt-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
}

.crt-input-box textarea {
  padding: 12px 14px;
  height: 80px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(49, 45, 43, 0.10);
  background: #FFF;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: none;
  overflow: hidden;
  font-family: inherit;
}

.crt-input-box textarea:focus {
  border-color: var(--crt-accent);
  box-shadow: 0 0 0 2px rgba(254, 93, 38, 0.16);
  outline-color: var(--crt-accent);
}

.crt-cart input:focus { outline-color: var(--crt-accent); }

.crt-surname-box { display: none; }

/* ===== Ошибки полей ===== */
.crt-field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.crt-field-error span {
  font-size: 12px;
  line-height: 16px;
  color: var(--crt-accent);
}

.crt-input-error input,
.crt-input-error textarea { border-color: var(--crt-accent); }

/* ===== Самовывоз ===== */
.crt-pickup-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crt-address-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.crt-label-text {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 4px;
}

.crt-row-text {
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.50);
}

.crt-pickup-map {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.crt-pickup-map span {
  font-size: 14px;
  color: var(--crt-black);
  border-bottom: 1px dashed rgba(49, 45, 43, 0.4);
}

/* ===== Comment Button ===== */
.crt-add-comment-btn {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  cursor: pointer;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}

.crt-add-comment-btn svg { transition: transform 0.2s; }
.crt-add-comment-btn-open svg { transform: rotate(45deg); }

.crt-add-comment-btn span {
  font-size: 14px;
  color: rgba(49, 45, 43, 0.50);
  font-weight: 500;
  transition: .25s;
}

.crt-add-comment-btn svg path {
  stroke: rgba(49, 45, 43, 0.50);
  transition: .25s;
}

.crt-add-comment-btn:hover span { color: #000; }
.crt-add-comment-btn:hover svg path { stroke: #000; }

/* ===== Price Box ===== */
.crt-form-price-box {
  margin-top: 24px;
}

.crt-price-title {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: rgba(49, 45, 43, 0.50);
}

.crt-price-box-prices {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.crt-price-box-prices span {
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  color: var(--crt-black);
}

/* ===== Submit Button ===== */
.crt-form-btn-submit {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background-color: var(--crt-accent);
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 0;
  border: 2px solid var(--crt-accent);
  cursor: pointer;
  transition: .25s;
}

.crt-form-btn-submit span {
  color: #fff;
  font-size: 16px;
}

.crt-form-btn-submit svg path,
.crt-form-btn-submit span { transition: .25s; }

.crt-form-btn-submit:hover { background-color: var(--crt-accent-hover); }
.crt-form-btn-submit:hover span { color: #fff; }
.crt-form-btn-submit:hover svg path { stroke: #fff; }

.crt-form-btn-submit-done {
  background-color: rgba(0, 0, 0, 0.08) !important;
  border-color: transparent !important;
  cursor: default;
  pointer-events: none;
}

.crt-form-btn-submit-done span { color: rgba(0, 0, 0, 0.4) !important; }

/* ===== Contacts accordion ===== */
.crt-accordion {
  overflow: hidden;
}

.crt-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--crt-black);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.crt-accordion-toggle:hover,
.crt-accordion-toggle:hover .crt-accordion-chevron { color: var(--crt-accent); }

.crt-accordion-chevron {
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
  color: rgba(0, 0, 0, 0.3);
}

.crt-accordion-chevron-open { transform: rotate(180deg); }

.crt-accordion-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
  padding-top: 20px;
  margin-top: 20px;
}

/* ===== Warning box ===== */
.crt-warning-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: #FFEAE2;
  border: 1px solid #FFDFD3;
}

.crt-warning-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crt-warning-icon {
  color: var(--crt-accent);
  flex-shrink: 0;
}

.crt-warning-icon svg {
  width: 20px;
  height: 20px;
}

.crt-warning-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: var(--crt-black);
}

.crt-warning-text {
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.5);
}

/* ===== Mobile Cart Item ===== */
.crt-item-mobile {
  display: none;
}

.crt-item-mobile-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.crt-item-mobile img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  overflow: hidden;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.crt-item-mobile-title {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  line-height: 20px;
  margin-bottom: 4px;
}

.crt-item-mobile-title a {
  color: inherit;
  text-decoration: none;
}

.crt-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.40);
}

.crt-meta-bullet { color: rgba(0, 0, 0, 0.20); }

.crt-purchase-badge {
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: rgba(34, 163, 89, 0.12);
  color: #1A8A4A;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.crt-rent-badge {
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  background-color: rgba(254, 93, 38, 0.12);
  color: var(--crt-accent);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.crt-item-mobile-price {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--crt-black);
}

.crt-item-mobile-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crt-item-mobile-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crt-item-mobile-counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 96px;
  gap: 2px;
}

.crt-item-mobile-row .crt-item-mobile-price {
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
}

.crt-item-mobile-btn-more {
  display: flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.crt-item-mobile-btn-more span {
  font-size: 12px;
  color: var(--crt-accent);
  font-weight: 500;
}

/* ===== Pending Remove (undo deletion) ===== */
.crt-pending-faded {
  opacity: 0.35;
  pointer-events: none;
}

.crt-pending-hidden {
  visibility: hidden;
}

.crt-restore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  width: 100%;
  padding: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #000;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  white-space: nowrap;
}

.crt-restore-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: rgba(254, 93, 38, 0.15);
  border-radius: 999px 0 0 999px;
  animation: crtRestoreFill 5s linear forwards;
}

.crt-restore-btn span {
  position: relative;
  z-index: 1;
}

@keyframes crtRestoreFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== Addons Section (accordion dropdown) ===== */
.crt-addons-section {
  padding: 0 16px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.crt-addons-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 0 4px;
  scrollbar-width: none;
  cursor: grab;
}

.crt-addons-scroll:active { cursor: grabbing; }
.crt-addons-scroll::-webkit-scrollbar { display: none; }

.crt-addons-scrollbar {
  margin: 10px 0 4px;
  height: 3px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}

.crt-addons-scrollbar-thumb {
  position: absolute;
  top: 0;
  height: 100%;
  background: #fdb79f94;
  border-radius: 2px;
  transition: left 0.1s;
  cursor: grab;
}

.crt-addons-scrollbar-thumb:active {
  cursor: grabbing;
  transition: none;
}

/* ===== Addon Card (horizontal) ===== */
.crt-addon-card {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: #F6F6F6;
  border-radius: 12px;
  padding: 8px;
}

.crt-addon-card img {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #0000000d;
}

.crt-addon-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crt-addon-card-title {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--crt-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crt-addon-card-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.crt-addon-card-price {
  font-size: 12px;
  line-height: 16px;
  color: rgba(49, 45, 43, 0.50);
}

.crt-addon-plus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--crt-accent);
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--crt-accent);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.crt-addon-plus-btn svg { display: block; }

.crt-addon-plus-btn:hover {
  background: var(--crt-accent);
  color: #fff;
}

/* ===== Added Addons List ===== */
.crt-added-addons {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 0 8px 0 57px;
}

.crt-added-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.crt-added-addon-row:last-child { border-bottom: none; }

.crt-added-addon-row img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #0000000d;
  flex-shrink: 0;
}

.crt-added-addon-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--crt-black);
  flex-grow: 1;
  min-width: 0;
  padding-left: 3px;
}

.crt-added-addon-price {
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--crt-black);
  white-space: nowrap;
}

.crt-added-addon-price-mobile { display: none; }

.crt-added-addon-controls {
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.crt-added-addon-counter-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.crt-added-addon-row .crt-item-counter { flex-shrink: 0; }
.crt-added-addon-row .crt-item-btn-remove { flex-shrink: 0; }

/* ===== Пустая корзина / заявка отправлена ===== */
.crt-state {
  max-width: 1327px;
  margin: 0 auto;
  padding: 60px 15px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.crt-state svg { margin-bottom: 24px; }

.crt-state-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 36px;
  margin-bottom: 12px;
}

.crt-state-text {
  font-size: 16px;
  line-height: 24px;
  color: rgba(0, 0, 0, 0.50);
  max-width: 480px;
  margin-bottom: 24px;
}

.crt-state-text a { color: var(--crt-accent); }

.crt-state-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--crt-accent);
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  transition: .25s;
}

.crt-state-link:hover { background: var(--crt-accent-hover); }

/* ===== Карта самовывоза ===== */
.crt-map-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.crt-map-popup-active { display: block; }

.crt-map-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.crt-map-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 92vw);
  height: min(600px, 80vh);
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.crt-map-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.crt-map {
  width: 100%;
  height: 100%;
}

/* ===== Responsive: 1024px ===== */
@media (max-width: 1024px) {
  .crt-inner {
    display: flex;
    flex-direction: column;
  }

  .crt-item { display: none; }

  .crt-item-mobile {
    display: flex;
    flex-direction: column;
    padding: 8px 16px 8px 8px;
    background-color: #fff;
  }

  .crt-item-mobile .crt-item-counter,
  .crt-added-addon-row .crt-item-counter {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    flex-grow: 0;
    flex-shrink: 0;
    height: 32px;
  }

  .crt-item-mobile .crt-item-counter button,
  .crt-added-addon-row .crt-item-counter button {
    width: 32px;
    height: 32px;
  }

  .crt-top { margin-bottom: 16px; }

  .crt-copy-btn span,
  .crt-remove-all span { font-size: 13px; }

  .crt-restore-btn {
    height: 32px;
    font-size: 12px;
  }

  .crt-title { font-size: 22px; }

  .crt-box { padding: 24px; }

  .crt-form-title {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .crt-input-boxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
  }

  .crt-row-inputs input { box-shadow: none; }
  .crt-input-box input { box-shadow: none; }
  .crt-form-row { margin-bottom: 0; }
  .crt-form-row-text span { margin-bottom: 0; }
  .crt-form-btn-submit { margin-bottom: 0; }

  .crt-form-wrapper {
    padding-top: 0;
    position: static;
    align-self: stretch;
    max-width: none;
  }

  .crt-addons-section { padding: 0 12px 12px; }

  .crt-addon-card {
    min-width: 120px;
    max-width: 170px;
  }

  .crt-addon-card img {
    width: 40px;
    height: 40px;
  }

  .crt-added-addons {
    padding-left: 8px;
    padding-right: 16px;
  }

  .crt-added-addon-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .crt-added-addon-price-desktop { display: none; }

  .crt-added-addon-price-mobile {
    display: block;
    margin-left: auto;
    white-space: nowrap;
  }

  .crt-added-addon-controls {
    width: 100%;
    gap: 12px;
  }

  .crt-added-addon-counter-wrap { flex: 0 0 96px; }

  .crt-added-addon-title { width: calc(100% - 68px); }
}

/* ===== Responsive: 768px ===== */
@media (max-width: 768px) {
  .crt-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .crt-top-title { grid-column-start: span 2; }

  .crt-top .crt-copy-btn { margin-left: 0; }

  .crt-remove-all { justify-content: end; }

  .crt-hint { font-size: 13px; }

  .crt-row-inputs { gap: 8px; }

  .crt-state-title { font-size: 22px; }
}

/* Поля 16px, иначе iOS зумит страницу при фокусе. */
@media (max-width: 768px) {
  .crt-row-inputs input,
  .crt-input-box input,
  .crt-input-box textarea { font-size: 16px; }
}
