.g-quote-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 0.9rem 1.25rem;
  margin-block: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--g-line);
}
.g-quote-form label { display: grid; gap: 0.3rem; font-size: 0.875rem; font-weight: 500; }
.g-quote-form :is(input:not([type="radio"], [type="checkbox"]), select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--g-muted);
  border-radius: 0.25rem;
  background: var(--g-ivory);
  color: var(--g-ink);
  font: 400 1rem/1.4 var(--g-sans);
}
.g-quote-form :is(input, select, textarea):focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
.g-quote-form textarea { resize: vertical; }
.g-quote-message, .g-quote-submit, .ec-quote-slab-set { grid-column: 1 / -1; }

.ec-quote-slab-set {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ec-quote-slab-set legend {
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.ec-quote-slab-set .ec-quote-swatches { grid-template-columns: repeat(auto-fit, minmax(min(27%, 9rem), 1fr)); }

.ec-quote-slab-set .ec-quote-undecided {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ec-quote-mail-hint {
  margin-bottom: 0;
  color: var(--g-muted);
}

.g-quote-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1rem; }
.g-quote-submit button { border: 0; font: 500 1rem var(--g-sans); cursor: pointer; }

/* Swedish quote */
.ec-quote-intro {
  margin-bottom: 0;
}

.ec-quote-wrapper {
  --ec-quote-error: #8c2924;

  container-type: inline-size;
}

.ec-quote-live-test {
  width: fit-content;
  margin: 0.65rem 0 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--g-brass);
  border-radius: 0.3rem;
  background: var(--g-ivory);
  color: var(--g-ink);
  font-size: 0.75rem;
}

.ec-quote-intro:has(~ .ec-quote-receipt:not([hidden])),
.ec-native-quote[hidden],
.ec-native-quote [hidden],
.ec-quote-receipt[hidden],
.ec-quote-receipt [hidden] {
  display: none;
}

.ec-native-quote {
  display: grid;
  grid-template: "nav" "summary" "main" / minmax(0, 1fr);
  gap: 1rem;
  margin-block: 0.8rem 0;
  padding: 0;
  border: 0;
}

.ec-quote-navigation {
  grid-area: nav;
  scroll-margin-block-start: calc(var(--g-header-height) + 1rem);
}

.ec-quote-main {
  grid-area: main;
  min-width: 0;
}

.ec-quote-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--g-muted);
  font: 400 0.8125rem/1.3 var(--g-mono);
  counter-reset: quote-step;
}

.ec-quote-steps li {
  counter-increment: quote-step;
}

.ec-quote-steps :is(span, button) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.25rem 0.2rem;
}

.ec-quote-steps :is(span, button)::before {
  content: counter(quote-step, decimal-leading-zero);
  font-size: 0.6875rem;
}

.ec-quote-steps button {
  text-decoration: underline;
  text-underline-offset: 0.24em;
}

.ec-quote-steps [aria-current] {
  color: var(--g-ink);
  font-weight: 600;
}

.ec-quote-track {
  height: 2px;
  background: var(--g-line);
}

.ec-quote-track::after {
  content: "";
  display: block;
  inline-size: calc(var(--ec-quote-progress, 0.3333) * 100%);
  height: 100%;
  background: var(--g-accent);
}

.ec-native-quote h3,
.ec-quote-receipt h3 {
  margin: 0 0 1rem;
  font: 500 clamp(1.65rem, 3vw, 2.2rem)/1.15 var(--g-serif);
  text-wrap: balance;
}

