/* Магазин (3.Ф5–3.Ф10): каталог, товар, корзина, оформление, страница заказа.
   Цвета и шрифты — как у каталога собак (pages/dogs/dogs-page.css). */
:root {
  --sh-bg: #f4eee3;
  --sh-surface: rgba(253, 250, 246, 0.92);
  --sh-border: rgba(146, 120, 71, 0.2);
  --sh-border-hi: rgba(146, 120, 71, 0.38);
  --sh-text: #1f1a14;
  --sh-soft: rgba(31, 26, 20, 0.68);
  --sh-faint: rgba(31, 26, 20, 0.46);
  --sh-accent: #a17a32;
  --sh-accent-dk: #8b6928;
  --sh-accent-pale: rgba(161, 122, 50, 0.1);
  --sh-primary: #2f4a34;
  --sh-primary-dk: #243a28;
  --sh-ok: #3f6b3c;
  --sh-error: #9b3a2f;
  --sh-error-pale: rgba(155, 58, 47, 0.08);
  --sh-warn-pale: rgba(161, 122, 50, 0.12);
  --sh-shadow: 0 10px 30px rgba(32, 24, 15, 0.06);
  --sh-radius: 18px;
  --sh-radius-sm: 12px;
}

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

body {
  margin: 0;
  font-family: "Wix Madefor Text", system-ui, sans-serif;
  color: var(--sh-text);
  background:
    radial-gradient(circle at top left, rgba(161, 122, 50, 0.05), transparent 20%),
    linear-gradient(180deg, #f6f1e8 0%, #f4eee3 38%, #f1e9dc 100%);
  min-height: 100vh;
}

.shop-page { padding: clamp(24px, 4vw, 56px) 0 80px; }
.shop-container { width: min(100% - 32px, 1200px); margin: 0 auto; }
.shop-container--narrow { width: min(100% - 32px, 760px); }

.shop-eyebrow {
  margin: 0 0 8px;
  font: 600 12px/1.6 "Comfortaa", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sh-accent);
}
.shop-title {
  margin: 0 0 10px;
  font-family: "Philosopher", serif;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.05;
}
.shop-slogan {
  margin: 0 0 10px;
  max-width: 640px;
  font-family: "Philosopher", serif;
  font-size: clamp(19px, 2.4vw, 24px);
  font-style: italic;
  line-height: 1.3;
  color: var(--sh-accent);
}
.shop-lead { margin: 0; max-width: 640px; color: var(--sh-soft); line-height: 1.6; }
.shop-h2 { margin: 0 0 14px; font-family: "Philosopher", serif; font-size: 24px; }

