.credit-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: min(92vh, 900px);
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 30px 100px rgb(0 0 0 / 30%);
}
.credit-dialog::backdrop { background: rgb(4 9 13 / 72%); backdrop-filter: blur(4px); }
.credit-dialog__panel { position: relative; padding: clamp(24px, 5vw, 44px); }
.credit-dialog__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; cursor: pointer; }
.credit-dialog h2 { margin: 0 44px 12px 0; font-family: var(--font-heading); font-size: clamp(28px, 5vw, 38px); font-weight: 400; line-height: 1.15; }
.credit-dialog__vehicle { margin: 0 0 4px; font-size: 17px; }
.credit-dialog__price { margin: 0 0 26px; color: var(--muted); }
.credit-dialog__price strong { color: var(--ink); font-weight: 600; }
.credit-control__heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 15px; }
.credit-control__heading strong { font-weight: 600; text-align: right; }
.credit-calculator input[type="range"] { width: 100%; margin: 0 0 28px; accent-color: var(--blue); cursor: pointer; }
.credit-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 26px; }
.credit-term { position: relative; cursor: pointer; }
.credit-term input { position: absolute; opacity: 0; }
.credit-term span { display: grid; min-height: 45px; place-items: center; border: 1px solid var(--line); border-radius: 2px; }
.credit-term input:checked + span { border-color: var(--blue); color: var(--blue); background: var(--surface-blue); font-weight: 700; }
.credit-term input:focus-visible + span { outline: 3px solid #61a5d2; outline-offset: 2px; }
.credit-result { padding: 22px; background: var(--surface); }
.credit-result__payment { display: block; margin: 3px 0 18px; font-family: var(--font-heading); font-size: clamp(32px, 6vw, 43px); font-weight: 400; line-height: 1.1; }
.credit-result p { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 0; color: var(--muted); }
.credit-result p strong { color: var(--ink); text-align: right; }
.credit-dialog__note { margin: 18px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.credit-dialog__action { width: 100%; }
.credit-contact__back { margin: 0 0 16px; padding: 0; border: 0; color: var(--blue); background: none; cursor: pointer; }
.credit-contact__summary { margin: 0 0 24px; padding: 16px; background: var(--surface); }
.credit-contact__status { min-height: 20px; color: #9c3030; font-size: 13px; }
.credit-success { padding: 24px; color: var(--success); background: var(--surface); font-size: 18px; }
.credit-dialog [hidden] { display: none; }
@media (max-width: 600px) {
  .credit-dialog { width: 100vw; max-width: none; max-height: none; height: 100dvh; margin: 0; border-radius: 0; }
  .credit-dialog__panel { min-height: 100%; padding: 28px 20px 32px; }
  .credit-dialog__price { margin-bottom: 24px; }
  .credit-terms { gap: 5px; }
  .credit-term span { font-size: 12px; }
}
