#hd_pop.mazak-popups {
  position:fixed; inset:0; z-index:100000; margin:0; padding:16px;
  display:flex; align-items:center; justify-content:center; box-sizing:border-box;
  background:rgba(12,18,25,.64);
}
body.mazak-popup-open { overflow:hidden; }
.mazak-popups>.sound_only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.mazak-popups .hd_pops {
  position:relative; left:auto !important; top:auto !important; transform:none !important;
  display:flex; flex-direction:column; box-sizing:border-box; width:max-content;
  max-width:min(100%, 520px); max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px);
  overflow:hidden; background:#fff; color:#171b20; border:0; border-radius:14px;
  box-shadow:0 18px 48px rgba(0,0,0,.24);
}
.mazak-popups .mazak-popup-title { flex:none; margin:0; padding:20px 24px 16px; border-bottom:1px solid #e5e7eb; font-size:18px; font-weight:700; line-height:1.5; word-break:keep-all; overflow-wrap:anywhere; }
.mazak-popups .hd_pops_con { box-sizing:border-box; max-width:100%; min-height:0; overflow:auto; padding:20px 24px; }
.mazak-popups .hd_pops_con p { color:inherit; }
.mazak-popups .hd_pops_con img { max-width:100%; height:auto; }
.mazak-popups .hd_pops_footer { flex:none; display:flex; gap:8px; padding:16px 20px 20px; border-top:1px solid #e5e7eb; background:#fff; }
#hd_pop.mazak-popups .hd_pops_footer button { min-height:48px; margin:0; padding:10px 14px; border-radius:8px; font:inherit; line-height:1.4; font-size:14px; font-weight:600; text-align:center; cursor:pointer; }
#hd_pop.mazak-popups .hd_pops_footer .hd_pops_reject { flex:1; border:1px solid #e1e4e8; background:#f5f6f7; color:#42474e; }
#hd_pop.mazak-popups .hd_pops_footer .hd_pops_close { min-width:100px; border:1px solid #e84b0b; background:#e84b0b; color:#fff; }
#hd_pop.mazak-popups .hd_pops_footer .hd_pops_reject:hover { background:#eceef0; }
#hd_pop.mazak-popups .hd_pops_footer .hd_pops_close:hover { background:#c83e06; }
.mazak-popups button:focus-visible,.mazak-popups a:focus-visible { outline:2px solid #e84b0b; outline-offset:-3px; }
@media (max-width:600px) {
  .mazak-popups .hd_pops { width:100%; max-width:420px; }
  .mazak-popups .mazak-popup-title { padding:20px 20px 16px; }
  .mazak-popups .hd_pops_con { width:100% !important; padding:20px; }
  .mazak-popups .hd_pops_footer { flex-direction:row; padding:12px 16px 16px; }
  #hd_pop.mazak-popups .hd_pops_footer button { width:auto; min-width:0; padding:10px 8px; font-size:13px; word-break:keep-all; }
  #hd_pop.mazak-popups .hd_pops_footer .hd_pops_close { flex:0 0 80px; min-width:80px; }
}
.mazak-popups .mazak-popup-title:focus { outline:none; }
.mazak-popups .hd_pops[hidden], .mazak-popup-navigation[hidden] { display:none; }
.mazak-popups .mazak-popup-news { flex:none; display:block; margin:0 20px 12px; padding:10px 4px; min-height:44px; box-sizing:border-box; color:#b53800; font-weight:600; text-align:center; }
.mazak-popups .mazak-popup-news:hover { text-decoration:underline; }
.mazak-popup-navigation { flex:none; display:flex; align-items:center; justify-content:center; gap:12px; padding:0 16px 8px; }
.mazak-popup-navigation button { width:44px; height:44px; padding:0; border:1px solid #e1e4e8; border-radius:8px; background:#f5f6f7; color:#42474e; font-size:24px; line-height:1; cursor:pointer; }
.mazak-popup-navigation button:hover { background:#eceef0; }
.mazak-popup-counter { min-width:64px; text-align:center; font-size:14px; font-variant-numeric:tabular-nums; color:#42474e; }
.mazak-popups .hd_pops_con { touch-action:pan-y pinch-zoom; }
.mazak-popups .hd_pops.is-active { animation:mazak-popup-arrive .18s ease-out; }
@keyframes mazak-popup-arrive { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:translateX(0); } }
@media(prefers-reduced-motion:reduce) { .mazak-popups .hd_pops.is-active { animation:none; } }
