/*! Allma Design Shop 5.3.0 — Ajutor pentru clienți: panou, centru de ajutor, card „Ce urmează?”
 *
 * Butonul plutitor își are stilul în pagină (mic, inline); această foaie se încarcă la prima atingere a lui
 * sau direct pe paginile de ajutor / confirmarea comenzii.
 */
:root {
  --hp-link: #c2410c;
  --hp-ink: var(--a-ink, #17171a);
  --hp-muted: var(--a-muted, #62626b);
  --hp-line: var(--a-line, #f1e5d9);
  --hp-soft: var(--a-orange-soft, #fff1e4);
  --hp-or: var(--a-orange, #f2640a);
}
[data-hp-root] [hidden], .a-hp [hidden] { display: none !important; }
html.allma-hp-lock { overflow: hidden; }

/* ------------------------------------------------------------------ 1. Panoul */
.a-hp { position: fixed; inset: 0; z-index: 99965; font-family: var(--a-font, system-ui, sans-serif); color: var(--a-text, #2b2b31); }
.a-hp[hidden] { display: none; }
.a-hp__backdrop { position: absolute; inset: 0; background: rgba(23, 23, 26, .46); opacity: 0; transition: opacity .22s ease; }
.a-hp__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; background: #fff; box-shadow: -24px 0 60px rgba(23, 23, 26, .22); transform: translateX(28px); opacity: 0; transition: transform .24s ease, opacity .24s ease; outline: 0; }
.a-hp--left .a-hp__panel { right: auto; left: 0; box-shadow: 24px 0 60px rgba(23, 23, 26, .22); transform: translateX(-28px); }
.a-hp.is-open .a-hp__backdrop { opacity: 1; }
.a-hp.is-open .a-hp__panel { transform: none; opacity: 1; }

.a-hp__head { flex: none; padding: 18px 20px 16px; background: var(--hp-ink); color: #fff; }
.a-hp__top { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.a-hp__head .a-hp-search { margin: 14px 0 0; }
.a-hp__head .a-hp-search input { border-color: transparent; }
.a-hp__head h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.a-hp__head p { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #d8d8de; }
.a-hp__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .15s; }
.a-hp__x:hover { background: rgba(255, 255, 255, .22); }
.a-hp__x svg { width: 20px; height: 20px; }
.a-hp__x:focus-visible, .a-hp-btn:focus-visible, .a-hp-cat:focus-visible, .a-hp-more:focus-visible, .a-hp-steps__cta:focus-visible,
.a-hp-item summary:focus-visible, .a-hp__center:focus-visible, .a-hc__quick a:focus-visible { outline: 3px solid var(--hp-or); outline-offset: 2px; }

.a-hp__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 8px; -webkit-overflow-scrolling: touch; }
.a-hp__body h3 { margin: 0 0 10px; font-size: 13px; line-height: 1.3; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-muted); }
.a-hp-next { margin: 0 0 22px; padding: 16px; border: 1px solid var(--a-orange-line, #f6dcc3); border-radius: var(--a-radius-sm, 14px); background: var(--a-bg, #fffaf5); }
.a-hp-find { padding-bottom: 8px; }

.a-hp__foot { flex: none; padding: 14px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--hp-line); background: #fff; }
.a-hp__foottop { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 10px; }
.a-hp__foottop strong { font-size: 15px; color: var(--hp-ink); }
.a-hp__center { font-size: 14px; font-weight: 700; color: var(--hp-link); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ 2. Pașii „Ce poți face acum” */
.a-hp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.a-hp-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; }
.a-hp-steps__n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hp-soft); color: #9a3412; font-size: 13px; font-weight: 800; }
.a-hp-steps strong { display: block; font-size: 15px; line-height: 1.35; color: var(--hp-ink); }
.a-hp-steps p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: var(--hp-muted); }
.a-hp-steps__cta { display: inline-block; margin-top: 7px; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--hp-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.a-hp-steps__cta:hover { color: #9a3412; }

/* ------------------------------------------------------------------ 3. Căutare, subiecte, răspunsuri */
.a-hp-search { position: relative; margin: 0 0 12px; }
.a-hp-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--hp-muted); pointer-events: none; }
.a-hp-search input { width: 100%; height: 48px; padding: 0 14px 0 44px; border: 1.5px solid #e4d6c8; border-radius: var(--a-pill, 999px); background: #fff; color: var(--hp-ink); font: inherit; font-size: 16px; /* 16px: iOS nu mărește pagina la focus */ appearance: none; -webkit-appearance: none; }
.a-hp-search input::placeholder { color: #7b7b85; }
.a-hp-search input:focus { outline: 0; border-color: var(--hp-or); box-shadow: 0 0 0 3px rgba(242, 100, 10, .18); }
.a-hp-search input::-webkit-search-cancel-button { cursor: pointer; }

.a-hp-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.a-hp-cat { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--hp-line); border-radius: var(--a-pill, 999px); background: #fff; color: var(--hp-ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.a-hp-cat svg { width: 16px; height: 16px; color: var(--hp-or); flex: none; }
.a-hp-cat:hover { border-color: var(--hp-or); }
.a-hp-cat[aria-pressed="true"] { background: var(--hp-ink); border-color: var(--hp-ink); color: #fff; }
.a-hp-cat[aria-pressed="true"] svg { color: #ffb066; }

.a-hp-status { min-height: 1.4em; margin: 0 0 6px; font-size: 13px; color: var(--hp-muted); }
.a-hp-group { margin: 0 0 14px; }
.a-hp-group__h { margin: 14px 0 6px !important; }
.a-hp-item { border-bottom: 1px solid var(--hp-line); }
.a-hp-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 2px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--hp-ink); cursor: pointer; list-style: none; }
.a-hp-item summary::-webkit-details-marker { display: none; }
.a-hp-item summary i { flex: none; position: relative; width: 22px; height: 22px; color: var(--hp-muted); transition: transform .18s ease; }
.a-hp-item summary i::before { content: ""; position: absolute; left: 6px; top: 5px; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.a-hp-item[open] summary i { transform: rotate(180deg); color: var(--hp-or); }
.a-hp-item__a { padding: 0 2px 14px; font-size: 14.5px; line-height: 1.62; color: var(--a-text, #2b2b31); }
.a-hp-item__a p { margin: 0 0 10px; }
.a-hp-item__a ul, .a-hp-item__a ol { margin: 0 0 10px; padding-left: 22px; }
.a-hp-item__a ul { list-style: disc outside; }
.a-hp-item__a ol { list-style: decimal outside; }
.a-hp-item__a li { margin: 0 0 4px; padding-left: 2px; }
.a-hp-item__a a { color: var(--hp-link); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.a-hp-item__a > :last-child { margin-bottom: 0; }
.a-hp-item.is-target { background: var(--hp-soft); border-radius: 10px; }
.a-hp-none { margin: 10px 0; padding: 14px; border-radius: var(--a-radius-sm, 14px); background: var(--a-bg-2, #fff4ea); font-size: 14.5px; line-height: 1.5; color: var(--hp-ink); }
.a-hp-more { display: block; width: 100%; margin: 6px 0 14px; min-height: 44px; border: 1.5px solid var(--hp-ink); border-radius: var(--a-pill, 999px); background: #fff; color: var(--hp-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.a-hp-more:hover { background: var(--hp-ink); color: #fff; }

/* ------------------------------------------------------------------ 4. Contact */
.a-hp-contact { display: flex; flex-wrap: wrap; gap: 8px; }
.a-hp-contact--compact { gap: 6px; }
.a-hp-contact--compact .a-hp-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.a-hp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid transparent; border-radius: var(--a-pill, 999px); font-size: 14.5px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.a-hp-btn svg { width: 18px; height: 18px; flex: none; }
.a-hp-btn--primary { background: var(--hp-ink); color: #fff; }
.a-hp-btn--primary:hover { background: #000; color: #fff; }
.a-hp-btn--ghost { background: #fff; border-color: #e4d6c8; color: var(--hp-ink); }
.a-hp-btn--ghost:hover { border-color: var(--hp-or); color: #9a3412; }
.a-hp-hours { margin: 10px 0 0; font-size: 13px; color: var(--hp-muted); }

/* ------------------------------------------------------------------ 5. Centrul de ajutor (pagină / Contul meu) */
.a-hc { display: grid; gap: 28px; }
.a-hc__intro h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.25; letter-spacing: -.01em; }
.a-hc__intro p { margin: 0; color: var(--hp-muted); line-height: 1.6; }
.a-hc__quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.a-hc__quick li { margin: 0; }
.a-hc__quick a { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--hp-line); border-radius: var(--a-radius, 20px); background: #fff; color: var(--hp-ink); text-decoration: none; box-shadow: var(--a-shadow-sm); transition: transform .15s, border-color .15s, box-shadow .15s; }
.a-hc__quick a:hover { transform: translateY(-2px); border-color: var(--a-orange-3, #ffb066); box-shadow: var(--a-shadow); }
.a-hc__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--hp-soft); color: #c2410c; }
.a-hc__ico svg { width: 22px; height: 22px; }
.a-hc__quick strong { display: block; font-size: 15.5px; line-height: 1.3; }
.a-hc__quick small { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--hp-muted); }
.a-hc__browser { padding: 22px; border: 1px solid var(--hp-line); border-radius: var(--a-radius, 20px); background: #fff; box-shadow: var(--a-shadow-sm); }
.a-hc__browser .a-hp-search { max-width: 560px; }
.a-hc__browser .a-hp-group__h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-muted); }
.a-hc__browser .a-hp-item summary { font-size: 16px; }
.a-hc__browser .a-hp-item__a { font-size: 15.5px; max-width: 70ch; }
.a-hc__contact { padding: 22px; border-radius: var(--a-radius, 20px); background: var(--hp-ink); color: #fff; }
.a-hc__contact h3 { margin: 0 0 6px; font-size: 19px; color: #fff; }
.a-hc__contact p { margin: 0 0 14px; color: #d8d8de; line-height: 1.55; }
.a-hc__contact .a-hp-btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.a-hc__contact .a-hp-btn--ghost:hover { border-color: #ffb066; color: #ffb066; }
.a-hc__contact .a-hp-btn--primary { background: #fff; color: var(--hp-ink); }
.a-hc__contact .a-hp-btn--primary:hover { background: #ffe9d4; }
.a-hc__contact .a-hp-hours { color: #c3c3cb; }
.a-hc--account .a-hc__browser { padding: 18px; }

/* ------------------------------------------------------------------ 6. „Ce urmează?” după comandă */
.a-hp-ty { margin: 28px 0; padding: 22px; border: 1px solid var(--a-orange-line, #f6dcc3); border-radius: var(--a-radius, 20px); background: var(--a-bg, #fffaf5); }
.a-hp-ty h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; color: var(--hp-ink); }
.a-hp-ty__more { margin: 16px 0 0; font-size: 14.5px; color: var(--hp-muted); }
.a-hp-ty__more a { color: var(--hp-link); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ 7. Ecrane mici: foaie care urcă din partea de jos */
@media (max-width: 640px) {
  .a-hp__panel, .a-hp--left .a-hp__panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: min(90vh, 760px); height: min(90dvh, 760px); border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(23, 23, 26, .28); transform: translateY(36px); }
  .a-hp__head { padding: 16px 16px 14px; border-radius: 22px 22px 0 0; }
  .a-hp__body { padding: 16px 16px 6px; }
  .a-hp__foot { padding-left: 16px; padding-right: 16px; }
  .a-hp-btn { flex: 1 1 100%; justify-content: center; }
  .a-hp-contact--compact .a-hp-btn { flex: 1 1 calc(50% - 6px); }
  .a-hp-next { margin-bottom: 18px; padding: 14px; }
  .a-hp-next .a-hp-steps li:nth-child(n+3) { display: none; } /* pe telefon, primii doi pași: răspunsurile rămân la vedere */
  .a-hc__browser, .a-hc__contact { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .a-hp__backdrop, .a-hp__panel, .a-hp-item summary i, .a-hc__quick a { transition: none; }
  .a-hp__panel, .a-hp--left .a-hp__panel { transform: none; }
}
@media print {
  .allma-help-fab, .a-hp { display: none !important; }
}
