/* Варіанти 1–4: вхід лише телефон / Google, окрема сторінка входу, заглушка */

/* ---------- Блок входу: телефон першим, Google одним рядком ---------- */
.av-soc { grid-template-columns: 1fr; }
.av-soc .soc-provider { font-weight: 600; }

/* Попап (варіант 2) і окрема сторінка (варіант 3) – усе в одну колонку */
.av-card--stack .av-card__body { flex-direction: column; align-items: stretch; gap: 16px; }
.av-card--stack .av-or { flex-direction: row; gap: 12px; }
.av-card--stack .av-or::before, .av-card--stack .av-or::after { width: auto; height: 1px; flex: 1; }
.av-card--stack .av-soc, .av-card--stack .av-phone { flex: none; }

/* Варіант 2: блок входу всередині попапу на головній */
.gate__modal { width: 440px; max-width: 100%; }
.gate__modal .av-card { border: 0; border-radius: inherit; padding: 24px; }
.gate__modal .av-card__title { padding-right: 40px; font-size: 20px; line-height: 26px; }

/* ---------- Варіант 3: хедер сайту eva.ua ---------- */
.site-header { display: none; }
body.is-site .header { display: none; }
body.is-site .site-header { display: block; border-bottom: 1px solid var(--border-default, #e5e5e5); background: #fff; }
.site-header__top { display: flex; align-items: center; gap: 48px; max-width: 1440px; margin: 0 auto; padding: 10px 16px; font-size: 13px; line-height: 16px; border-bottom: 1px solid #efefef; }
.site-header__link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.site-header__link--muted { font-weight: 400; color: var(--text-secondary, #555); }
.site-header__nav { display: flex; align-items: center; gap: 32px; margin-left: auto; font-weight: 600; }
.site-header__nav a { color: inherit; text-decoration: none; }
.site-header__nav a.is-red { color: #e2231a; }
.site-header__lang { padding-left: 16px; color: #777; font-weight: 400; }
.site-header__lang b { color: var(--text-primary, #1b1b1b); font-weight: 600; }
.site-header__main { display: flex; align-items: center; gap: 40px; max-width: 1440px; margin: 0 auto; padding: 20px 16px; }
.site-header__logo img { display: block; width: 150px; height: 36px; object-fit: contain; object-position: left center; }
.site-header__catalog { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 26px; border: 0; border-radius: 999px; background: #1b1b1b; color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: default; }
.site-header__search { flex: 1; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border: 1px solid #cfcfcf; border-radius: 999px; color: #1b1b1b; }
.site-header__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; background: none; pointer-events: none; }
.site-header__icons { display: flex; align-items: center; gap: 24px; }
.site-header__cart { position: relative; display: inline-flex; }
.site-header__cart i { position: absolute; top: -6px; right: -8px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--green, #2f9e44); color: #fff; font: 600 10px/16px system-ui, sans-serif; text-align: center; font-style: normal; }
@media (max-width: 1023px) {
  .site-header__top { display: none; }
  .site-header__main { flex-wrap: wrap; gap: 12px 16px; padding: 12px 16px; }
  .site-header__logo img { width: 112px; height: 28px; }
  .site-header__catalog { display: none; }
  .site-header__icons { margin-left: auto; gap: 18px; }
  .site-header__search { order: 3; flex-basis: 100%; height: 40px; }
}

/* ---------- Варіант 3: сторінка входу ---------- */
.authpage__grid { display: grid; grid-template-columns: 440px 400px; justify-content: center; gap: 48px; align-items: start; padding-top: 16px; }
@media (min-width: 1024px) { .authpage .page-title { text-align: center; } }
.authpage__main { display: flex; flex-direction: column; gap: 16px; }
.av-card--page { padding: 24px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0,0,0,.06); }
.av-card--page .av-card__title { font-size: 20px; line-height: 26px; }
.ap-cart { border: 1px solid var(--border-default, #e5e5e5); border-radius: 10px; background: #fff; }
.ap-cart__head { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px 8px; }
.ap-cart__head h2 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.ap-cart__head span { font-size: 14px; color: var(--text-secondary, #666); }
.ap-cart__list { margin: 0; padding: 0 20px; list-style: none; }
.ap-item { display: grid; grid-template-columns: 64px 1fr auto; grid-template-rows: auto auto; gap: 4px 16px; align-items: start; padding: 14px 0; border-top: 1px solid #f0f0f0; }
.ap-item:first-child { border-top: 0; }
.ap-item__img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
.ap-item__name { font-size: 14px; line-height: 20px; }
.ap-item__qty { grid-column: 2; font-size: 13px; color: var(--text-secondary, #666); }
.ap-item__price { grid-column: 3; grid-row: 1; font-size: 16px; white-space: nowrap; }
.ap-cart__total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border-default, #e5e5e5); font-size: 16px; }
.ap-cart__total b { font-size: 24px; line-height: 28px; }
@media (max-width: 1023px) {
  .authpage__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Варіант 4: заглушка замість решти чекауту ---------- */
.locked { display: flex; flex-direction: column; align-items: center; margin-top: 24px; padding: 32px 24px 40px; text-align: center; border: 1px dashed var(--border-default, #dcdcdc); border-radius: 10px; background: #fafafa; }
.locked__img { width: 160px; height: 160px; object-fit: contain; mix-blend-mode: multiply; }
.locked__title { margin: 16px 0 8px; font-size: 20px; line-height: 26px; font-weight: 600; }
.locked__text { max-width: 420px; margin: 0; font-size: 15px; line-height: 22px; color: var(--text-secondary, #666); }

/* ---------- Демо-панель: сегмент на 2 кнопки ---------- */
.demo__seg--2 { grid-template-columns: 1fr 1fr; }
.demo__seg button[aria-checked="true"] { background: #fff !important; color: #1b1b1b !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.demo__hint { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: #8a8a8a; }
.demo__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px; background: #f1f1f1; border-radius: 8px; }
.demo__seg button { padding: 6px 8px !important; border-radius: 6px; text-align: center !important; font-weight: 600 !important; color: #777 !important; }

/* Згода під кнопкою – лише на десктопі */
.av-terms { display: none; }

/* Десктоп · блок у чекауті (варіанти 1, 2 після попапу, 4; референс: чекаут Rozetka) – заголовок зліва,
   усе інше вузькою колонкою по центру картки:
   Увійдіть за номером телефону або через Google
                 Телефон*
                 [ +38 (___) ___-__-__ ]
                 [        Увійти        ]
                 Продовжуючи, ви погоджуєтеся…
                 ──────── або ────────
                 [ G Продовжити через Google ] */
@media (min-width: 768px) {
  .av-card--center { padding: 20px 24px 28px; }
  .av-card--center .av-card__title { font-size: 18px; line-height: 24px; }
  .av-card--center .av-card__body { flex-direction: column; align-items: stretch; gap: 16px; width: 100%; max-width: 380px; margin: 0 auto; padding-top: 20px; }
  .av-card--center .av-phone { flex: none; gap: 12px; }
  .av-card--center .av-field { gap: 6px; }
  .av-card--center .av-field__label { font-size: 13px; line-height: 16px; font-weight: 400; color: var(--text-secondary); }
  .av-card--center .av-or { flex: none; flex-direction: row; gap: 12px; }
  .av-card--center .av-or::before, .av-card--center .av-or::after { width: auto; height: 1px; flex: 1; }
  .av-card--center .av-soc { flex: none; }
  .av-card--center .av-terms { display: block; margin: 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--text-secondary); }
  .av-card--center .av-terms a { color: inherit; }
  .av-card--center .av-card__error { text-align: center; }
}
.av-desk { display: none; }
@media (min-width: 768px) { .av-desk { display: inline; } .av-mob { display: none; } }
