html:has(.check-modal[open]) { overflow: hidden; }
dialog.check-modal {
  box-sizing: border-box;
  width: min(520px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 100px #0a263440;
  color: #202027;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}
.check-modal::backdrop { background: rgb(13 10 24 / 65%); backdrop-filter: blur(4px); }
.check-modal [hidden] { display: none !important; }
.check-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f1f5;
  color: #6c6879;
}
.check-modal__close svg { display: block; width: 14px; height: 14px; }
.check-modal__eyebrow { margin: 0 32px 16px 0; color: #49bdf7; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.check-modal__title { margin: 0; font: 700 27px/1.4 "Paperlogy", sans-serif; letter-spacing: -.045em; }
.check-modal__description { margin-top: 10px; color: #85828d; font-size: 14px; }
.check-modal .checker { margin-top: 28px; }
.check-modal .eyebrow { display: flex; justify-content: space-between; color: #8d8998; font-size: 11px; font-weight: 600; }
.check-modal [data-step-label] { color: #49bdf7; }
.check-modal progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 4px;
  margin: 12px 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #edf1f3;
}
.check-modal progress::-webkit-progress-bar { background: #edf1f3; }
.check-modal progress::-webkit-progress-value { background: #49bdf7; border-radius: 999px; transition: width .2s; }
.check-modal progress::-moz-progress-bar { background: #49bdf7; }
.check-modal fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.check-modal legend { margin-bottom: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.04em; }
.check-modal .choices { display: flex; flex-wrap: wrap; gap: 10px; }
.check-modal .choices label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid #d9e0e3;
  border-radius: 999px;
  color: #787480;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.check-modal .choices input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.check-modal .choices label:has(:checked) { border-color: #49bdf7; background: #49bdf7; color: #fff; }
.check-modal .choices label:has(:focus-visible),
.check-modal :is(button, a, input[type="number"]):focus-visible { outline: 3px solid #a0d9f4; outline-offset: 3px; }
.check-modal fieldset > label { display: block; margin-bottom: 18px; color: #77727f; font-size: 14px; }
.check-modal input[type="number"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f4f4f7;
  color: #21282b;
  font: inherit;
  font-size: 16px;
}
.check-modal .actions { display: flex; gap: 10px; margin-top: 32px; }
.check-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: #49bdf7;
  color: white;
  font-size: 15px;
  font-weight: 700;
}
.check-modal .check-next { flex: 1; }
.check-modal .btn.light { background: #eff4f6; color: #6e657e; }
.check-modal .btn:hover { background: #269fdc; color: white; }
.check-modal .checker-result h3 { font-size: 23px; font-weight: 700; line-height: 1.4; }
.check-modal .checker-result p { margin-top: 18px; color: #49bdf7; font-size: 18px; font-weight: 600; }
.check-modal .checker-result small { display: block; margin: 16px 0 24px; color: #87808f; font-size: 12px; }
.check-modal .checker-result a { display: flex; }
dialog.process-modal { width: min(640px, calc(100% - 32px)); }
.installation-guide .ip-process a[aria-controls="installation-process"],
.installation-guide .ip-process a[aria-controls="installation-process"] > span { font-size: 18px; font-weight: 400; }
.process-modal .check-modal__title { letter-spacing: -1px; line-height: 1.25; }
.process-modal .check-modal__description { margin-top: 5px; line-height: 1.4; }
.process-modal__steps { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 10px; }
.process-modal__steps li { display: grid; grid-template-columns: 25px 28px minmax(0,1fr); align-items: start; gap: 10px; padding: 14px; border: 1px solid #e0e9ee; border-radius: 16px; background: #f8fbfc; }
.process-modal__steps li > svg { width: 25px; height: 25px; fill: none; stroke: #2883ac; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.process-modal__steps li > span { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #e7f1f6; color: #49bdf7; font: 700 13px/1 "Paperlogy", sans-serif; }
.process-modal__steps li > span { width: 28px; height: 28px; }
.process-modal__steps h3 { margin: 0 0 3px; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -1px; }
.process-modal__steps p { margin: 0; color: #635f69; font-size: 14px; line-height: 1.4; }
.process-modal > .btn { width: 100%; }
.charging-product { position: relative; }
.charging-product__photo { position: relative; }
.charging-product__details { position: absolute; bottom: 24px; right: 24px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; padding: 9px 22px; border: 1px solid #d5e0e5; border-radius: 999px; background: #fff; color: #49bdf7; font: inherit; font-size: 14px; line-height: 1.4; font-weight: 600; cursor: pointer; }
.charging-product__details:hover { background: #eff6fa; border-color: #49bdf7; }
.charging-product__details:focus-visible { outline: 2px solid #49bdf7; outline-offset: 4px; }
dialog.product-modal { width: min(920px, calc(100% - 32px)); }
.product-modal__features { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 12px; margin-top: 22px; }
.product-modal__features section { padding: 16px; background: #f3f8fb; border-radius: 12px; }
.product-modal__features h3 { margin-bottom: 10px; font-size: 17px; color: #1b566f; }
.product-modal__features ul { list-style: disc; padding-left: 17px; font-size: 14px; line-height: 1.6; }
.product-modal .check-modal__title { padding-right: 16px; overflow-wrap: anywhere; }
.product-modal__body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; margin-top: 26px; align-items: start; }
.product-modal__photo { display: grid; place-items: center; min-height: 360px; padding: 24px; border-radius: 18px; background: #f3f6f8; }
.product-modal__photo img { display: block; width: 100%; height: 340px; object-fit: contain; mix-blend-mode: multiply; }
.product-modal__specs { margin: 0; }
.product-modal__specs > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #e7eef1; font-size: 14px; line-height: 1.5; }
.product-modal__specs dt { color: #79717f; }
.product-modal__specs dd { margin: 0; color: #232a2d; font-weight: 600; }
.product-modal .product-modal__contact { display: flex; gap: 24px; width: fit-content; margin: 26px 0 0 auto; }
@media (max-width: 680px) {
  .product-modal__body { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; }
  .product-modal__photo { min-height: 0; padding: 20px; }
  .product-modal__photo img { height: 210px; }
  .product-modal__specs > div { grid-template-columns: 94px minmax(0, 1fr); font-size: 13px; }
  .product-modal .product-modal__contact { width: 100%; }
}
@media (max-width: 600px) {
  dialog.check-modal { padding: 32px 24px; border-radius: 24px; }
  .check-modal__title { font-size: 24px; }
  .check-modal legend { font-size: 18px; }
  .check-modal .choices label { padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .check-modal .choices label { transition: none; }
  .check-modal progress::-webkit-progress-value { transition: none; }
}