/* Индивидуальное изготовление: портрет и облачко с примерами пожеланий. */
.made-to-order {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 24px;
  margin: 28px 0;
  padding: 32px 36px 22px;
  border: 1px solid var(--sh-border);
  border-radius: 28px;
  background: radial-gradient(ellipse at 90% 85%, #dce4d5 0%, transparent 52%), #faf8f1;
  overflow: hidden;
}
.made-to-order__copy { align-self: center; padding-bottom: 12px; }
.made-to-order__copy h2 { margin: 10px 0 18px; color: var(--sh-primary); font: 400 clamp(32px, 4vw, 46px)/1.06 "Philosopher", serif; }
.made-to-order__copy > p:not(.shop-eyebrow) { max-width: 560px; margin: 0; font-size: 16px; line-height: 1.65; }
.made-to-order__details { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0; }
.made-to-order__details li { padding: 7px 13px; border: 1px solid #cbd5c4; border-radius: 999px; color: var(--sh-primary); font-size: 13px; }
.made-to-order__copy > p.made-to-order__hint { color: var(--sh-soft); font-size: 14px; }
.made-to-order__scene { position: relative; min-height: 360px; }
.made-to-order__poodle { position: absolute; right: 12px; bottom: 28px; width: 240px; height: 270px; object-fit: cover; object-position: 50% 40%; border-radius: 48% 48% 42% 42%; border: 6px solid #fdfbf5; box-shadow: 0 12px 30px #3647301a; }
.order-thought { position: absolute; z-index: 1; top: 0; left: 0; width: 260px; min-height: 142px; padding: 21px 20px 18px; text-align: center; border-radius: 48% 44% 46% 40% / 40% 45% 42% 46%; background: #fffef9; box-shadow: 0 4px 24px #3647300c; }
.order-thought::before, .order-thought::after { content: ""; position: absolute; border-radius: 50%; background: #fffef9; }
.order-thought::before { width: 23px; height: 18px; bottom: -23px; left: 44%; transform: rotate(-24deg); }
.order-thought::after { width: 11px; height: 10px; bottom: -42px; left: 52%; }
.order-thought__eyebrow { display: block; font-size: 10px; color: var(--sh-soft); }
.order-thought__text { display: block; min-height: 54px; margin-top: 7px; color: var(--sh-primary); font: 400 23px/1.15 "Philosopher", serif; text-wrap: balance; }
.order-thought__detail { display: block; min-height: 30px; margin-top: 4px; color: var(--sh-soft); font-size: 11px; line-height: 1.4; }
.order-thought__text, .order-thought__detail, .order-thought__swatches { transition: opacity 180ms ease; }
.order-thought.is-changing > :not(.order-thought__eyebrow) { opacity: 0; }
.order-thought__swatches { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.order-thought__swatches i { width: 13px; height: 13px; border-radius: 50%; background: #a4b7a0; border: 1px solid #0000000e; }
.order-thought__swatches i:nth-child(2) { background: #dfcfb4; }
.order-thought__swatches i:nth-child(3) { background: #c5a6a0; }
.order-thought[data-thought-tone="caramel"] .order-thought__swatches i:first-child { background: #ad794f; }
.order-thought[data-thought-tone="size"] .order-thought__swatches i { border-radius: 3px; }
.order-thought[data-thought-tone="size"] .order-thought__swatches i:nth-child(2) { width: 19px; }
.order-thought[data-thought-tone="size"] .order-thought__swatches i:nth-child(3) { width: 25px; }
.made-to-order__pause { position: absolute; bottom: -4px; right: 42px; min-height: 32px; padding: 5px 8px; border: 0; background: transparent; color: var(--sh-primary); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.made-to-order__pause:hover { color: var(--sh-text); }
.made-to-order__pause:focus-visible { outline: 2px solid var(--sh-primary); outline-offset: 2px; border-radius: 4px; }
.shop-card__custom { margin: 7px 0 0; color: var(--sh-primary); font-size: 12px; line-height: 1.4; }
.product-custom { margin: 20px 0; padding: 18px 20px; border-left: 3px solid #8d9d7f; border-radius: 0 12px 12px 0; background: #e7ecdf; }
.product-custom p { margin: 0; font-size: 14px; line-height: 1.6; }
.product-custom .product-custom__title { margin-bottom: 8px; font: 400 23px/1.2 "Philosopher", serif; color: var(--sh-primary); }
.product-custom .product-custom__hint { margin-top: 8px; font-size: 13px; color: var(--sh-soft); }
.field--wishes { margin-top: 24px; padding: 20px; background: #eef0e7; border: 1px solid #d6ddcb; border-radius: var(--sh-radius-sm); }
.field.field--wishes textarea { min-height: 174px; line-height: 1.6; resize: vertical; }
.field__wishes-footer { display: flex; align-items: baseline; gap: 16px; }
.field__wishes-footer .field__hint { flex: 1; }
.field__counter { flex: none; margin: 8px 0 0; color: var(--sh-soft); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 850px) {
  .made-to-order { grid-template-columns: minmax(0, 1fr) 300px; padding: 26px 24px 22px; gap: 12px; }
  .made-to-order__poodle { right: 0; width: 220px; }
  .order-thought { width: 230px; left: -8px; }
}
@media (max-width: 600px) {
  .made-to-order { grid-template-columns: 1fr; gap: 12px; padding: 24px 20px 20px; border-radius: 22px; }
  .made-to-order__copy h2 { font-size: 36px; }
  .made-to-order__scene { width: min(100%, 340px); min-height: 350px; margin: 0 auto; }
  .made-to-order__poodle { width: 210px; height: 245px; bottom: 28px; }
  .order-thought { width: 220px; left: -4px; padding: 18px 18px 14px; }
  .order-thought__text { font-size: 22px; }
  .made-to-order__pause { right: 24px; }
  .field--wishes { padding: 15px; }
  .field__wishes-footer { display: block; }
  .field__counter { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .order-thought__text, .order-thought__detail, .order-thought__swatches { transition: none; }
}

.shop-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.shop-cat {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sh-border);
  border-radius: 999px;
  background: var(--sh-surface);
  color: var(--sh-soft);
  font-weight: 600;
  text-decoration: none;
}
.shop-cat:hover { border-color: var(--sh-accent); color: var(--sh-text); }
.shop-cat[aria-current="page"] { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }

.shop-preview-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: var(--sh-radius-sm);
  background: var(--sh-warn-pale);
  color: var(--sh-accent-dk);
}
.shop-preview-note[hidden] { display: none; }
.shop-loading { color: var(--sh-soft); }

/* ── Кнопки ── */
.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sh-border-hi);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--sh-text);
  font: 600 15px/1.2 "Wix Madefor Text", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.shop-btn:hover:not(:disabled) { border-color: var(--sh-accent); }
.shop-btn--primary { background: var(--sh-primary); border-color: var(--sh-primary); color: #fff; }
.shop-btn--primary:hover:not(:disabled) { background: var(--sh-primary-dk); border-color: var(--sh-primary-dk); }
.shop-btn--incart { border-color: var(--sh-primary); color: var(--sh-primary); }
.shop-btn--soon { border-style: dashed; color: var(--sh-soft); cursor: default; }
.shop-btn--wide { width: 100%; }
.shop-btn--big { min-height: 52px; font-size: 16px; }
.shop-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.shop-btn:focus-visible, .shop-cat:focus-visible, .shop-card a:focus-visible, .qty__btn:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: 2px;
}
.shop-link { color: var(--sh-primary); font-weight: 600; text-underline-offset: 3px; }
.shop-linkbtn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--sh-primary);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: 44px;
}

/* ── Сетка каталога ── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
  box-shadow: var(--sh-shadow);
}
.shop-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--sh-accent-pale); }
.shop-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card.is-out .shop-card__media img { filter: grayscale(0.6); opacity: 0.75; }
.shop-card__badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(31, 26, 20, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.shop-card__body { flex: 1; padding: 14px 16px 6px; }
.shop-card__title { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.shop-card__title a { color: inherit; text-decoration: none; }
.shop-card__title a:hover { text-decoration: underline; }
.shop-card__price { margin: 0; font-size: 18px; font-weight: 700; }
.shop-card__buy { padding: 10px 16px 16px; }
.shop-card__buy .shop-btn { width: 100%; }

.shop-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed var(--sh-border-hi);
  border-radius: var(--sh-radius);
  text-align: center;
  color: var(--sh-soft);
}
.shop-empty__title { margin: 0 0 14px; font-family: "Philosopher", serif; font-size: 26px; color: var(--sh-text); }

/* ── Страница товара ── */
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--sh-soft); }
.shop-crumbs a { color: var(--sh-soft); }
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.product[hidden] { display: none; }
.product__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--sh-radius);
  overflow: hidden;
  background: var(--sh-accent-pale);
}
.product__media > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__title { margin: 0 0 14px; font-family: "Philosopher", serif; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; overflow-wrap: anywhere; }
.product__price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.product__price { margin: 0; font-size: 30px; font-weight: 700; }
.shop-stock { padding: 4px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.shop-stock.is-in { background: rgba(63, 107, 60, 0.12); color: var(--sh-ok); }
.shop-stock.is-out { background: rgba(31, 26, 20, 0.08); color: var(--sh-soft); }
.product__desc { margin: 0 0 22px; white-space: pre-line; line-height: 1.65; color: var(--sh-soft); }
.product__buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.product__buy .shop-btn--primary { flex: 1 1 180px; min-height: 52px; }
.product__in-cart { margin: 12px 0 0; color: var(--sh-ok); font-weight: 600; }
.product__in-cart[hidden] { display: none; }
.product__delivery {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: var(--sh-radius-sm);
  background: var(--sh-accent-pale);
  font-size: 14px;
  line-height: 1.55;
  color: var(--sh-soft);
}

/* ── Количество ── */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--sh-border-hi); border-radius: 999px; background: #fffdf9; }
.qty__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 20px;
  color: var(--sh-text);
  cursor: pointer;
}
.qty__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.qty__input {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font: 600 16px/1 "Wix Madefor Text", system-ui, sans-serif;
  text-align: center;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── Уведомление ── */
/* сверху, под шапкой: внизу экрана его закрыл бы баннер согласия на счётчик */
.shop-toast {
  position: fixed;
  left: 50%;
  top: 76px;
  z-index: 950;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  background: #1f1a14;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 220ms ease, opacity 220ms ease, visibility 220ms;
}
.shop-toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.shop-toast__link { color: #e8cc7e; font-weight: 600; margin-left: 6px; white-space: nowrap; }

@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .shop-card__body { padding: 10px 10px 4px; }
  .shop-card__title { font-size: 14px; }
  .shop-card__price { font-size: 16px; }
  .shop-card__buy { padding: 8px 10px 10px; }
  .shop-card__buy .shop-btn { padding: 0 8px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-toast, .shop-btn { transition: none; }
}

/* ── Корзина (3.Ф6) ── */
.cart-note, .cart-banner {
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: var(--sh-radius-sm);
  background: var(--sh-warn-pale);
  color: var(--sh-accent-dk);
  line-height: 1.5;
}
.cart-note[hidden] { display: none; }
.cart-banner--error { background: var(--sh-error-pale); color: var(--sh-error); }
.cart-banner--warn { background: var(--sh-warn-pale); color: var(--sh-accent-dk); }
.cart-lines { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.cart-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto 44px;
  grid-template-areas: "img info qty sum rm";
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}
.cart-line.is-off { opacity: 0.7; }
.cart-line.is-off .cart-line__title { text-decoration: line-through; }
.cart-line__img { grid-area: img; width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--sh-accent-pale); }
.cart-line__info { grid-area: info; min-width: 0; }
.cart-line__title { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.cart-line__title a { color: inherit; }
.cart-line__unit { margin: 0; font-size: 14px; color: var(--sh-soft); }
.cart-line__status { margin: 0; font-size: 14px; color: var(--sh-error); font-weight: 600; }
.cart-line__qty { grid-area: qty; }
.cart-line__qty .qty__input { display: inline-grid; place-items: center; }
.cart-line__sum { grid-area: sum; font-weight: 700; white-space: nowrap; text-align: right; min-width: 80px; }
.cart-line__remove {
  grid-area: rm;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--sh-soft);
  font-size: 24px;
  cursor: pointer;
}
.cart-line__remove:hover { background: var(--sh-error-pale); color: var(--sh-error); }
.cart-summary {
  padding: 18px;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}
.cart-summary__row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.cart-summary__row--soft { color: var(--sh-soft); }
.cart-summary__row--total { margin: 12px 0 16px; padding-top: 12px; border-top: 1px solid var(--sh-border); font-size: 20px; font-weight: 700; }
.cart-summary__hint { margin: 10px 0 0; font-size: 13px; color: var(--sh-soft); text-align: center; }

/* ── Оформление ── */
.checkout { display: grid; gap: 18px; }
.checkout[hidden] { display: none; }
.checkout__section {
  padding: 20px;
  border: 1px solid var(--sh-border);
  border-radius: var(--sh-radius);
  background: var(--sh-surface);
}
.checkout__step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--sh-primary);
  color: #fff;
  font: 700 15px/1 "Wix Madefor Text", system-ui, sans-serif;
  vertical-align: 3px;
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-weight: 600; }
.field__opt { font-weight: 400; color: var(--sh-soft); }
.field input[type=text], .field input[type=tel], .field input[type=email], .field input[type=search], .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--sh-border-hi);
  border-radius: var(--sh-radius-sm);
  background: #fff;
  font: 16px/1.4 "Wix Madefor Text", system-ui, sans-serif;
  color: var(--sh-text);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--sh-accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--sh-error); background: #fffafa; }