.ec-quote-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.ec-native-quote fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ec-native-quote legend {
  margin-bottom: 0.4rem;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.ec-quote-hint,
.ec-quote-field-error {
  margin: 0.25rem 0 0;
  color: var(--g-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.ec-quote-hint a,
.ec-quote-link,
.ec-quote-receipt-links a {
  color: var(--g-ink);
  text-underline-offset: 0.2em;
}

.ec-quote-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ec-quote-choice {
  position: relative;
  overflow: visible;
  border: 1px solid var(--g-line);
  border-radius: 0.35rem;
  background: var(--g-ivory);
  color: var(--g-ink);
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.ec-quote-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.ec-quote-choice::after {
  position: absolute;
  inset: 0.3rem 0.3rem auto auto;
  width: 20px;
  height: 20px;
  border: 1px solid var(--g-ivory);
  border-radius: 50%;
  background: var(--g-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2 2 5-5' fill='none' stroke='%23f6ede0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  opacity: 0;
  pointer-events: none;
  content: "";
  transition: opacity 150ms ease-out;
}

.ec-quote-choice:has(:checked) {
  border-color: var(--g-ink);
  background-color: var(--g-ink);
  color: var(--g-ivory);
}

.ec-quote-choice:has(:checked)::after {
  opacity: 1;
}

.ec-quote-choice:has(:focus-visible),
.ec-native-quote summary:focus-visible {
  outline: 2px solid var(--g-accent);
  outline-offset: 3px;
}

.ec-quote-swatch:has(:focus-visible) {
  outline: 1px solid var(--g-ink);
  outline-offset: 3px;
}

label.ec-quote-swatch {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  scroll-margin-block-start: calc(var(--g-header-height) + 0.8rem);
}

.ec-quote-swatch img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-start-start-radius: inherit;
  border-start-end-radius: inherit;
}

.ec-quote-swatch span {
  display: grid;
  place-items: center;
  min-height: 1.8rem;
  padding: 0.15rem 0.2rem;
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
  text-align: center;
}

.ec-quote-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.35rem 1.15rem;
  margin-top: 1.15rem;
}

.ec-quote-options .ec-quote-hint {
  flex-basis: 100%;
}

.ec-quote-finish {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--g-muted);
  font-size: 0.875rem;
}

.ec-quote-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ec-native-quote .ec-quote-chip {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.75rem;
}

.ec-quote-chip::after {
  inset-block-start: -0.4rem;
  inset-inline-end: -0.3rem;
  width: 18px;
  height: 18px;
}

.ec-native-quote .ec-quote-measurements {
  margin-block: 1.25rem;
}

.ec-quote-measurements > .ec-quote-hint {
  margin-top: 0;
}

.ec-quote-tip {
  margin: 0.35rem 0 0.7rem;
  color: var(--g-muted);
  font-size: 0.875rem;
}

.ec-native-quote summary {
  min-height: 44px;
  align-content: center;
  color: var(--g-ink);
  cursor: pointer;
}

.ec-quote-tip summary {
  width: fit-content;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ec-quote-tip-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--g-line);
  border-radius: 0.35rem;
  background: var(--g-ivory);
}

.ec-quote-tip-content ul {
  flex: 1 1 13rem;
  margin: 0;
  padding-inline-start: 1.2rem;
}

.ec-quote-tip-content svg {
  max-width: 100%;
  font: 400 10px var(--g-mono);
}

.ec-quote-pieces {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.ec-quote-piece {
  --ec-quote-label-height: 1.05rem;
  --ec-quote-label-gap: 0.12rem;

  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr) auto minmax(0, 1fr) 3.25rem 44px;
  align-items: start;
  gap: 0 0.35rem;
  padding: 0.4rem 0;
  border-top: 1px solid var(--g-line);
}

.ec-quote-piece-title,
.ec-quote-times,
.ec-quote-area,
.ec-quote-remove {
  position: relative;
  align-self: start;
  align-content: center;
  min-height: 44px;
  margin-top: calc(var(--ec-quote-label-height) + var(--ec-quote-label-gap));
}

.ec-quote-piece-title {
  color: var(--g-muted);
  font: 400 0.75rem/1.2 var(--g-mono);
  white-space: nowrap;
}

.ec-quote-times,
.ec-quote-area {
  color: var(--g-muted);
}

.ec-quote-area {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: end;
}

.ec-quote-piece .ec-quote-dimension label {
  gap: var(--ec-quote-label-gap);
  font-size: 0.75rem;
  line-height: var(--ec-quote-label-height);
}

.ec-native-quote .ec-quote-dimension input {
  min-width: 0;
  padding-inline: 0.55rem;
  font-variant-numeric: tabular-nums;
}

.ec-quote-remove {
  display: grid;
  place-items: center;
  width: 44px;
  border-radius: 50%;
}

.ec-quote-depth-warning {
  grid-column: 1 / -1;
}

.ec-quote-counter {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.ec-quote-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: 0.85rem 0.75rem;
  align-items: start;
}

.ec-native-quote .ec-quote-country {
  margin-block-end: 0.85rem;
}

.ec-native-quote :is(.ec-quote-contact, .ec-quote-main) label[for] {
  width: fit-content;
  margin-bottom: 0.3rem;
}

.ec-quote-contact input:is(:-webkit-autofill, :autofill) {
  box-shadow: 0 0 0 1000px var(--g-ivory) inset;
  -webkit-text-fill-color: var(--g-ink);
  caret-color: var(--g-ink);
}

.ec-quote-contact [data-quote-field="addressAddress"] {
  position: relative;
}

.ec-native-quote [data-places-toggle]:not([hidden]) {
  display: block;
  min-height: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--g-muted);
  font-size: 0.8125rem;
}

