/* AGENT-20261021-10: «Заказать звонок», «Задать вопрос», «Сообщить о поступлении» — buttons + modal (am-leads.js). Rollback: remove the 2 lines in footer.php */
.am-leads-link{display:inline-block;background:none;border:0;padding:0;margin:8px 0 0;font:inherit;font-size:14px;line-height:1.3;color:#000;text-decoration:underline;text-underline-offset:3px;cursor:pointer;text-transform:none;letter-spacing:0}
.am-leads-link:hover{opacity:.7}
.footer__bottom .am-leads-link{margin:0;font:inherit;color:inherit;text-transform:uppercase;letter-spacing:inherit;text-decoration:none}
.am-leads-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 20px;border:1px solid #000;background:#fff;color:#000;font:inherit;font-size:14px;line-height:1.2;font-weight:500;text-transform:uppercase;letter-spacing:.03em;cursor:pointer;border-radius:0;box-sizing:border-box;transition:background .2s,color .2s}
.am-leads-btn:hover{background:#000;color:#fff}
.am-leads-btn--dark{background:#000;color:#fff}
.am-leads-btn--dark:hover{background:#333}
.am-leads-pp{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 0;width:100%}
.am-leads-pp .am-leads-btn{flex:1 1 180px}
.am-leads-pp__stock{flex-basis:100%!important}
.am-leads-pp__stock[hidden]{display:none!important}
.am-leads-contacts{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:24px auto;padding:0 15px;max-width:1200px;box-sizing:border-box}
.am-leads-ov{position:fixed;inset:0;z-index:2147483000;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;overflow-y:auto}
.am-leads-ov[hidden]{display:none!important}
.am-leads-m{position:relative;background:#fff;color:#000;width:100%;max-width:440px;padding:28px 24px 22px;box-sizing:border-box;font-size:14px;line-height:1.4;text-align:left;max-height:calc(100vh - 32px);overflow-y:auto;font-family:inherit}
.am-leads-m__x{position:absolute;top:8px;right:8px;width:36px;height:36px;border:0;background:none;font-size:26px;line-height:36px;cursor:pointer;color:#000;padding:0}
.am-leads-m__t{margin:0 30px 6px 0;font-size:20px;line-height:1.25;font-weight:600;text-transform:uppercase}
.am-leads-m__sub{margin:0 0 14px;color:#555;font-size:13px}
.am-leads-m__prod{margin:0 0 14px;padding:10px 12px;background:#f5f5f5;font-size:13px}
.am-leads-m label.am-leads-f{display:block;margin:0 0 10px}
.am-leads-f span{display:block;margin:0 0 4px;font-size:12px;color:#555;text-transform:uppercase;letter-spacing:.03em}
.am-leads-f input,.am-leads-f textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #c8c8c8;border-radius:0;padding:10px 12px;font:inherit;font-size:16px;line-height:1.3;color:#000;background:#fff;-webkit-appearance:none;appearance:none}
.am-leads-f textarea{min-height:90px;resize:vertical}
.am-leads-f input:focus,.am-leads-f textarea:focus{outline:none;border-color:#000}
.am-leads-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.am-leads-m .am-pd-consent{display:flex!important;align-items:flex-start;gap:8px;margin:12px 0 8px;font-size:13px;line-height:1.4;color:#555;cursor:pointer}
.am-leads-m .am-pd-consent input{-webkit-appearance:checkbox!important;appearance:auto!important;width:16px;height:16px;min-width:16px;margin:1px 0 0;flex:none}
.am-leads-m .am-pd-consent a{color:inherit;text-decoration:underline}
.am-leads-m__err{color:#e60304;font-size:13px;margin:0 0 10px}
.am-leads-m__err[hidden],.am-leads-m__ok[hidden],.am-leads-m form[hidden]{display:none!important}
.am-leads-m__ok{padding:10px 0 4px;font-size:15px}
.am-leads-m .am-leads-btn{width:100%;margin-top:4px}
.am-leads-m .am-leads-btn[disabled]{opacity:.6;cursor:wait}
.am-leads-m__note{margin:10px 0 0;font-size:11px;color:#8a8a8a}
html.am-leads-lock,html.am-leads-lock body{overflow:hidden}
/* RetailCRM chat (#retailcrm-consultant-app, z-index 10000000) is hidden only while our modal is open */
html.am-leads-lock #retailcrm-consultant-app{visibility:hidden!important}
/* keep the last footer row (Политика конфиденциальности) clear of the floating chat button */
.footer__bottom{padding-bottom:84px!important}
@media (max-width:600px){
  .am-leads-ov{align-items:flex-end;padding:0}
  .am-leads-m{max-width:none;max-height:92vh;padding:24px 16px calc(28px + env(safe-area-inset-bottom))}
  .am-leads-pp .am-leads-btn{flex-basis:100%}
}

/* v4: chat hidden robustly while our modal is open (chat children set visibility:visible themselves) */
html.am-leads-lock #retailcrm-consultant-app, html.am-leads-lock #retailcrm-consultant-app *, body.am-leads-open [id^="retailcrm-consultant"], body.am-leads-open [id^="retailcrm-consultant"] *, html.am-leads-lock .consultant-window, html.am-leads-lock .consultant-window *, html.am-leads-lock iframe[src*="retailcrm"] { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
/* v4: unavailable size chips are clickable (open «Сообщить о поступлении») */
.product-page__form-cards.sizes .product-page__form-card { cursor: pointer; }
.am-leads-f select { width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px; border: 1px solid #c8c8c8; border-radius: 0; background: #fff; font: inherit; font-size: 16px; color: #000; }
.am-leads-f select:focus { outline: none; border-color: #000; }