.field__hint { margin: 0; font-size: 13px; color: var(--sh-soft); }
.field__error { margin: 0; font-size: 14px; color: var(--sh-error); font-weight: 600; }
.field__error[hidden] { display: none; }
.field__error::before { content: "\26A0\00a0"; }
.field--check { grid-template-columns: 28px 1fr; align-items: start; column-gap: 10px; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--sh-primary); }
.field--check label { font-weight: 400; line-height: 1.5; min-height: 44px; }
.field--check .field__error { grid-column: 1 / -1; }
.checkout__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkout__items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--sh-border); }
.checkout__items li { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--sh-soft); }
.checkout__email-check {
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 2px solid var(--sh-accent);
  border-radius: var(--sh-radius-sm);
  font-size: 18px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.checkout__email-check[hidden] { display: none; }
.checkout__legal { margin: 12px 0 0; font-size: 13px; color: var(--sh-soft); line-height: 1.5; }
.checkout__next { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sh-border); }
.checkout__next h3 { margin: 0 0 8px; font-size: 16px; }
.checkout__next ol { margin: 0; padding-left: 20px; color: var(--sh-soft); line-height: 1.6; }

/* ── Выбор получения (3.Ф7) ── */
.dp-city { position: relative; }
.dp-cities {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 4px 0 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--sh-border-hi);
  border-radius: var(--sh-radius-sm);
  background: #fff;
  box-shadow: 0 16px 40px rgba(32, 24, 15, 0.14);
}
.dp-cities[hidden] { display: none; }
.dp-cities li { padding: 12px; min-height: 44px; border-radius: 8px; cursor: pointer; }
.dp-cities li span { color: var(--sh-soft); font-size: 14px; }
.dp-cities li.is-active, .dp-cities li:hover { background: var(--sh-accent-pale); }
.dp-cities__empty { color: var(--sh-soft); cursor: default; }
.dp-options { display: grid; gap: 8px; margin-bottom: 8px; }
.dp-hint { margin: 0 0 4px; color: var(--sh-soft); }
.dp-option, .dp-point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  padding: 14px;
  min-height: 44px;
  border: 1.5px solid var(--sh-border);
  border-radius: var(--sh-radius-sm);
  background: #fff;
  cursor: pointer;
}
.dp-option.is-checked, .dp-point.is-checked { border-color: var(--sh-primary); background: rgba(47, 74, 52, 0.05); }
.dp-option input, .dp-point input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sh-primary); }
.dp-option__title { display: block; font-weight: 700; }
.dp-option__meta, .dp-point__meta { display: block; font-size: 14px; color: var(--sh-soft); }
.dp-point__addr { display: block; font-weight: 600; }
.dp-point__price { display: block; margin-top: 4px; color: var(--sh-ok); font-weight: 700; }
.dp-down { margin: 4px 0 8px; padding: 10px 14px; border-radius: var(--sh-radius-sm); background: var(--sh-warn-pale); color: var(--sh-accent-dk); }
.dp-down[hidden], .dp-points[hidden] { display: none; }
.dp-points { margin-top: 14px; }
.dp-points__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.dp-points__set legend { margin-bottom: 8px; font-weight: 700; }
.dp-points__list { display: grid; gap: 8px; max-height: 520px; overflow-y: auto; }
.dp-points__search {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--sh-border-hi);
  border-radius: var(--sh-radius-sm);
  font: inherit;
}
.dp-map { height: 320px; margin-bottom: 12px; border-radius: var(--sh-radius-sm); overflow: hidden; background: var(--sh-accent-pale); }
.dp-map[hidden] { display: none; }
.dp [data-method-error] { margin-top: 8px; }

@media (max-width: 560px) {
  .cart-line {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    grid-template-areas: "img info rm" "qty qty sum";
  }
  .cart-line__qty { justify-self: start; }
  .cart-line__img { width: 56px; height: 56px; }
  .checkout__section { padding: 16px; }
  .dp-map { height: 240px; }
}
.dp-map:not([hidden]) { min-height: 320px; width: 100%; margin-bottom: 16px; }