.ec-native-quote [data-places-toggle][aria-pressed="true"] {
  color: var(--g-ink);
  font-weight: 600;
}

.ec-quote-places {
  position: absolute;
  z-index: 2;
  inset-inline: 0;
  margin-top: 0.25rem;
  border: 1px solid var(--g-muted);
  border-radius: 0.25rem;
  background: var(--g-ivory);
  box-shadow: 0 0.4rem 1rem var(--g-line);
}

.ec-quote-places ul {
  max-height: min(15rem, 35vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ec-quote-places li {
  min-height: 2.75rem;
  padding: 0.65rem 0.7rem;
  cursor: pointer;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.ec-quote-places [role="option"]:is(:hover, [aria-selected="true"]) {
  background: var(--g-bg);
}

.ec-quote-places p {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-top: 1px solid var(--g-line);
  color: #5e5e5e;
  font-size: 0.75rem;
  text-align: end;
}

.ec-quote-places [translate="no"] {
  white-space: nowrap;
}

.ec-native-quote :is(input, textarea)[aria-invalid]:not([type="radio"]) {
  border-color: var(--ec-quote-error);
}

.ec-native-quote .ec-quote-choice:has([aria-invalid]) {
  border-color: var(--ec-quote-error);
}

.ec-quote-error,
.ec-quote-field-error {
  color: var(--ec-quote-error);
}

.ec-quote-error {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
}

.ec-quote-field-error {
  display: block;
}

.ec-quote-field-error::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-inline-end: 0.28rem;
  background: currentcolor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M7.3 2.1a.8.8 0 0 1 1.4 0l5.9 10.4a.8.8 0 0 1-.7 1.2H2.1a.8.8 0 0 1-.7-1.2zM8 5.5v3.2m0 2.3v.3' fill='none' stroke='black' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: -0.13em;
  content: "";
}

.ec-quote-suggestion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.45rem;
  overflow-wrap: anywhere;
}

.ec-quote-suggestion:has(button[hidden]) {
  margin: 0;
  opacity: 0;
}

.ec-quote-terms-field {
  margin-top: 1.15rem;
}

.ec-native-quote .ec-quote-terms {
  display: flex;
  align-items: start;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 400;
  cursor: pointer;
}

.ec-native-quote .ec-quote-terms input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: var(--g-ink);
}

.ec-quote-terms input[aria-invalid] {
  outline: 1px solid var(--ec-quote-error);
  outline-offset: 2px;
}

.ec-quote-actions {
  margin-top: 1.15rem;
}

