/* V180 · One intentional, confirmed restart action for the Quote Tool.
   The stepper is shared by public, reseller, staff and customer quote flows. */
/* V181 · Restart is a navigation utility, not a competing call-to-action.
   Align the icon circle and label exactly with the numbered progress rows. */
.steps .v180-restart-area {
  margin: 0 0 .8rem;
  padding: 0 0 .7rem;
  border-bottom: 1px solid #dce7ee;
}
.steps .v180-restart-trigger {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  width: 100%;
  min-height: 2.55rem;
  padding: .32rem 0;
  border: 0;
  border-radius: 10px;
  color: #4c6880;
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: color .15s ease;
}
.steps .v180-restart-trigger svg {
  box-sizing: border-box;
  display: block;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  padding: .3rem;
  border: 2px solid #d5e2ec;
  border-radius: 50%;
  color: #477998;
  background: #fff;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .15s ease;
}
.steps .v180-restart-trigger:hover,
.steps .v180-restart-trigger:focus-visible { color: #075f98; }
.steps .v180-restart-trigger:hover svg,
.steps .v180-restart-trigger:focus-visible svg {
  border-color: #6abeec;
  color: #075f98;
  background: #eaf6fd;
  transform: rotate(-20deg);
}
.steps .v180-restart-trigger:focus-visible { outline: 3px solid #6abeec; outline-offset: 3px; }
.steps .v180-restart-area[hidden] { display: none !important; }
@media(min-width:861px) {
  nav.steps.v180-restart-visible { position: sticky; top: 1.4rem; align-self: start; }
  nav.steps.v180-restart-visible ol { position: static; }
}
/* Keep the control available on narrow screens where the numbered list is hidden. */
@media(max-width:860px) {
  nav.steps.v180-restart-visible { display: block; }
  nav.steps.v180-restart-visible ol { display: none; }
  nav.steps.v180-restart-visible .v180-restart-area { margin: 0; padding: 0; border: 0; }
  nav.steps.v180-restart-visible .v180-restart-trigger { width: auto; padding: .25rem 0; font-size: .92rem; }
}
/* This dialog must remain distinct from the sign-in and supplier detail modals. */
dialog#v180-restart-dialog {
  box-sizing: border-box;
  width: min(460px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90vh, 660px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid #d5e4ef;
  border-radius: 20px;
  background: #fff;
  color: #173651;
  box-shadow: 0 24px 85px rgba(12,38,60,.29);
}
dialog#v180-restart-dialog::backdrop { background: rgba(11,31,49,.55); }
#v180-restart-dialog .v180-restart-dialog-body { padding: clamp(22px, 4vw, 34px); }
#v180-restart-dialog h2 {
  font: 800 clamp(1.35rem, 3vw, 1.65rem)/1.22 inherit;
  font-family: inherit; font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 800;
  line-height: 1.22; color: #12304a;
  margin: 0 0 12px;
}
#v180-restart-dialog p { font-size: .98rem; line-height: 1.55; margin: 0 0 12px; }
#v180-restart-dialog .v180-restart-note { font-size: .87rem; color: #597187; margin: 0 0 22px; }
#v180-restart-dialog .v180-restart-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
#v180-restart-dialog .v180-restart-actions button {
  box-sizing: border-box; min-height: 45px; font: 700 .94rem/1.2 inherit;
  font-family: inherit; font-size: .94rem; font-weight: 700;
  padding: .7rem 1.05rem; border-radius: 10px; cursor: pointer;
}
#v180-restart-dialog .v180-restart-cancel { color: #145681; border: 1px solid #b6cddd; background: white; }
#v180-restart-dialog .v180-restart-cancel:hover { background: #f1f8fc; }
#v180-restart-dialog .v180-restart-confirm { color: white; border: 1px solid #0b5c94; background: #075e99; }
#v180-restart-dialog .v180-restart-confirm:hover { background: #064a7a; }
#v180-restart-dialog button:focus-visible { outline: 3px solid #6abeec; outline-offset: 2px; }
@media(max-width:480px) {
  #v180-restart-dialog .v180-restart-actions { display: grid; grid-template-columns: 1fr; }
  #v180-restart-dialog .v180-restart-confirm { grid-row: 1; }
}
@media(prefers-reduced-motion:reduce) { .steps .v180-restart-trigger { transition: none; } }
@media print { .v180-restart-area, #v180-restart-dialog { display:none!important; } }
