/* Кабинет доставки: мастер создания голосования (c1-c4) и экран публикации (c5). */

/* Общее для шагов мастера */
.create-actions { padding-bottom: max(22px, env(safe-area-inset-bottom)); }
.create-actions--ink .button { color: var(--cab-ink); font-size: 15.5px; }
.create-head > .count { margin-left: auto; }
.steps i.is-partial { border-radius: 0; background: repeating-linear-gradient(90deg, var(--cab-accent) 0 8px, transparent 8px 14px); }

/* c1 Шаг 1, сетка категорий */
.create-grid { display: grid; align-content: start; padding: 14px 16px 0; gap: 12px; grid-template-columns: 1fr 1fr; }
.create-group { display: flex; flex-direction: column; }
.create-group__hero { position: relative; display: block; height: 78px; flex: none; background: var(--cab-surface-2); }
.create-group__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.create-group__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  min-width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--cab-accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.create-group__caption { display: flex; align-items: center; gap: 7px; padding: 10px 12px; }
.create-group__caption b { min-width: 0; flex: 1; overflow: hidden; font-size: 15.5px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.create-group__caption small { flex: none; color: var(--cab-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* c2 Шаг 1, позиции внутри категории */
.create-head--sort { align-items: center; }
.create-head__name { display: flex; min-width: 0; flex: none; align-items: baseline; gap: 8px; }
.create-sort { margin-left: auto; flex: none; }
.create-body { padding: 12px 16px 0; }
.create-list { display: flex; flex-direction: column; }
.create-pick { display: flex; width: 100%; align-items: center; gap: 12px; padding: 11px 16px; color: inherit; text-align: left; }
.create-pick + .create-pick { box-shadow: inset 0 1px 0 #eff2ed; }
.create-pick__photo { position: relative; display: block; width: 58px; height: 58px; flex: none; overflow: hidden; border-radius: 15px; background: var(--cab-surface-2); }
.create-pick__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.create-pick__name { min-width: 0; flex: 1; font-size: 15.5px; font-weight: 600; }
.create-pick__rating { color: #46544a; }
.create-check { display: grid; width: 26px; height: 26px; flex: none; place-items: center; border: 1.5px solid #d3dbd2; border-radius: 9px; background: var(--cab-surface); color: transparent; }
.create-pick.is-checked .create-check { border-color: transparent; background: var(--cab-accent); color: #fff; }

/* c3 Шаг 2, параметры */
.create-panels { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 0; }
.create-results { display: flex; flex-direction: column; gap: 12px; }
.create-hint { color: var(--cab-muted-2); font-size: 13.5px; line-height: 1.45; }
.create-period { display: flex; flex-direction: column; padding-bottom: 6px; }
.create-period__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.create-period__head .badge { margin-left: auto; }
.create-period__row { width: 100%; }
.create-period__row svg { flex: none; }
.create-period__row:hover { background: #f5f7f3; }

/* c4 Шаг 3, оплата */
.pay-summary { padding: 4px 18px; }
.pay-row { min-height: 44px; }
.pay-row .row__name { color: var(--cab-muted-2); font-weight: 400; }
.pay-row .row__value { color: var(--cab-ink); font-size: 15px; font-weight: 700; }
.pay-row .row__value--empty { color: var(--cab-muted); }
.pay-method { display: flex; flex-direction: column; gap: 12px; }
.pay-method__row { display: flex; min-height: 44px; align-items: center; gap: 12px; }
.pay-method__icon { display: grid; width: 34px; height: 34px; flex: none; place-items: center; border-radius: 10px; background: var(--cab-ink); color: #fff; }
.pay-method__text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.pay-method__text b { font-size: 15px; font-weight: 700; }
.pay-method__text small { color: var(--cab-muted); font-size: 12.5px; }
.pay-brands { display: flex; gap: 6px; }
.pay-brands span { display: grid; min-width: 0; height: 30px; flex: 1; place-items: center; border-radius: 9px; background: var(--cab-surface-2); color: #55605a; font-size: 11px; font-weight: 700; }
.pay-brands span.pay-brands__mark { font-size: 10.5px; font-weight: 800; letter-spacing: .04em; }
.pay-total { display: flex; flex: none; flex-direction: column; gap: 10px; padding: 14px 20px 0; }
.pay-total__row { display: flex; align-items: baseline; }
.pay-total__row span { min-width: 0; flex: 1; color: var(--cab-muted-2); font-size: 15px; }
.pay-total__row b { flex: none; font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-total__note { margin: 0; color: var(--cab-muted); font-size: 12.5px; line-height: 1.4; }
.pay-actions { padding-top: 10px; }

/* c5 Опубликовано */
.pub-body { display: flex; flex-direction: column; }
.pub-live { display: inline-flex; align-self: flex-start; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: #e1f4e7; color: #0b7a3e; font-size: 12.5px; font-weight: 700; }
.pub-live i { width: 6px; height: 6px; flex: none; border-radius: 999px; background: currentColor; }
.pub-done { display: grid; width: 52px; height: 52px; flex: none; align-self: flex-start; margin-top: 20px; place-items: center; border-radius: 999px; background: var(--cab-accent); color: #fff; }
.pub-title { margin-top: 16px; }
.pub-lead { margin: 10px 0 0; color: var(--cab-muted-2); font-size: 15.5px; }
.pub-qr { align-self: flex-start; margin-top: 20px; padding: 20px; border-radius: 22px; box-shadow: 0 1px 2px rgba(23, 33, 27, .04); }
.pub-qr__grid { display: grid; grid-auto-rows: 20px; grid-template-columns: repeat(11, 20px); }
.pub-qr__grid i { display: block; }
.pub-qr__grid i.is-on { background: var(--cab-ink); }
.pub-link { display: flex; min-height: 52px; align-items: center; gap: 8px; margin-top: 18px; padding: 0 6px 0 18px; border: 1px solid #e4e9e3; border-radius: 14px; background: #eff2ed; }
.pub-link span { min-width: 0; flex: 1; overflow: hidden; color: #4c5a51; font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pub-link button { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 10px; background: var(--cab-accent); color: #fff; }
.pub-actions { padding: 16px 20px max(22px, env(safe-area-inset-bottom)); }
.pub-menus { color: var(--cab-ink); }
