/* Розовый Zorro — «Купить в 1 клик» (03.11, владелец): окно с «Имя» и «Телефон». Откат — удалить файл и его строку в head_scripts.post.tpl.
   📱 (≤767): нижний лист темы (ручка уже есть) + ✕ сверху, без нижнего шеврона. 🖥 (≥768): окно по центру, ✕, кнопка «Купить в 1 клик» вместо строки «Телефон — перезвоним». */
.pz1c-err{margin:6px 0 0;font:400 16px/1.3 var(--rz-font,system-ui,sans-serif);color:#C0152F}
.pz1c-err[hidden]{display:none}
html body .ui-dialog.pz1c .pz-1c-phone.pz1c-bad{border-color:#C0152F!important}
.pz1c-ok{display:flex;flex-direction:column;align-items:center;text-align:center;padding:24px 8px 8px;gap:8px}
.pz1c-ok__i{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:32px;background:#F058A8}
.pz1c-ok__i svg{width:34px;height:34px;fill:#fff}
.pz1c-ok__t{font:700 22px/1.25 var(--rz-font,system-ui,sans-serif);color:#1D1D1F;margin-top:8px}
.pz1c-ok__s{margin:0 0 12px;font:400 16px/1.4 var(--rz-font,system-ui,sans-serif);color:#545458}
.pz1c-ok__b{min-height:48px;min-width:200px;border-radius:24px!important;background:#F058A8!important;color:#fff!important;font:700 16px/1.2 var(--rz-font,system-ui,sans-serif)!important;border:0!important;padding:0 24px!important;cursor:pointer}
/* поле согласия и тост «заявка принята» */
html.pz1c-done .cm-notification-content,html.pz1c-done .pzu-toast{display:none!important}
html body .ui-dialog.pz1c .pz-1c-send{width:100%;min-height:52px;background:#F058A8!important;color:#fff!important;font-weight:700!important}
html body .ui-dialog.pz1c .ty-cr-product-info-container{display:flex;align-items:center;gap:12px;margin:0 0 12px}
html body .ui-dialog.pz1c input.ty-input-text-full{min-height:48px;box-sizing:border-box;font-size:16px!important}

@media (max-width:767px){
  html:not(.rz-off) body .ui-dialog.pz1c .ui-dialog-titlebar-close{display:block!important}
  html:not(.rz-off) body .ui-dialog.pz1c .pzt-foot,html:not(.rz-off) body .ui-dialog.pz1c .pzt-fx{display:none!important}
  /* 04.11 (общий тестировщик №16): фото слева 64 px, название справа ≤2 строк 17/700 — без пустоты над фото и без 4 строк крупного названия */
  html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-container{display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;align-items:center!important;gap:12px!important;height:auto!important;min-height:0!important;margin:0 0 16px!important;padding:0!important;text-align:left!important}
  html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-container::before,html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-container::after{display:none!important}
  html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-image{flex:none!important;float:none!important;width:64px!important;height:64px!important;min-height:0!important;margin:0!important;padding:0!important;display:flex!important;align-items:center;justify-content:center}
  html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-image img{max-width:64px!important;max-height:64px!important;width:auto!important;height:auto!important;object-fit:contain}
  html:not(.rz-off) body .ui-dialog.pz1c .ty-cr-product-info-header{flex:1 1 0!important;min-width:0!important;float:none!important;width:auto!important;margin:0!important;padding:0!important}
  html:not(.rz-off) body .ui-dialog.pz1c .ty-product-block-title{margin:0!important;padding:0!important;font:700 17px/1.3 var(--rz-font,system-ui,sans-serif)!important;color:#1D1D1F!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden!important;text-align:left!important}
}
@media (min-width:768px){
  /* окно по центру */
  html body .ui-dialog.pz1c.ui-widget{position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%);width:480px!important;max-width:calc(100vw - 32px);max-height:calc(100vh - 48px);overflow:auto;box-sizing:border-box;padding:0;border:0!important;border-radius:20px;background:#fff;box-shadow:0 24px 64px rgba(29,29,31,.28)}
  html body .ui-dialog.pz1c .ui-dialog-titlebar{position:relative;display:flex;align-items:center;min-height:64px;padding:16px 72px 8px 24px!important;background:#fff!important;border:0!important;border-radius:20px 20px 0 0}
  html body .ui-dialog.pz1c .ui-dialog-title{float:none!important;width:auto!important;margin:0!important;font:700 22px/1.25 var(--rz-font,system-ui,sans-serif)!important;color:#1D1D1F!important;text-transform:none!important}
  html body .ui-dialog.pz1c .ui-dialog-titlebar-close{position:absolute!important;top:10px!important;right:12px!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;border-radius:22px!important;background:rgba(120,120,128,.14)!important;cursor:pointer;display:block!important}
  html body .ui-dialog.pz1c .ui-dialog-titlebar-close .ui-icon{background:none!important;text-indent:0!important;position:absolute;left:0;top:0;width:44px;height:44px;margin:0!important;font-size:0!important;overflow:hidden}
  html body .ui-dialog.pz1c .ui-dialog-titlebar-close .ui-icon::before,html body .ui-dialog.pz1c .ui-dialog-titlebar-close .ui-icon::after{content:"";position:absolute;left:14px;top:21px;width:16px;height:2px;border-radius:1px;background:#1D1D1F;transform:rotate(45deg)}
  html body .ui-dialog.pz1c .ui-dialog-titlebar-close .ui-icon::after{transform:rotate(-45deg)}
  html body .ui-dialog.pz1c .ui-dialog-content{padding:8px 24px 24px!important;height:auto!important;max-height:none!important;overflow:visible!important}
  html body .ui-dialog.pz1c .object-container{height:auto!important;overflow:visible!important;padding:0!important}
  html body .ui-dialog.pz1c .ui-dialog-titlebar{min-height:56px!important;padding-bottom:0!important}
  html body .ui-dialog.pz1c .ui-dialog-content{padding-top:0!important}
  html body .ui-dialog.pz1c .buttons-container{position:static!important}
  html body .ui-dialog.pz1c .ty-cr-product-info-container{height:auto!important}
  html body .ui-dialog.pz1c .ty-cr-product-info-image{height:auto!important;min-height:0!important;margin:0!important;float:none!important;flex:none}
  html body .ui-dialog.pz1c .ty-cr-product-info-header{float:none!important;margin:0!important;padding:0!important;flex:1 1 auto;min-width:0}
  html body .ui-dialog.pz1c .ty-control-group{margin:0 0 14px}
  html body .ui-dialog.pz1c .ty-control-group__title{display:block;padding:0 0 6px;font:600 16px/1.3 var(--rz-font,system-ui,sans-serif);color:#1D1D1F;text-transform:none}
  html body .ui-dialog.pz1c input.ty-input-text-full{border:1.5px solid rgba(60,60,67,.24);border-radius:12px;padding:0 14px;background:#fff}
  html body .ui-dialog.pz1c input.ty-input-text-full:focus{border-color:#F058A8;outline:3px solid rgba(240,88,168,.2)}
  html body .ui-dialog.pz1c .ty-cr-product-info-image img{max-height:72px;width:auto}
  html body .ui-dialog.pz1c .ty-product-block-title{margin:0;font:700 16px/1.3 var(--rz-font,system-ui,sans-serif);color:#1D1D1F}
  html body .ui-dialog.pz1c .ty-lable-subscribe-policy__wrapper,html body .ui-dialog.pz1c .ty-lable-subscribe-policy__wrapper label,html body .ui-dialog.pz1c .pzpd__t{font-size:16px!important;line-height:1.4}
  html body .ui-dialog.pz1c .buttons-container{margin:8px 0 0;padding:0;background:none;border:0}
  html body .ui-dialog.pz1c .pz-1c-send{border-radius:26px!important}
  /* карточка товара 🖥: вместо строки «Телефон — перезвоним» — кнопка «Купить в 1 клик» (открывает это окно) */
  html:not(.pzd-off) body .pzdp .pzdp-buy .pz-qo-wrap,html:not(.pzd-off) body .pzdp .pzdp-buy .ab__qobp_content{display:none!important}
  html:not(.pzd-off) body .pzdp .pzdp-buy a.ty-cr-product-button[id^=opener_buy_now_with_one_click_]{display:flex!important;order:4;flex:0 0 100%;align-items:center;justify-content:center;width:100%;min-height:52px;box-sizing:border-box;margin:0!important;padding:0 16px!important;border:0!important;border-radius:14px!important;background:#FDE6F1!important;color:#B01468!important;font:700 16px/1 var(--rz-font,system-ui,sans-serif)!important;text-decoration:none}
  html:not(.pzd-off) body .pzdp .pzdp-buy a.ty-cr-product-button[id^=opener_buy_now_with_one_click_] .ty-icon{display:none!important}
}
