/* Henry Bonnar — главная, квиз, мессенджеры. Цвета из темы (--bg, --surface, --ink, --muted, --line, --accent). */

/* Тема прячет свою кнопку чата: заменена на .hbm */
#hb-fab{display:none!important}

/* ---------- Плавающие кнопки (как на Тильде) ---------- */
.hbm{position:fixed;right:18px;bottom:18px;z-index:9990;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:var(--f-body,system-ui,sans-serif)}
.hbm button{border:0;cursor:pointer;border-radius:50%;width:56px;height:56px;display:grid;place-items:center;color:#fff;box-shadow:0 6px 20px rgba(0,0,0,.22);transition:transform .15s ease}
.hbm button:hover{transform:scale(1.06)}
.hbm button:focus-visible,.hbm-menu a:focus-visible{outline:3px solid #fff;outline-offset:2px}
.hbm svg{width:26px;height:26px}
.hbm-cb{background:#2E8A69;animation:hbm-pulse 2.4s ease-out infinite}
.hbm-main{background:#F08A2C}
.hbm-main .c{display:none}
.hbm.open .hbm-main .o{display:none}
.hbm.open .hbm-main .c{display:block}
@keyframes hbm-pulse{0%{box-shadow:0 0 0 0 rgba(46,138,105,.55),0 6px 20px rgba(0,0,0,.22)}70%{box-shadow:0 0 0 16px rgba(46,138,105,0),0 6px 20px rgba(0,0,0,.22)}100%{box-shadow:0 0 0 0 rgba(46,138,105,0),0 6px 20px rgba(0,0,0,.22)}}
@media (prefers-reduced-motion:reduce){.hbm-cb{animation:none}}
.hbm-menu{display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.hbm-menu[hidden]{display:none}
.hbm-menu a{display:flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;background:#fff;color:#1d1d1f;border-radius:999px;text-decoration:none;font-weight:600;font-size:15px;box-shadow:0 4px 16px rgba(0,0,0,.16);animation:hbm-in .18s ease both}
.hbm-menu a:nth-child(2){animation-delay:.03s}.hbm-menu a:nth-child(3){animation-delay:.06s}
@keyframes hbm-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hbm-menu .i{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:#fff}
.hbm-menu .i svg{width:20px;height:20px}
.hbm-menu .wa{background:#25D366}.hbm-menu .tg{background:#2AABEE}.hbm-menu .ph{background:#2E8A69}
@media (max-width:600px){.hbm{right:14px;bottom:14px}.hbm button{width:52px;height:52px}}

/* ---------- Блок «Почему Henry Bonnar» ---------- */
.hbf-why .wrap{padding-block:56px}
.hbf-why h2{font:var(--h2);margin:0}
.hbf-why .sub{color:var(--muted);margin:10px 0 0;max-width:60ch}
.hbf-why ul{list-style:none;margin:28px 0 0;padding:0;display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
.hbf-why li{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-s,14px);padding:18px 18px 20px;display:grid;gap:6px}
.hbf-why li .ic{font-size:28px;line-height:1}
.hbf-why li b{color:var(--ink);font-size:16px}
.hbf-why li span:last-child{color:var(--muted);font-size:14px}
.hbf-why .cta{margin-top:24px}

/* ---------- Квиз ---------- */
.hbq{border:0;padding:0;background:transparent;max-width:none;max-height:none;width:100%;height:100%;margin:0;color:var(--ink,#222);font-family:var(--f-body,system-ui,sans-serif)}
.hbq[open]{display:grid;place-items:center}
.hbq::backdrop{background:rgba(15,10,12,.62);backdrop-filter:blur(3px)}
.hbq-box{position:relative;width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;background:var(--bg,#fff);border:1px solid var(--line,#eee);border-radius:22px;padding:26px 24px 20px;box-shadow:0 30px 80px rgba(0,0,0,.35);animation:hbq-in .22s ease both}
@keyframes hbq-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.hbq-x{position:absolute;top:12px;right:12px;width:36px;height:36px;border-radius:50%;border:1px solid var(--line,#ddd);background:var(--surface,#fafafa);color:var(--ink,#222);font-size:22px;line-height:1;cursor:pointer}
.hbq-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-right:44px;font-size:13px}
.hbq-gift{background:color-mix(in srgb,var(--accent,#E0577A) 14%,transparent);color:var(--accent,#E0577A);padding:5px 10px;border-radius:999px;font-weight:700}
.hbq-n{color:var(--muted,#888)}
.hbq-bar{height:6px;border-radius:6px;background:var(--line,#eee);margin:14px 0 18px;overflow:hidden}
.hbq-bar i{display:block;height:100%;background:var(--accent,#E0577A);border-radius:6px;transition:width .3s ease}
.hbq-q{font-family:var(--f-disp,var(--f-body));font-size:clamp(24px,5vw,30px);line-height:1.15;margin:0 0 16px;color:var(--ink)}
.hbq-opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hbq-opt{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:14px;border:1.5px solid var(--line,#e5e5e5);background:var(--surface,#fff);color:var(--ink,#222);font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:border-color .15s,transform .15s,background .15s;min-height:64px}
.hbq-opt:hover{border-color:var(--accent,#E0577A);transform:translateY(-1px)}
.hbq-opt.on{border-color:var(--accent,#E0577A);background:color-mix(in srgb,var(--accent,#E0577A) 12%,var(--surface,#fff))}
.hbq-opt .e{font-size:26px;line-height:1;flex:none;width:34px;text-align:center}
@media (max-width:420px){.hbq-opts{grid-template-columns:minmax(0,1fr)}.hbq-opt{min-height:54px}}
.hbq-nav{display:flex;justify-content:space-between;margin-top:14px;min-height:20px}
.hbq-back{background:none;border:0;color:var(--muted,#888);font:inherit;cursor:pointer;padding:4px 0}
.hbq-final{text-align:center}
.hbq-badge{display:inline-grid;place-items:center;width:76px;height:76px;border-radius:50%;background:var(--accent,#E0577A);color:#fff;font-size:24px;font-weight:800;margin:4px auto 12px;box-shadow:0 10px 28px color-mix(in srgb,var(--accent,#E0577A) 45%,transparent)}
.hbq-sub{color:var(--muted,#777);margin:0 0 16px}
.hbq-form{display:grid;gap:10px;text-align:left}
.hbq-form input{font:inherit;font-size:16px;padding:14px 16px;border-radius:12px;border:1.5px solid var(--line,#ddd);background:var(--field,#fff);color:var(--ink,#222)}
.hbq-form input:focus{outline:none;border-color:var(--accent,#E0577A)}
.hbq-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.hbq-err{color:#d33;margin:0;font-size:14px}
.hbq-go{display:block;width:100%;text-align:center;border:0;border-radius:999px;padding:15px 18px;background:var(--accent,#E0577A);color:var(--on-accent,#fff);font:inherit;font-weight:700;font-size:16px;cursor:pointer;text-decoration:none}
.hbq-go:disabled{opacity:.7}
.hbq-skip,.lnk{background:none;border:0;color:var(--muted,#888);font:inherit;font-size:14px;cursor:pointer;text-decoration:underline;padding:4px}
.lnk{color:var(--accent,#E0577A);padding:0}
.hbq-legal{font-size:12px;color:var(--muted,#999);margin:2px 0 0;text-align:center}
.hbq-legal a{color:inherit}
.hbq-load{padding:48px 0;text-align:center;color:var(--muted,#888)}
.hbq-ok{display:grid;gap:4px;background:color-mix(in srgb,#2E8A69 14%,transparent);border-radius:14px;padding:14px 16px;margin:4px 44px 16px 0}
.hbq-ok.soft{background:var(--surface,#f6f6f6)}
.hbq-ok span{color:var(--muted,#666);font-size:14px}
.hbq-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media (max-width:480px){.hbq-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hbq-card{display:grid;gap:4px;text-decoration:none;color:var(--ink,#222)}
.hbq-card img,.hbq-card .ph{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px;background:var(--surface,#eee)}
.hbq-card .nm{font-size:13px;line-height:1.25;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hbq-card .pr{font-size:13px;color:var(--accent,#E0577A);font-weight:700}
.hbq-actions{display:grid;gap:8px;margin-top:16px}
.hbq-alt{text-align:center;color:var(--ink,#222);font-weight:600;padding:10px}

/* Перебиваем стили кнопок и ссылок темы внутри квиза */
#hbq button{box-shadow:none;text-transform:none;letter-spacing:0;min-width:0}
#hbq .hbq-x{background:var(--surface,#f4f4f4)!important;color:var(--ink,#222)!important;border:1px solid var(--line,#ddd)!important;width:36px!important;height:36px!important;padding:0!important;border-radius:50%!important;font-size:22px!important;display:grid;place-items:center}
#hbq .hbq-opt,#hbq .hbq-opt:hover,#hbq .hbq-opt:focus{background:var(--surface,#fff);color:var(--ink,#222);border:1.5px solid var(--line,#e5e5e5);border-radius:14px;padding:14px}
#hbq .hbq-opt:hover{border-color:var(--accent,#E0577A)}
#hbq .hbq-opt.on{border-color:var(--accent,#E0577A);background:color-mix(in srgb,var(--accent,#E0577A) 14%,var(--surface,#fff))}
#hbq .hbq-back,#hbq .hbq-back:hover,#hbq .hbq-skip,#hbq .hbq-skip:hover{background:none!important;border:0!important;color:var(--muted,#888)!important;padding:4px!important}
#hbq .lnk,#hbq .lnk:hover{background:none!important;border:0!important;color:var(--accent,#E0577A)!important;padding:0!important}
#hbq .hbq-go,#hbq .hbq-go:hover{background:var(--accent,#E0577A)!important;color:var(--on-accent,#fff)!important;border:0!important;border-radius:999px!important}
#hbq .hbq-card,#hbq .hbq-card:hover{color:var(--ink,#222)!important;text-decoration:none!important}
#hbq .hbq-card .nm{color:var(--ink,#222)}
#hbq .hbq-alt{color:var(--ink,#222)!important}
.hbm button.hbm-cb{background:#2E8A69!important}
.hbm button.hbm-main{background:#F08A2C!important}
.hbm button{padding:0!important;border:0!important}

/* ---------- Мобильная версия (правки 11.11) ---------- */
/* Кнопки не перекрывают нижнее меню темы (.tabbar, до 900px) */
@media (max-width:899px){
	.hbm{bottom:calc(76px + env(safe-area-inset-bottom,0px))}
}
/* Суммы в корзине и оформлении не переносятся по цифрам */
.woocommerce table.shop_table .amount,.woocommerce table.shop_table td.product-total,.woocommerce table.shop_table td:last-child{white-space:nowrap}
/* Код приглашения: обычное поле темы, над блоком «Ваш заказ» */
.hbl-ref-code{margin:0 0 18px}
.hbl-ref-code label{display:block;font-size:14px;color:var(--muted);margin-bottom:6px}
.hbl-ref-code input{width:100%;box-sizing:border-box;font:inherit;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--field);color:var(--ink)}
/* Меню личного кабинета */
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0 0 20px;padding:0;display:flex;flex-direction:column;gap:6px}
.woocommerce-MyAccount-navigation li{margin:0;border:0!important}
.woocommerce-MyAccount-navigation li a{display:block;padding:10px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);color:var(--ink)!important;text-decoration:none;font-weight:600;font-size:14px}
.woocommerce-MyAccount-navigation li.is-active a,.woocommerce-MyAccount-navigation li a:hover{background:var(--accent);border-color:var(--accent);color:var(--on-accent,#fff)!important}
@media (max-width:767px){
	.woocommerce-MyAccount-navigation{width:100%!important;float:none!important}
	.woocommerce-MyAccount-navigation ul{flex-direction:row;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:4px}
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar{display:none}
	.woocommerce-MyAccount-navigation li a{white-space:nowrap;padding:9px 14px}
	.woocommerce-MyAccount-content{width:100%!important;float:none!important}
}
.hbl-ref-code input,.woocommerce form .hbl-ref-code input.input-text{background:var(--field)!important;color:var(--ink)!important;border:1px solid var(--line)!important;border-radius:12px!important}
/* Кнопка «наверх» Astra мешает плавающим кнопкам и нижнему меню */
#ast-scroll-top{display:none!important}
#hbq .hbq-bill{display:block;width:min(240px,70%);height:auto;margin:2px auto 14px;filter:drop-shadow(0 10px 22px rgba(46,138,105,.35));transform:rotate(-4deg);animation:hbq-bill .5s ease both}
@keyframes hbq-bill{from{opacity:0;transform:rotate(-12deg) scale(.85)}to{opacity:1;transform:rotate(-4deg)}}
@media (prefers-reduced-motion:reduce){#hbq .hbq-bill{animation:none}}
#hbq .hbq-billimg{position:relative;width:min(280px,78%);margin:4px auto 16px;transform:rotate(-4deg);animation:hbq-bill .5s ease both}
#hbq .hbq-billimg img{display:block;width:100%;height:auto;border-radius:6px;box-shadow:0 12px 28px rgba(0,0,0,.35)}
#hbq .hbq-billimg span{position:absolute;right:-12px;top:-14px;width:44px;height:44px;border-radius:50%;background:var(--accent,#E0577A);display:grid;place-items:center;font-size:22px;box-shadow:0 6px 16px rgba(0,0,0,.3);transform:rotate(8deg)}
@media (prefers-reduced-motion:reduce){#hbq .hbq-billimg{animation:none}}
