/* Покупка размещений: отдельный компонент без старых стилей подтверждения. */
html body .modal-dialog:has(.placement-purchase){width:min(580px,calc(100vw - 32px));max-width:580px}
html body .modal-content:has(.placement-purchase){border:1px solid var(--dialog-close-line);border-radius:20px;background:var(--pp-surface,#fff);overflow:hidden}
body.nh-dark{--pp-surface:#1c303a;--pp-ink:#e0e9e8;--pp-muted:#9fb1b5;--pp-soft:#253b44;--pp-sand:#494631;--pp-sand-ink:#e7d69e}
html body #dialog_modal_body.placement-purchase{padding:28px;text-align:left;color:var(--pp-ink,#253c46);font:14px/1.6 Helvetica,Arial,sans-serif;background:var(--pp-surface,#fff)}
.pp-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.pp-eyebrow{font-size:11px;letter-spacing:1px;color:var(--pp-muted,#7b898d)}
html body .placement-purchase h2{font:600 25px/1.25 Helvetica,Arial,sans-serif;color:inherit;margin:6px 0 0}
.pp-intro{margin:18px 0;color:var(--pp-muted,#7b898d)}.pp-balance{display:flex;justify-content:space-between;background:var(--pp-soft,#f5f6f2);padding:12px 16px;border-radius:10px;margin-bottom:24px}.pp-label{display:block;margin-bottom:10px;font-weight:600}
.pp-presets{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.placement-purchase button{cursor:pointer;font:inherit;box-shadow:none}
html body .pp-presets button,html body .pp-quantity button{border:1px solid var(--dialog-close-line);background:var(--pp-surface,#fff);color:inherit;border-radius:10px;padding:10px}
html body .pp-presets button[aria-pressed=true]{background:var(--pp-sand,#f4eedc);border-color:#b9a16c;color:var(--pp-sand-ink,#64542d)}
html body .pp-presets button:hover,html body .pp-quantity button:enabled:hover{background:var(--pp-soft,#e2e6df)}
.pp-quantity{display:flex;gap:8px;align-items:center;margin:14px 0 24px}.pp-quantity span{font-size:12px;color:var(--pp-muted,#7b898d);margin-left:4px}.pp-quantity button{width:40px;flex-shrink:0}
html body .pp-quantity input{width:84px;min-width:0;height:44px;box-sizing:border-box;text-align:center;border:1px solid var(--dialog-close-line);border-radius:10px;background:var(--pp-soft,#f5f6f2);color:inherit;font:16px Helvetica,Arial,sans-serif;padding:8px;appearance:textfield}.pp-quantity input::-webkit-inner-spin-button{appearance:none}
.pp-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px;background:var(--pp-soft,#f5f6f2);border-radius:14px}.pp-total{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0}.pp-total strong{font-size:30px;line-height:1.3}.pp-total del{color:var(--pp-muted,#7b898d);font-size:16px}.pp-summary small{color:var(--pp-muted,#7b898d)}.pp-discount{padding:4px 8px;border-radius:7px;font-size:12px;white-space:nowrap;background:var(--pp-sand,#f4eedc);color:var(--pp-sand-ink,#64542d)}.pp-note{font-size:12px;color:var(--pp-muted,#7b898d);margin:12px 0}
.pp-footer{margin-top:24px}html body .placement-purchase .pp-pay{width:100%;border:0;border-radius:10px;padding:14px 18px;background:#203641;color:#fff;font-weight:600;transition:background .18s}html body .placement-purchase .pp-pay:enabled:hover{background:#304d5a;color:#fff}html body .placement-purchase button:disabled{opacity:.55;cursor:not-allowed}.pp-footer p{font-size:12px;color:var(--pp-muted,#7b898d);margin:12px 0 0}.pp-footer a{color:inherit;text-decoration:underline}.pp-error{color:#bb625a;font-size:13px}.placement-purchase [hidden]{display:none!important}
@media(max-width:600px){html body #dialog_modal_body.placement-purchase{padding:20px}html body .placement-purchase h2{font-size:22px}.pp-summary{padding:16px}.pp-quantity span{max-width:130px}}