.ec-quote-buttons,
.ec-quote-receipt-links {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.ec-native-quote button,
.ec-quote-receipt button {
  font-family: inherit;
  cursor: pointer;
  transition: scale 150ms ease-out;
}

:where(.ec-native-quote, .ec-quote-receipt) button:not([data-back], [data-add]) {
  border: 0;
}

.ec-quote-steps button,
.ec-quote-remove,
.ec-quote-link,
.ec-quote-summary button {
  background: transparent;
  color: inherit;
}

:is([data-next], [data-back], [data-add], .ec-quote-email) {
  justify-content: center;
  padding-block: 0.4rem;
  font-size: 0.9375rem;
  line-height: 1.25;
  text-align: center;
}

.ec-quote-link {
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
}

.ec-quote-suggestion .ec-quote-link {
  min-height: 44px;
}

.ec-quote-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.ec-quote-loading i {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid currentcolor;
  border-inline-end-color: transparent;
  border-radius: 50%;
}

.ec-quote-error:empty,
.ec-quote-status:empty,
.ec-quote-depth-warning:empty {
  margin: 0;
}

.ec-quote-error:empty,
.ec-quote-depth-warning:empty {
  opacity: 0;
}

.ec-quote-submit-note {
  margin-top: 0.6rem;
}

.ec-quote-submit-note p {
  margin: 0.35rem 0 0;
}

.ec-quote-summary {
  grid-area: summary;
  align-self: start;
  padding-inline: 0.15rem;
  border-block: 1px solid var(--g-line);
}

.ec-quote-summary-aside {
  display: none;
}

.ec-quote-summary summary,
.ec-quote-summary-title {
  font: 400 0.8125rem/1.4 var(--g-mono);
}

.ec-quote-summary summary {
  align-content: center;
  overflow-wrap: anywhere;
}

.ec-quote-summary-title {
  margin: 0 0 0.6rem;
  color: var(--g-muted);
}

.ec-quote-summary-stone {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  min-height: 44px;
  padding: 0.35rem 0 0.6rem;
  text-align: start;
}

.ec-quote-summary-stone img {
  flex: none;
  width: 3rem;
  height: 2.4rem;
  border: 1px solid var(--g-line);
  border-radius: 0.2rem;
  object-fit: cover;
}

.ec-quote-summary-stone span {
  display: block;
}

.ec-quote-summary-name {
  font: 500 1.25rem/1.1 var(--g-serif);
}

.ec-quote-summary .ec-quote-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0.35rem 0;
  border-top: 1px solid var(--g-line);
  font-size: 0.875rem;
  text-align: start;
}

.ec-quote-summary-row span:last-child {
  text-align: end;
  font-variant-numeric: tabular-nums;
}

.ec-quote-summary p.ec-quote-summary-row {
  min-height: 0;
  padding-bottom: 0;
}

.ec-quote-facts {
  margin: 0.7rem 0 0.45rem;
  padding: 0.6rem 0 0 1.1rem;
  border-top: 1px solid var(--g-line);
}

.ec-quote-facts li + li {
  margin-top: 0.25rem;
}

.ec-quote-receipt {
  margin-top: 1.4rem;
  scroll-margin-block-start: calc(var(--g-header-height) + 1rem);
}

.ec-quote-receipt h3 {
  margin-bottom: 0.6rem;
}

.ec-quote-offer-number {
  margin: 0 0 0.5rem;
  color: var(--g-muted);
  font: 400 0.8125rem/1.35 var(--g-mono);
}

.ec-quote-recap {
  margin: 0 0 1.05rem;
  color: var(--g-muted);
  font-size: 0.9375rem;
}

.ec-quote-receipt dl {
  margin: 0 0 1.25rem;
  font-variant-numeric: tabular-nums;
}

.ec-quote-receipt dl > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 0.6rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--g-line);
}

.ec-quote-receipt dd {
  margin: 0 0 0 auto;
  white-space: nowrap;
}

.ec-quote-receipt dl > .ec-quote-total {
  margin-inline: -0.65rem;
  padding-inline: 0.65rem;
  border-bottom: 1px solid var(--g-line);
  background: var(--g-ivory);
  font-weight: 600;
}

