/* HEZO — „Създай своя герой“ (блок за продуктовата страница) */
.hz, .hz-modal {
  --hz-orange-1: #ff7a00;
  --hz-orange-2: #ffb21a;
  --hz-paper: #ffffff;
  --hz-ink: #2b2140;
  --hz-muted: #6c6380;
  --hz-real: #1a9bef;
  --hz-hero: #ff6a00;
  --hz-ok: #1f9d63;
  --hz-err: #c0392b;
}
.hz {
  position: relative;
  margin: 24px 0;
  padding: 28px 20px 24px;
  border-radius: 22px;
  color: var(--hz-ink);
  background: linear-gradient(160deg, var(--hz-orange-1), var(--hz-orange-2));
  background-size: cover;
  background-position: center;
  overflow: hidden;
  font-family: inherit;
  line-height: 1.45;
}
.hz *, .hz *::before, .hz *::after, .hz-modal * { box-sizing: border-box; }
.hz-modal { font-family: inherit; line-height: 1.45; }
.hz[data-bg] { background-image: var(--hz-bg-img, none), linear-gradient(160deg, var(--hz-orange-1), var(--hz-orange-2)); }

.hz__title { margin: 0 0 4px; font-size: clamp(22px, 4.6vw, 30px); line-height: 1.15; font-weight: 800; color: #fff;
  text-shadow: 0 2px 0 rgba(120, 40, 0, .18); text-align: center; }
.hz__sub { margin: 0 auto 18px; max-width: 46ch; text-align: center; color: #fff; font-size: 16px; opacity: .95; }

.hz__consent { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 0 auto 18px;
  background: rgba(255,255,255,.92); border-radius: 14px; padding: 10px 14px; font-size: 13px; color: var(--hz-ink); }
.hz__consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--hz-hero); flex: none; }
.hz__consent a { color: var(--hz-ink); text-decoration: underline; }
.hz__consent.is-missing { outline: 3px solid #fff; animation: hz-nudge .35s ease 2; }

/* ---------- един герой ---------- */
.hz-slot { position: relative; margin: 0 auto 18px; max-width: 620px; }
.hz-slot + .hz-slot { padding-top: 18px; border-top: 2px dashed rgba(255,255,255,.55); }
.hz-slot__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; color: #fff; }
.hz-slot__name { font-weight: 800; font-size: 17px; }
.hz-slot__opt { font-size: 14px; opacity: .9; }
.hz-roles { display: flex; gap: 6px; }
.hz-role { border: 2px solid #fff; background: transparent; color: #fff; border-radius: 999px; padding: 4px 12px;
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.hz-role[aria-pressed="true"] { background: #fff; color: var(--hz-hero); }

.hz-pair { display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; gap: 0; }

/* полароид */
.hz-pol { position: relative; background: var(--hz-paper); padding: 9px 9px 0; border-radius: 6px;
  box-shadow: 0 10px 22px rgba(110, 40, 0, .28), 0 2px 4px rgba(110, 40, 0, .18); }
.hz-pol--real { transform: rotate(-3deg); }
.hz-pol--hero { transform: rotate(3deg); }
.hz-pol__img { position: relative; aspect-ratio: 4 / 5; background: #eef1f6; overflow: hidden; border-radius: 2px;
  display: flex; align-items: center; justify-content: center; }
.hz-pol__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-pol__foot { height: 54px; display: flex; align-items: center; justify-content: center; }
.hz-pill { display: inline-block; padding: 5px 16px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 14px;
  letter-spacing: .04em; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.hz-pill--real { background: var(--hz-real); }
.hz-pill--hero { background: var(--hz-hero); }

.hz-arrow { width: 54px; height: 54px; color: #fff; filter: drop-shadow(0 2px 2px rgba(110,40,0,.25)); }

/* празни състояния */
.hz-drop { width: 100%; height: 100%; border: 0; background: repeating-linear-gradient(135deg, #f3f6fb 0 12px, #eaeff7 12px 24px);
  color: var(--hz-ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 6px; padding: 10px; text-align: center; }
.hz-drop__plus { width: 46px; height: 46px; border-radius: 50%; background: var(--hz-real); color: #fff; font-size: 30px;
  line-height: 46px; font-weight: 700; }
.hz-drop__txt { font-weight: 700; font-size: 14px; }
.hz-drop__hint { font-size: 13px; color: var(--hz-muted); }
.hz-ghost { color: #b9b2c7; font-size: 13.5px; text-align: center; padding: 12px; }
.hz-ghost svg { width: 56%; height: auto; opacity: .55; display: block; margin: 0 auto 6px; }

/* генериране */
.hz-gen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; background: linear-gradient(180deg, #fff6ec, #ffe7cc); padding: 12px; text-align: center; }
.hz-gen__txt { font-weight: 700; font-size: 13.5px; color: var(--hz-hero); }
.hz-gen__bar { width: 80%; height: 6px; border-radius: 6px; background: rgba(255,106,0,.18); overflow: hidden; }
.hz-gen__bar i { display: block; height: 100%; width: 0; background: var(--hz-hero); border-radius: 6px; transition: width 1s linear; }
.hz-gen__dots { display: flex; gap: 5px; }
.hz-gen__dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--hz-hero); animation: hz-bounce 1.1s infinite ease-in-out; }
.hz-gen__dots span:nth-child(2) { animation-delay: .15s; } .hz-gen__dots span:nth-child(3) { animation-delay: .3s; }

/* „проявяване“ на героя — единственият акцентен ефект */
.hz-develop { animation: hz-develop 1.6s ease-out both; }
@keyframes hz-develop { from { filter: blur(14px) sepia(.8) brightness(1.35); opacity: .3; } to { filter: none; opacity: 1; } }
@keyframes hz-bounce { 0%, 80%, 100% { transform: scale(.6); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }
@keyframes hz-nudge { 50% { transform: translateX(4px); } }

.hz-badge { position: absolute; top: 8px; left: 8px; background: var(--hz-ok); color: #fff; font-size: 12px; font-weight: 800;
  border-radius: 999px; padding: 3px 10px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }

/* варианти и действия */
.hz-variants { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.hz-thumb { width: 52px; height: 52px; padding: 0; border-radius: 8px; overflow: hidden; border: 3px solid #fff;
  background: #fff; cursor: pointer; box-shadow: 0 2px 6px rgba(110,40,0,.25); }
.hz-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-thumb[aria-pressed="true"] { border-color: var(--hz-ink); }
.hz-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.hz-btn { appearance: none; border: 0; border-radius: 999px; padding: 11px 18px; font: inherit; font-weight: 800; font-size: 14.5px;
  cursor: pointer; min-height: 44px; }
.hz-btn:disabled { opacity: .55; cursor: default; }
.hz-btn--ok { background: var(--hz-ok); color: #fff; box-shadow: 0 3px 0 #157a4c; }
.hz-btn--alt { background: #fff; color: var(--hz-hero); box-shadow: 0 3px 0 rgba(110,40,0,.2); }
.hz-btn--link { background: transparent; color: #fff; text-decoration: underline; font-weight: 700; padding: 8px 10px; min-height: 0; }
.hz-btn:focus-visible, .hz-role:focus-visible, .hz-drop:focus-visible, .hz-thumb:focus-visible, .hz-add:focus-visible {
  outline: 3px solid var(--hz-ink); outline-offset: 2px; }

.hz-msg { margin: 12px auto 0; max-width: 520px; text-align: center; font-size: 14.5px; border-radius: 12px; padding: 9px 12px; }
.hz-msg--err { background: #fff; color: var(--hz-err); font-weight: 600; }
.hz-msg--info { background: rgba(255,255,255,.9); color: var(--hz-ink); }
.hz-msg--ok { background: rgba(255,255,255,.95); color: var(--hz-ok); font-weight: 700; }

.hz-add { display: block; margin: 6px auto 0; border: 2px dashed #fff; background: rgba(255,255,255,.12); color: #fff;
  border-radius: 14px; padding: 12px 18px; font: inherit; font-weight: 800; cursor: pointer; width: min(100%, 360px); }

/* изрязване */
.hz-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(32, 18, 48, .78); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.hz-modal__box { background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: 100%; overflow: auto; padding: 16px; color: var(--hz-ink); }
.hz-modal__title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.hz-modal__hint { margin: 0 0 10px; font-size: 14px; color: var(--hz-muted); }
.hz-modal__stage { width: 100%; height: min(60vh, 420px); background: #222; border-radius: 10px; overflow: hidden; }
.hz-modal__stage img { display: block; max-width: 100%; }
.hz-modal__row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.hz-modal .hz-btn--alt { box-shadow: inset 0 0 0 2px #e4dff0; color: var(--hz-ink); }

/* „Не искате да чакате?“ */
.hz-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 14px;
  max-width: 560px; background: #fff; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600;
  color: var(--hz-ink); box-shadow: 0 6px 16px rgba(110,40,0,.2); text-align: center; }

/* контакт */
.hz-field { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.hz-field span { display: block; margin-bottom: 4px; }
.hz-field input, .hz-field textarea { width: 100%; min-height: 44px; border: 2px solid #e4dff0; border-radius: 10px; padding: 8px 12px;
  font: inherit; font-size: 16px; font-weight: 400; color: var(--hz-ink); background: #fff; }
.hz-field textarea { resize: vertical; min-height: 70px; }
.hz-field input:focus, .hz-field textarea:focus { outline: none; border-color: var(--hz-hero); }
.hz-lead__err { color: var(--hz-err); font-size: 13px; font-weight: 700; min-height: 18px; }
.hz-lead__note { margin: 2px 0 0; font-size: 13px; color: var(--hz-muted); }
.hz-modal--lead .hz-modal__title { color: var(--hz-hero); }

/* бутонът „Добави в кошницата“, докато героите не са готови */
.hz-cart-note { margin: 8px 0; padding: 9px 12px; border-radius: 10px; background: #fff3e6; color: #a34700; font-size: 14.5px; font-weight: 600; }

@media (max-width: 480px) {
  .hz { padding: 22px 12px 18px; border-radius: 16px; }
  .hz-pair { grid-template-columns: 1fr 34px 1fr; }
  .hz-arrow { width: 34px; height: 34px; }
  .hz-pol { padding: 6px 6px 0; }
  .hz-pol__foot { height: 42px; }
  .hz-pill { font-size: 12px; padding: 4px 11px; }
  .hz-drop__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hz-develop, .hz-gen__dots span, .hz__consent.is-missing { animation: none; }
  .hz-gen__bar i { transition: none; }
}

/* ---------- v2: рецепта, голямо качване, лента с героите, име, „Кой е на снимката?“ ---------- */
.hz__recipe { margin: -8px auto 14px; text-align: center; color: #fff; font-weight: 800; font-size: 14px; opacity: .95; }
.hz-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hz-top { max-width: 620px; margin: 0 auto 16px; }
.hz-up { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  width: 100%; text-align: left; border: 0; border-radius: 16px; padding: 14px 18px; cursor: pointer; font: inherit;
  background: #fff; color: var(--hz-ink); box-shadow: 0 6px 0 rgba(110,40,0,.22); }
.hz-up:active { transform: translateY(2px); box-shadow: 0 4px 0 rgba(110,40,0,.22); }
.hz-up__icon { grid-row: 1 / 3; font-size: 30px; line-height: 1; width: 52px; height: 52px; border-radius: 50%;
  background: var(--hz-real); display: flex; align-items: center; justify-content: center; }
.hz-up__txt { font-weight: 800; font-size: 18px; color: var(--hz-hero); }
.hz-up__hint { font-size: 13.5px; color: var(--hz-muted); }
.hz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.hz-chip { border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.15); color: #fff; border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 34px; }
.hz-chip--ok { background: #fff; color: var(--hz-ok); border-color: #fff; }
.hz-chip--wip { background: rgba(255,255,255,.9); color: var(--hz-hero); border-color: #fff; }
.hz-chip--add { border-style: dashed; }
.hz-name { display: flex; justify-content: center; margin: -4px 0 12px; }
.hz-name label { width: min(100%, 320px); }
.hz-name input { width: 100%; min-height: 44px; border: 2px solid #fff; border-radius: 12px; padding: 8px 14px; font: inherit;
  font-size: 16px; text-align: center; color: var(--hz-ink); background: #fff; box-shadow: 0 3px 0 rgba(110,40,0,.18); }
.hz-name input:focus { outline: 3px solid var(--hz-ink); outline-offset: 1px; }
.hz-name input.is-missing { border-color: var(--hz-err); box-shadow: 0 0 0 3px rgba(192,57,43,.35); }
/* име (и години при децата) — точно колкото двете снимки над тях; при децата две еднакви полета */
.hz-name { width: min(100%, 460px); margin-left: auto; margin-right: auto; }
.hz-name label { width: 100%; }
.hz-name--age { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hz-name--age input { padding: 8px 8px; }
.hz-age-hint { text-align: center; margin: -6px auto 10px; font-size: 14px; font-weight: 700; color: #fff; }
.hz-custom { text-align: center; margin: 6px 0 0; }
.hz-custom .hz-btn--link { font-size: 13.5px; }

.hz-modal__box--who { width: min(560px, 100%); }
.hz-modal__count { margin: 0 0 2px; font-size: 12px; font-weight: 800; color: var(--hz-muted); text-transform: uppercase; letter-spacing: .05em; }
.hz-modal__ai { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--hz-real); min-height: 1em; }
.hz-modal__ai:empty { display: none; }
.hz-who { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hz-who__btn { border: 2px solid #e4dff0; background: #fff; color: var(--hz-ink); border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; min-height: 40px; }
.hz-who__btn[aria-pressed="true"] { background: var(--hz-hero); border-color: var(--hz-hero); color: #fff; }
.hz-who__btn--sm { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.hz-who__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.hz-who__name input { flex: 1 1 160px; min-height: 40px; border: 2px solid #e4dff0; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 16px; }
.hz-who__name input:focus { outline: none; border-color: var(--hz-hero); }
.hz-modal__err { color: var(--hz-err); font-size: 13px; font-weight: 700; margin-top: 6px; }
.hz-modal__err:empty { display: none; }
.hz-modal__box--who .hz-modal__stage { height: min(46vh, 380px); }
@media (max-width: 480px) {
  .hz-up { padding: 12px 14px; }
  .hz-up__txt { font-size: 16px; }
  .hz-up__icon { width: 44px; height: 44px; font-size: 24px; }
  .hz-modal { padding: 8px; align-items: flex-start; }
  .hz-modal__box--who .hz-modal__stage { height: 38vh; }
}

/* компактен пол: „· Момче  смени“ */
.hz-g { font-weight: 800; font-size: 17px; color: #fff; }
.hz-g__chg { border: 0; background: transparent; color: #fff; text-decoration: underline; font: inherit; font-size: 13.5px;
  font-weight: 600; opacity: .9; cursor: pointer; padding: 4px 2px; margin-left: 2px; }
.hz-g__chg--dark { color: var(--hz-real); opacity: 1; font-size: 13px; }
.hz-who__sum { font-size: 16px; color: var(--hz-ink); padding: 2px 0 4px; }
.hz-top { margin-bottom: 14px; }
.hz__recipe { margin: 6px auto 14px; }
.hz-up { grid-template-rows: auto; }
.hz-up__icon { grid-row: auto; }

/* съгласие отдолу, малко */
.hz__consent--bottom { background: transparent; padding: 6px 4px 0; margin: 16px auto 0; font-size: 12.5px; color: #fff; opacity: .95; }
.hz__consent--bottom a { color: #fff; }
.hz__consent--bottom input { width: 16px; height: 16px; }
.hz__consent--bottom p { margin: 0; }
.hz-consent-box { width: min(440px, 100%); }
.hz-consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--hz-ink); cursor: pointer; }
.hz-consent-row input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--hz-hero); }
.hz-consent-row p { margin: 0; }
.hz-consent-row a { color: var(--hz-ink); }
/* малки опции под героя */
.hz-picked { text-align: center; margin: 10px auto 0; font-size: 15px; font-weight: 600; color: #fff; max-width: 520px; }
.hz-small { text-align: center; margin: 8px auto 0; font-size: 14px; color: #fff; opacity: .95; max-width: 520px; }
.hz-link { border: 0; background: transparent; padding: 2px; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.hz-slot .hz-name { margin: 12px auto 0; }

/* блокът над бутона за количката */
.hz.hz--in-form { margin: 14px 0 16px; padding: 22px 14px 16px; border-radius: 18px; text-align: left; }
.hz--in-form .hz__title { font-size: clamp(20px, 3.2vw, 26px); }
.hz--in-form .hz-slot, .hz--in-form .hz-top { max-width: 100%; }
/* полароидите — компактни и на широк екран */
.hz .hz-pair { max-width: 460px; margin-left: auto; margin-right: auto; }
.hz--in-form .hz-slot { max-width: 520px; }
.hz-testbadge { position: absolute; top: 8px; left: 8px; background: #2b2140; color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 6px; padding: 3px 8px; letter-spacing: .03em; }
/* порода на куче/коте — предложена, по желание */
.hz-breed { display: flex; justify-content: center; margin: -4px 0 12px; }
.hz-breed label { width: min(100%, 320px); display: flex; align-items: center; gap: 8px; font-size: 14px; color: #fff; }
.hz-breed span { white-space: nowrap; opacity: .9; }
.hz-breed input { flex: 1; min-width: 0; min-height: 38px; border: 2px solid rgba(255,255,255,.8); border-radius: 10px;
  padding: 6px 12px; font: inherit; font-size: 15px; background: rgba(255,255,255,.95); color: #333; }

/* iPhone: полета под 16px карат Safari да увеличава страницата → всички полета 16px */
.hz input[type="text"], .hz input[type="email"], .hz textarea,
.hz-modal input[type="text"], .hz-modal input[type="email"], .hz-modal input[type="tel"], .hz-modal textarea { font-size: 16px !important; }

/* телефон: бутоните на изрязването винаги се виждат, снимката без черни ленти */
.hz-modal__box--who .hz-modal__row { position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 10px 16px 14px;
  background: #fff; box-shadow: 0 -10px 14px -10px rgba(0,0,0,.25); z-index: 2; }
.hz-modal__box--who .hz-modal__stage { background: transparent; }
.hz-consent-text { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
@media (max-width: 480px) {
  .hz-modal__box--who .hz-modal__row { bottom: -16px; }
  .hz-modal__box--who .hz-modal__row .hz-btn { flex: 1 1 auto; }
}
.hz-thumb--wip { display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.35); }
.hz-thumb--wip i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #fff; border-top-color: transparent; animation: hzspin .9s linear infinite; }
@keyframes hzspin { to { transform: rotate(360deg); } }

/* какво остава до поръчката */
.hz-todo { margin: 14px auto 6px; max-width: 520px; background: #fff; color: var(--hz-ink); border-radius: 14px; padding: 12px 16px;
  font-size: 14.5px; box-shadow: 0 2px 10px rgba(0,0,0,.08); text-align: left; }
.hz-todo b { display: block; margin-bottom: 4px; }
.hz-todo ul { margin: 0; padding: 0; list-style: none; }
.hz-todo li { margin: 4px 0; }
.hz-todo__go { border: 0; background: transparent; padding: 2px 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.hz-todo__go span { font-weight: 800; }
.hz-todo__go::before { content: "→ "; color: var(--hz-hero); font-weight: 800; }
.hz-todo.is-alert { box-shadow: 0 0 0 3px var(--hz-err), 0 2px 10px rgba(0,0,0,.1); }
.hz-todo.is-alert b { color: var(--hz-err); }
.hz-todo-one { margin: 4px auto 8px; text-align: center; color: #fff; background: var(--hz-err); border-radius: 10px;
  padding: 6px 12px; font-weight: 800; font-size: 14px; width: fit-content; max-width: 100%; }

/* „Кой е на снимката“ → „Нагласете лицето“: две стъпки в един прозорец */
.hz-step[hidden] { display: none !important; }
.hz-step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hz-step__thumb { width: 64px !important; height: 64px !important; max-width: 64px !important; object-fit: cover; border-radius: 12px; flex: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.hz-step__head .hz-modal__title { margin: 0; }
.hz-step--1 .hz-who__name input { font-size: 16px; }
.hz-modal [data-c="ok"]:disabled { opacity: .6; }

/* „Политика за поверителност“ — личи, че е връзка */
.hz-consent-text a, .hz-consent-row a, .hz-consent-box a { color: #1a5fd6 !important; text-decoration: underline !important; font-weight: 700; }
/* „Смени снимката“ / „Премахни“ — малки връзки под героя, не привличат внимание */
.hz-actions--links { margin-top: 4px; gap: 4px 14px; }
.hz-actions--links .hz-btn--link { font-size: 13px; font-weight: 600; padding: 4px 2px; opacity: .85; }
.hz-left { margin-top: 6px; opacity: .9; }

/* един прозорец: кой е → рамка → име → „Създай героя“ */
.hz-one .hz-modal__title { margin: 0 0 6px; }
.hz-one .hz-who { margin-bottom: 4px; }
.hz-one .hz-crop-hint { margin: 6px 0 8px; font-size: 13px; }
.hz-one .hz-modal__stage { height: min(42vh, 360px); }
.hz-one .hz-who__namebox { margin-top: 10px; }
.hz-one .hz-who__namebox:empty { display: none; }
.hz-one .hz-who__agebox:empty { display: none; }
.hz-one [data-c="rot"] { flex: 0 0 auto !important; min-width: 48px; font-size: 20px; padding-left: 12px; padding-right: 12px; }
@media (max-width: 480px) { .hz-one .hz-modal__stage { height: 36vh; } }

/* доплащане за допълнителен герой */
.hz-extra { margin-top: 10px; font-weight: 600; }
.hz-extra--on { background: rgba(255,255,255,.95); color: #2b2140; border-radius: 10px; padding: 8px 12px; opacity: 1; }

/* проценти на лентата за създаване */
.hz-gen__pct { font-weight: 800; font-size: 22px; color: var(--hz-hero); line-height: 1; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }

/* съобщенията над рамките („Разпознаваме снимката…“, грешки) не се застъпват със завъртените полароиди */
.hz__body > .hz-msg { position: relative; z-index: 2; margin: 4px auto 22px; }
.hz__body > .hz-msg + .hz-msg { margin-top: -12px; }
.hz__body > .hz-slot + .hz-msg, .hz__body > .hz-slot + .hz-todo { margin-top: 22px; }
.hz__body > .hz-todo { position: relative; z-index: 2; }

/* „от“ пред цената (книги с доплащане) */
.hz-from { font: inherit; font-size: .8em; font-weight: 700; margin-right: 2px; }
.hz-has-heroes .hz-from { display: none; }
/* безопасен режим */
.hz-safe { font-weight: 600; }

/* „Докато чакате“ — отзиви от клиенти */
.hz-proof { margin: 14px auto 4px; max-width: 330px; text-align: center; }
.hz-proof__t { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: #fff; }
.hz-proof__img { background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.15); aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hz-proof__img img { max-width: 100%; max-height: 100%; border-radius: 10px; transition: opacity .25s ease; }
.hz-proof__img img.is-out { opacity: 0; }
.hz-proof__n { font-size: 13.5px; margin-top: 8px; color: rgba(255,255,255,.92); }
@media (prefers-reduced-motion: reduce) { .hz-proof__img img { transition: none; } }

/* 13.10.2026: по-едри дребни текстове (на малък iPhone в Safari бяха ситни) */
/* ---------- 🎁 магнити — подарък към книгата (12.10.2026; 13.10.2026 — бележките на Иван) ---------- */
.hz-gift { --g1: #ff7a00; --g2: #ffb21a; position: relative; margin: 14px 0 22px; padding: 14px 14px 14px;
  border-radius: 22px; color: #fff; font-family: inherit; line-height: 1.35;
  background: linear-gradient(160deg, var(--g1), var(--g2));
  box-shadow: 0 10px 24px rgba(160, 60, 0, .22); }
.hz-gift *, .hz-gift *::before, .hz-gift *::after { box-sizing: border-box; }
.hz-gift[hidden] { display: none; }
/* без никакво движение (темата понякога анимира картинките) */
.hz-gift img { max-width: none; animation: none !important; transition: none !important; }
.hz-gift__spark { position: absolute; top: -14px; right: -6px; width: 46px; height: auto; pointer-events: none;
  transform: rotate(8deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.hz-gift__magnet { position: absolute; left: -14px; bottom: -18px; width: 76px; height: auto; pointer-events: none;
  transform: rotate(-14deg); filter: drop-shadow(0 4px 6px rgba(110,40,0,.3)); }
.hz-gift__top { display: flex; align-items: center; gap: 10px; padding-right: 28px; }
.hz-gift__tick { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.hz-gift__tick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.hz-gift__box { width: 26px; height: 26px; border-radius: 7px; background: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 0 rgba(120,40,0,.25); display: inline-flex; align-items: center; justify-content: center; }
.hz-gift__tick input:checked + .hz-gift__box { background: #e5560f; border-color: #fff; }
.hz-gift__tick input:checked + .hz-gift__box::after { content: ""; width: 7px; height: 13px; margin-top: -3px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.hz-gift__tick input:focus-visible + .hz-gift__box { outline: 3px solid #2b2140; outline-offset: 2px; }
.hz-gift.is-free .hz-gift__tick, .hz-gift.is-free .hz-gift__tick input { cursor: default; }
.hz-gift__price { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; min-width: 0; }
.hz-gift__was { white-space: nowrap; font-size: 16px; font-weight: 700; color: rgba(255,255,255,.88); text-decoration-thickness: 2px; }
.hz-gift__now { white-space: nowrap; font-size: 23px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 rgba(120,40,0,.2); letter-spacing: .01em; }
.hz-gift__badge { margin-left: auto; flex: none; font-size: 13px; font-weight: 800; color: #fff; background: #1f9d63;
  border-radius: 999px; padding: 5px 11px; box-shadow: 0 2px 0 rgba(0,0,0,.15); white-space: nowrap; }
/* „ПОДАРЪК КЪМ КНИГАТА ДО …“ — по-голямо, с датата */
.hz-gift__gift { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 900; letter-spacing: .02em; line-height: 1.25;
  color: #e5560f; background: #fff; border-radius: 14px; padding: 8px 14px; box-shadow: 0 3px 0 rgba(120,40,0,.2); }
.hz-gift__title { margin: 8px 0 10px; font-size: clamp(18px, 4.8vw, 22px); font-weight: 800; color: #fff;
  text-shadow: 0 2px 0 rgba(120,40,0,.18); }
.hz-gift__show { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hz-gift__main { display: flex; justify-content: center; }
.hz-gift__minis { display: grid; grid-auto-flow: column; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 10px; width: 100%; max-width: calc(var(--n, 3) * 96px); justify-items: center; align-items: center; }
.hz-gift__sample { display: block; height: auto; width: 100%; max-width: 92px !important; filter: drop-shadow(0 3px 4px rgba(110,40,0,.25)); }
.hz-gift__sample--big { width: 170px; max-width: 170px !important; }
/* полароидите на героите на клиента */
.hz-gpair { display: inline-flex; gap: 2px; }
.hz-gp { display: inline-flex; flex-direction: column; align-items: center; width: 32px; padding: 2px 2px 3px;
  background: #fff; border-radius: 3px; box-shadow: 0 3px 6px rgba(110,40,0,.28); }
.hz-gp--real { transform: rotate(-4deg); }
.hz-gp--hero { transform: rotate(4deg); }
.hz-gp__img { display: block; width: 100%; aspect-ratio: 4 / 5; background: #eef1f6; overflow: hidden; border-radius: 1px; }
.hz-gp__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hz-gp__img i { display: block; width: 100%; height: 100%; background: #eef1f6; }
.hz-gp__pill { margin-top: 2px; font-size: 5px; font-weight: 900; letter-spacing: .02em; color: #fff; border-radius: 2px;
  padding: 1px 2px; line-height: 1.2; }
.hz-gp--real .hz-gp__pill { background: var(--hz-real, #1a9bef); }
.hz-gp--hero .hz-gp__pill { background: var(--hz-hero, #ff6a00); }
.hz-gpair--big { gap: 4px; }
.hz-gpair--big .hz-gp { width: 74px; padding: 4px 4px 5px; border-radius: 5px; }
.hz-gpair--big .hz-gp__pill { font-size: 9px; padding: 2px 6px; border-radius: 4px; margin-top: 4px; }
/* текстът отдолу — вдясно, за да не се застъпва с магнитчето долу вляво */
.hz-gift__count { margin: 10px 0 0 56px; font-size: 16px; font-weight: 800; font-style: italic; color: #fff; text-align: right; }
.hz-gift__count span { display: block; font-weight: 600; font-size: 14px; opacity: .95; }
.hz-gift__foot { margin: 4px 0 0 56px; font-size: 13.5px; color: #fff; opacity: .95; text-align: right; }
@media (max-width: 420px) {
  .hz-gift__top { gap: 8px; padding-right: 24px; }
  .hz-gift__was { font-size: 14px; }
  .hz-gift__now { font-size: 20px; }
  .hz-gift__badge { font-size: 12px; padding: 4px 9px; }
  .hz-gift__gift { font-size: 14px; }
  .hz-gift__magnet { width: 66px; left: -12px; bottom: -16px; }
}
@media (max-width: 340px) {
  .hz-gift__was { font-size: 13px; }
  .hz-gift__now { font-size: 18px; }
  .hz-gift__badge { font-size: 11px; padding: 3px 7px; }
}

/* 16.10.2026: „ГОТОВО! … добавете в кошницата ↓“ — бутон към „Добави в кошницата“ */
.hz-msg--go { display: block; width: 100%; border: 0; font-family: inherit; line-height: 1.35; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hz-msg--go, .hz-msg--go:hover, .hz-msg--go:focus, .hz-msg--go:active { text-decoration: none !important; }
.hz-msg--go:hover { filter: brightness(.98); }
@keyframes hzAtcFlash { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 0, 0); transform: scale(1); }
  30% { box-shadow: 0 0 0 6px rgba(255, 122, 0, .9); transform: scale(1.03); } 65% { box-shadow: 0 0 0 12px rgba(255, 122, 0, 0); transform: scale(1); } }
.hz-atc-flash { animation: hzAtcFlash .8s ease-out 2; }