.ec-quote-total dd {
  font: 500 clamp(2rem, 5vw, 2.75rem)/1.2 var(--g-serif);
  font-variant-numeric: lining-nums tabular-nums;
}

.ec-quote-email,
.ec-quote-reveal {
  overflow-wrap: anywhere;
}

.ec-quote-receipt-links {
  flex-wrap: wrap;
  gap: 0 1.2rem;
  margin-top: 0.6rem;
  font: 500 0.875rem/1.4 var(--g-sans);
}

.ec-quote-receipt-links > * {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
}

:is(.ec-native-quote, .ec-quote-receipt) button:not([aria-disabled="true"]):active {
  scale: 0.96;
}

.ec-native-quote button[aria-disabled="true"],
.ec-quote-receipt button[aria-disabled="true"] {
  cursor: wait;
}

.ec-native-quote [data-waiting] {
  opacity: 0.7;
}

@container (min-width: 44rem) {
  .ec-native-quote {
    grid-template: "nav nav" "main summary" / minmax(0, 1fr) 15rem;
    gap: 1.3rem 1.5rem;
    align-items: start;
  }

  .ec-quote-summary-aside {
    position: sticky;
    top: calc(var(--g-header-height) + 1rem);
    display: block;
    padding: 0.85rem;
    border: 1px solid var(--g-line);
    border-radius: 0.5rem;
    background: var(--g-ivory);
  }

  .ec-quote-summary-details {
    display: none;
  }

  .ec-quote-swatches {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ec-quote-piece:not(:first-child) {
    --ec-quote-label-height: 0rem;
    --ec-quote-label-gap: 0rem;
  }

  .ec-quote-piece:not(:first-child) .ec-quote-dimension-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@container (min-width: 27rem) {
  .ec-native-quote:has([data-step]:nth-child(3):not([hidden])) [data-next] {
    min-width: 15rem;
  }
}

@container (max-width: 22rem) {
  .ec-quote-piece {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 44px;
    grid-template-rows: 1.7rem auto auto;
    column-gap: 0.45rem;
  }

  .ec-quote-piece-title {
    grid-area: 1 / 1;
  }

  .ec-quote-area {
    grid-area: 1 / 2 / 2 / 4;
  }

  .ec-quote-remove {
    grid-area: 1 / 4 / 3 / 5;
    align-self: center;
  }

  .ec-quote-piece :is(.ec-quote-piece-title, .ec-quote-area, .ec-quote-remove) {
    min-height: 0;
    margin-top: 0;
  }

  .ec-quote-piece .ec-quote-remove {
    min-height: 44px;
  }

  .ec-quote-times {
    grid-area: 2 / 2;
  }

  .ec-quote-dimension {
    grid-row: 2;
  }

  .ec-quote-depth-warning {
    grid-row: 3;
  }
}

@media (width <= 37.5rem) {
  html:has(.ec-native-quote:not([hidden])) {
    scroll-padding-bottom: var(--ec-quote-bar-height, 0);
  }

  .ec-native-quote {
    margin-top: 0.45rem;
    gap: 0.75rem;
  }

  .ec-native-quote:has(.ec-quote-main > [data-step]:first-child:not([hidden])) {
    > .ec-quote-summary-details { display: none; }

    @media (height <= 38rem) {
      .ec-quote-actions { position: static; }
    }
  }

  .ec-quote-steps span { min-height: 36px; }
  .ec-native-quote h3 { margin-bottom: 0.65rem; }

  .ec-quote-swatch img {
    aspect-ratio: 2.4 / 1;
  }

  .ec-quote-options {
    margin-top: 0.9rem;
  }

  .ec-quote-piece {
    column-gap: 0.25rem;
  }

  .ec-quote-contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .ec-native-quote :is(input, textarea, [data-quote-field="addressExtra"]) {
    scroll-margin-block: calc(var(--g-header-height) + 0.5rem) 0.5rem;
  }

  .ec-quote-actions {
    position: sticky;
    z-index: 1;
    bottom: 0;
    padding: 0.65rem 0.65rem max(0.75rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--g-line);
    background: var(--g-ivory);
  }

  .ec-quote-actions [data-next] {
    flex: 1;
    min-width: 0;
    padding-inline: 0.65rem;
  }

  .ec-quote-actions [data-back] {
    min-height: 44px;
    padding-inline: 0.65rem;
  }

  .ec-quote-actions .ec-quote-buttons {
    gap: 0.45rem;
  }
}

@media (hover: hover) {
  .ec-quote-choice:hover {
    border-color: var(--g-accent);
  }

  .ec-quote-remove:hover {
    background: var(--g-line);
  }

  .ec-quote-summary button:hover span:first-child {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ec-quote-track::after {
    inline-size: 100%;
    transform: scaleX(var(--ec-quote-progress, 0.3333));
    transform-origin: left;
    transition: transform 300ms var(--g-ease);
  }

  .ec-native-quote [data-step] {
    transition: opacity 300ms var(--g-ease), translate 300ms var(--g-ease);
  }

  .ec-quote-piece {
    transition: opacity 200ms ease-out, translate 200ms ease-out;
  }

  .ec-quote-error,
  .ec-quote-field-error,
  .ec-quote-suggestion,
  .ec-quote-depth-warning {
    transition: opacity 150ms ease-out, translate 150ms ease-out;
  }

  .ec-quote-error:empty,
  .ec-quote-suggestion:has(button[hidden]),
  .ec-quote-depth-warning:empty {
    translate: 0 -4px;
  }

  .ec-quote-choice::after {
    scale: 0.25;
    transition: opacity 300ms cubic-bezier(0.2, 0, 0, 1), scale 300ms cubic-bezier(0.2, 0, 0, 1);
  }

  .ec-quote-choice:has(:checked)::after {
    scale: 1;
  }

  .ec-quote-loading i {
    animation: ec-quote-spin 650ms linear infinite;
  }

  .ec-quote-reveal {
    transition: opacity 300ms ease-out, translate 300ms ease-out, filter 300ms ease-out;
  }

  .ec-quote-reveal:nth-child(2) {
    transition-delay: 100ms;
  }

  .ec-quote-reveal:nth-child(3) {
    transition-delay: 200ms;
  }

  @starting-style {
    .ec-native-quote [data-step] {
      opacity: 0.35;
      translate: 0 8px;
    }

    .ec-quote-reveal {
      opacity: 0;
      translate: 0 12px;
      filter: blur(4px);
    }

    .ec-quote-piece,
    .ec-quote-error,
    .ec-quote-field-error,
    .ec-quote-suggestion,
    .ec-quote-depth-warning {
      opacity: 0;
      translate: 0 -4px;
    }
  }

  @supports (interpolate-size: allow-keywords) {
    .ec-quote-tip {
      interpolate-size: allow-keywords;
    }

    .ec-quote-tip::details-content {
      overflow: clip;
      block-size: 0;
      opacity: 0;
      translate: 0 -4px;
      transition: block-size 250ms var(--g-ease), content-visibility 250ms allow-discrete,
        opacity 150ms ease-out, translate 150ms ease-out;
    }

    .ec-quote-tip[open]::details-content {
      block-size: auto;
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes ec-quote-spin {
    to { rotate: 1turn; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-native-quote .ec-quote-choice,
  .ec-native-quote [data-step],
  .ec-quote-reveal,
  .ec-quote-piece,
  .ec-quote-field-error,
  .ec-quote-error,
  .ec-quote-suggestion,
  .ec-quote-depth-warning {
    transition: opacity 150ms ease-out;
  }

  @starting-style {
    .ec-native-quote [data-step],
    .ec-quote-reveal,
    .ec-quote-piece,
    .ec-quote-field-error,
    .ec-quote-error,
    .ec-quote-suggestion,
    .ec-quote-depth-warning {
      opacity: 0;
    }
  }
}

@media (width <= 600px) {
  .ec-quote-intro {
    margin-top: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
  }
}
