/* Glass Rescue estimator. One component, one layout system. */
.gqe-section {
  --gqe-orange: #e74f18;
  --gqe-ink: #192027;
  --gqe-muted: #667079;
  --gqe-line: #dde1e2;
  --gqe-paper: #f7f7f4;
  position: relative;
  height: 100svh;
  min-height: 480px;
  background: var(--gqe-paper);
  color: var(--gqe-ink);
  isolation: isolate;
  scroll-margin-top: 0;
  overflow: hidden;
}
.gqe-section.is-open {
  position: fixed;
  z-index: 20000;
  inset: 0 0 auto;
  width: 100%;
  height: max(100lvh, calc(var(--gqe-height, 100dvh) + var(--gqe-top, 0px)));
  min-height: 0;
  margin: 0;
}
html.gqe-open { overflow: hidden; overscroll-behavior: none; }
.gqe-section *, .gqe-section *::before, .gqe-section *::after { box-sizing: border-box; }
.gqe-section [hidden] { display: none !important; }
.gqe-section button, .gqe-section a, .gqe-section summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.gqe-section button { color: inherit; }
.gqe-section button:focus-visible, .gqe-section a:focus-visible,
.gqe-section summary:focus-visible, .gqe-section input:focus-visible,
.gqe-catalogue:focus-visible { outline: 3px solid #226397; outline-offset: 2px; }
.gqe-section h2:focus { outline: none; }
.gqe-shell {
  display: flex;
  flex-direction: column;
  width: min(1180px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 18px max(10px, env(safe-area-inset-bottom));
  gap: 10px;
}
.gqe-progress { order: 1; flex: 0 0 3px; width: 100%; overflow: hidden; border-radius: 3px; background: #e3e5e2; }
.gqe-progress i { display: block; height: 100%; background: var(--gqe-orange); transition: width .25s ease; }
.gqe-remake-head { order: 0; display: grid; grid-template-columns: 78px minmax(0, 1fr) 44px; align-items: center; flex: 0 0 44px; }
.gqe-brand-mini { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; gap: 12px; }
.gqe-brand-mini strong { font-size: 13px; letter-spacing: .075em; font-weight: 850; }
.gqe-brand-mini > span { color: var(--gqe-muted); font-size: 12px; }
#machineBack, #machineClose { min-height: 44px; border: 0; background: transparent; padding: 0; font-weight: 650; font-size: 15px; }
#machineBack { grid-column: 1; grid-row: 1; text-align: left; }
#machineClose { grid-column: 3; grid-row: 1; width: 44px; border-radius: 50%; font-size: 28px; font-weight: 400; }
#machineClose:hover { background: #e9eae6; }
.gqe-remake-view { order: 2; flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; width: 100%; overflow: auto; overscroll-behavior: contain; padding: 8px 0 0; gap: 16px; }
.gqe-remake-title { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 0; }
.gqe-remake-title-copy { order: 0; min-width: 0; }
.gqe-remake-title h2 { margin: 0; font-size: clamp(28px, 3.7vw, 44px); letter-spacing: -.04em; font-weight: 800; line-height: 1.09; }
.gqe-remake-title-copy > p { margin: 8px 0 0; color: var(--gqe-muted); font-size: 16px; line-height: 1.4; }
.gqe-mascot-guide { order: 1; flex: 0 0 160px; display: flex; align-items: center; gap: 10px; }
.gqe-mascot-guide img { width: 74px; height: 84px; object-fit: contain; animation: gqe-guide-float 5s ease-in-out infinite; }
.gqe-mascot-guide p { display: none; }
@keyframes gqe-guide-float { 50% { transform: translateY(-4px) rotate(2deg); } }
.gqe-remake-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; flex: 1 1 auto; min-height: 0; max-height: 510px; padding: 2px; }
.gqe-choice-wrap { position: relative; min-width: 0; min-height: 160px; }
.gqe-choice-photo { display: grid; grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100%; min-height: 0; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--gqe-line); border-radius: 18px; text-align: left; box-shadow: 0 3px 12px #17202506; transition: border-color .16s, box-shadow .16s; }
.gqe-choice-photo:hover { border-color: var(--gqe-orange); box-shadow: 0 0 0 2px #e74f1814; }
.gqe-choice-photo > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #eeefeb; }
.gqe-choice-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; padding: 12px 18px; }
.gqe-choice-label strong { font-size: 20px; line-height: 1.2; }
.gqe-choice-label i { flex: 0 0 36px; font-size: 27px; line-height: 1; font-style: normal; color: var(--gqe-orange); text-align: right; }
.gqe-choice-help { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 40px; height: 40px; min-width: 40px; min-height: 40px; border: 1px solid #d1d6d8; border-radius: 50%; background: #fffffff5; box-shadow: 0 2px 7px #1a252512; font-weight: 700; font-size: 16px; line-height: 1; z-index: 1; }
.gqe-choice-help > span { display: block; font-family: Georgia, serif; font-style: italic; }
.gqe-choice-help:hover { border-color: var(--gqe-orange); }
.gqe-remake-view[data-step="scope"] .gqe-remake-choices:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gqe-remake-view[data-step="catalogue"] { overflow: hidden; gap: 12px; }
.gqe-catalogue {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: max(208px, calc((100% - 16px) / 2));
  gap: 12px;
  flex: 1 1 0;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #bfc6c7 transparent;
  padding: 2px;
  overflow-anchor: none;
}
.gqe-product { display: grid; grid-template-rows: minmax(64px, 1fr) auto 46px; min-height: 0; min-width: 0; border: 1px solid var(--gqe-line); border-radius: 15px; background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.gqe-product.selected { border-color: var(--gqe-orange); box-shadow: 0 0 0 1px var(--gqe-orange); }
.gqe-product-image { position: relative; min-height: 0; min-width: 0; background: #eee; overflow: hidden; }
.gqe-product-image img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; object-position: center; padding: 0; margin: 0; }
.gqe-product-copy { display: flex; align-items: center; min-width: 0; min-height: 52px; padding: 8px 12px; }
.gqe-product-copy strong { display: block; font-size: 15px; font-weight: 750; line-height: 1.18; letter-spacing: -.015em; overflow-wrap: normal; }
.gqe-counter { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: stretch; border-top: 1px solid #e9ebe9; background: #fafbf9; }
.gqe-counter button { width: 48px; height: 45px; min-height: 44px; border: 0; padding: 0; border-radius: 0; background: transparent; color: var(--gqe-orange); font-size: 26px; line-height: 1; font-weight: 500; }
.gqe-counter button:hover:not(:disabled) { background: #fff0e8; }
.gqe-counter button:disabled { color: #b6bdc0; cursor: default; }
.gqe-counter output { align-self: center; text-align: center; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gqe-product.selected .gqe-counter { background: #fff4ed; }
.gqe-image-fallback { display: grid; height: 100%; place-items: center; text-align: center; padding: 14px; color: var(--gqe-muted); font-size: 13px; }
.gqe-remake-actions { display: flex; flex-direction: column; flex: 0 0 auto; gap: 6px; margin-top: auto; padding: 0; }
.gqe-selection-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; min-height: 20px; color: var(--gqe-muted); font-size: 12px; line-height: 1.3; }
.gqe-remake-primary { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; width: 100%; padding: 12px 18px; border: 0; border-radius: 13px; background: var(--gqe-orange); color: #fff !important; font-size: 18px; font-weight: 750; line-height: 1.2; }
.gqe-remake-primary:hover { background: #ce4210; }
.gqe-powered { order: 3; flex: 0 0 auto; align-self: center; color: #737d82; font-size: 11px; line-height: 1.2; text-decoration: none; }
.gqe-powered strong { color: #495a65; }
.gqe-remake-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(620px, 100%); margin: 20px auto; }
.gqe-remake-fields label { display: block; min-width: 0; color: var(--gqe-ink); font-size: 17px; font-weight: 650; }
.gqe-remake-fields label > span { font-size: 13px; color: var(--gqe-muted); font-weight: 400; }
.gqe-remake-fields input { display: block; width: 100%; height: 62px; margin: 8px 0 4px; padding: 12px 16px; border: 1px solid #c6cdd0; border-radius: 12px; background: #fff; font-size: 23px; line-height: 1.3; color: var(--gqe-ink); }
.gqe-remake-fields input[aria-invalid="true"] { border-color: #a92823; }
.gqe-section .field-error { margin: 0; color: #a92823; font-size: 13px; line-height: 1.3; font-weight: 500; }
.gqe-section .field-error:empty { display: none; }
.gqe-remake-view[data-step="cart"] { overflow: hidden; }
.gqe-secondary { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cdd3d4; border-radius: 12px; background: #fff; color: #26353d; font-size: 15px; line-height: 1.25; font-weight: 700; }
.gqe-secondary:hover { border-color: var(--gqe-orange); background: #fff8f2; }
.gqe-cart-link { border: 0; padding: 0; min-height: 20px; background: transparent; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.gqe-cart-list { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px; scrollbar-width: thin; }
.gqe-cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 160px; align-items: center; gap: 16px; padding: 18px; margin: 0 0 12px; border: 1px solid var(--gqe-line); border-radius: 14px; background: #fff; }
.gqe-cart-item > img { display: block; width: 96px; height: 86px; object-fit: contain; background: #f2f3ef; border-radius: 8px; }
.gqe-cart-copy { min-width: 0; }
.gqe-cart-copy h3 { margin: 0 0 6px; font-size: 17px; font-weight: 750; line-height: 1.2; }
.gqe-cart-copy p { margin: 0 0 6px; font-size: 12px; color: #59656c; }
.gqe-cart-copy small { display: block; font-size: 12px; color: #667079; }
.gqe-cart-copy > strong { display: block; font-size: 16px; margin-top: 3px; }
.gqe-cart-controls { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: center; }
.gqe-cart-controls .gqe-counter { width: 146px; border: 1px solid var(--gqe-line); border-radius: 9px; overflow: hidden; grid-template-columns: 44px 1fr 44px; }
.gqe-cart-controls .gqe-counter button { width: 44px; }
.gqe-cart-remove { min-height: 44px; padding: 5px 0; border: 0; background: transparent; font-size: 12px; color: #626c73; text-decoration: underline; text-underline-offset: 3px; }
.gqe-cart-total { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 10px 0; }
.gqe-cart-total > span { font-size: 13px; color: #667079; }
.gqe-cart-total strong { display: block; margin-top: 4px; font-size: clamp(23px, 3vw, 32px); line-height: 1.1; color: #192027; letter-spacing: -.03em; }
.gqe-cart-total > small { font-size: 11px; text-align: right; color: #667079; line-height: 1.4; }
.gqe-cart-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gqe-cart-empty { padding: 20px; text-align: center; color: #59656c; }
.gqe-cart-postal { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex: 0 0 auto; width: min(520px, 100%); margin: 0 auto; padding: 10px 14px; min-height: 44px; border: 1px solid var(--gqe-line); border-radius: 10px; font-size: 13px; background: #fff; }
.gqe-cart-postal > span { font-weight: 650; }
.gqe-section.is-keyboard .gqe-mascot-guide, .gqe-section.is-keyboard .gqe-cart-postal, .gqe-section.is-keyboard .gqe-powered { display: none; }
.gqe-section.is-keyboard .gqe-remake-head { flex-basis: 38px; }
.gqe-section.is-keyboard .gqe-shell { gap: 4px; padding-block: 5px; }
.gqe-section.is-keyboard .gqe-remake-view { gap: 8px; padding-top: 2px; }
.gqe-section.is-keyboard .gqe-remake-title h2 { font-size: 24px; }
.gqe-section.is-keyboard .gqe-remake-title-copy > p { font-size: 12px; margin-top: 4px; }
.gqe-section.is-keyboard .gqe-remake-fields { margin: 0 auto; }
.gqe-section.is-keyboard .gqe-remake-fields label { font-size: 14px; }
.gqe-section.is-keyboard .gqe-remake-fields input { height: 48px; font-size: 20px; margin-top: 4px; }
.gqe-section.is-keyboard .gqe-contact-note { margin: 0 auto; padding: 6px 12px; }
.gqe-section.is-keyboard .gqe-remake-primary { min-height: 46px; }
html.gqe-open .home-hero *, .gqe-section.is-keyboard * { animation-play-state: paused !important; }
.gqe-postal-only { display: block; max-width: 520px; }
.gqe-postal-only input { text-transform: uppercase; letter-spacing: .12em; }
.gqe-photo-intake { flex: 0 0 auto; width: min(520px,100%); margin: 0 auto 14px; border: 1px solid #d5dcda; border-radius: 12px; background: #fff; }
.gqe-photo-intake summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.gqe-photo-intake summary::-webkit-details-marker { display: none; }
.gqe-photo-intake summary small, .gqe-photo-intake summary b { color: #66736e; font-size: 12px; font-weight: 500; }
.gqe-photo-body { padding: 0 14px 14px; font-size: 13px; }
.gqe-photo-body p { margin: 0 0 10px; color: #58666c; }
.gqe-photo-picker { display: inline-flex; min-height: 42px; align-items: center; padding: 9px 14px; border-radius: 9px; border: 1px solid #bdc9c5; font-weight: 700; cursor: pointer; }
.gqe-photo-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gqe-photo-picker:focus-within { outline: 2px solid #35699c; outline-offset: 2px; }
.gqe-photo-body ul { list-style: none; margin: 8px 0 0; padding: 0; }
.gqe-photo-body li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid #e9eeec; overflow-wrap: anywhere; }
.gqe-photo-body li button { min-height: 36px; border: 0; background: none; color: #a43f1c; text-decoration: underline; }
.gqe-photo-body #quotePhotoError { margin: 6px 0 0; color: #a92823; }
.gqe-photo-body #quotePhotoError:empty { display: none; }
.gqe-contact-note { display: flex; justify-content: space-between; align-items: center; gap: 14px; width: min(520px, 100%); margin: 10px auto 0; padding: 16px; background: #eeefeb; border-radius: 12px; font-size: 13px; color: var(--gqe-muted); }
.gqe-contact-note strong { display: block; font-size: 17px; font-weight: 650; color: var(--gqe-ink); }
.gqe-contact-note button { min-height: 44px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.gqe-choice-help-dialog { width: min(620px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; color: var(--gqe-ink); background: #fff; overflow: auto; overscroll-behavior: contain; }
.gqe-choice-help-dialog::backdrop { background: #121b29a8; backdrop-filter: blur(4px); }
.gqe-choice-help-card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: #fff; }
.gqe-choice-help-close { position: sticky; top: 0; align-self: flex-end; flex: 0 0 44px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--gqe-line); border-radius: 50%; background: #fff; font-size: 28px; line-height: 1; }
.gqe-choice-help-mascot-wrap { position: relative; display: block; flex: 0 0 140px; width: 100%; height: 140px; min-height: 0; overflow: hidden; margin: 0; }
.gqe-choice-help-mascot-wrap img { position: absolute; inset: 0; display: block; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.gqe-choice-help-dialog.is-product .gqe-choice-help-mascot-wrap { height: min(36dvh, 300px); flex-basis: min(36dvh, 300px); background: #f4f4f1; border-radius: 12px; }
.gqe-choice-help-copy { position: relative; flex: 0 0 auto; min-width: 0; padding: 4px 0; background: #fff; color: #192027; }
.gqe-choice-help-copy > span { font-size: 10px; letter-spacing: .12em; color: var(--gqe-muted); font-weight: 750; }
.gqe-choice-help-copy h2 { margin: 8px 0 12px; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; }
.gqe-choice-help-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: #46525b; }
.gqe-result { display: none; }
.gqe-result.active { display: flex; flex-direction: column; flex: 1 1 0; height: 100%; min-height: 0; overflow: hidden; }
.gqe-shell.showing-result { padding: 0; width: 100%; gap: 0; }
.showing-result .gqe-progress, .showing-result .gqe-remake-head, .showing-result .gqe-powered { display: none; }
.gqe-result-main { display: grid; flex: 1 1 0; overflow-y: auto; overscroll-behavior: contain; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-content: start; gap: 24px 40px; width: min(1100px, 100%); min-height: 0; padding: max(28px, env(safe-area-inset-top)) 40px 24px; margin: 0 auto; background: #fff; }
.gqe-result-topline { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--gqe-line); }
.gqe-result-brand { display: flex; gap: 12px; align-items: center; }
.gqe-result-brand img { width: 44px; height: 44px; object-fit: contain; }
.gqe-result-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.gqe-result-topline h2 { margin: 0 0 5px; font-size: 25px; line-height: 1.15; letter-spacing: -.025em; }
.gqe-result-code { display: block; font-size: 11px; color: var(--gqe-muted); }
.gqe-result-code b { color: var(--gqe-ink); }
.gqe-result-top-actions { text-align: right; display: grid; gap: 5px; }
.gqe-result-top-actions small { font-size: 12px; color: var(--gqe-muted); }
#exitQuote { min-height: 44px; padding: 4px 8px; border: 0; border-radius: 8px; background: #f0f1ed; font-size: 13px; }
.gqe-result-priceblock > span { display: block; color: var(--gqe-muted); font-size: 13px; margin: 0 0 10px; }
.gqe-price-stack > strong { display: block; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.055em; font-weight: 800; line-height: 1.12; overflow-wrap: anywhere; }
.gqe-price-stack del { display: block; margin: 10px 0 0; font-size: 13px; color: var(--gqe-muted); }
.gqe-discount-offer { display: grid; grid-template-columns: minmax(0, 1fr) 60px; align-items: center; gap: 8px; margin-top: 20px; border: 1px solid #f1d9c8; padding: 14px; border-radius: 13px; background: #fff7f1; }
.gqe-discount-copy > span { display: block; color: #844327; font-size: 12px; }
.gqe-discount-copy > strong { display: block; margin-top: 4px; font-size: 15px; line-height: 1.3; }
.gqe-discount-bear { width: 60px; height: 70px; object-fit: contain; }
.gqe-discount-apply { min-height: 44px; padding: 8px 12px; margin-top: 10px; border: 1px solid #c5a08c; border-radius: 8px; background: #fff; font-size: 13px; }
#resultDiscountStatus { grid-column: 1 / -1; display: block; color: #665e55; font-size: 12px; line-height: 1.45; }
.gqe-quote-summary { min-width: 0; padding: 20px; border: 1px solid var(--gqe-line); border-radius: 14px; background: #fafbf9; }
.gqe-quote-summary h3 { margin: 0 0 16px; font-size: 17px; letter-spacing: -.02em; }
.gqe-summary-list p, .gqe-summary-contact p, .gqe-breakdown-lines p { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.gqe-summary-list p > span, .gqe-summary-contact p > span { color: var(--gqe-muted); }
.gqe-summary-list strong { max-width: 70%; text-align: right; }
.gqe-summary-contact { margin-top: 18px; }
.gqe-summary-discount { display: none; }
.gqe-price-breakdown { border-top: 1px solid var(--gqe-line); padding-top: 8px; margin-top: 16px; }
.gqe-price-breakdown summary { padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 650; }
.gqe-breakdown-lines { margin-top: 12px; }
.gqe-breakdown-lines strong { flex: 0 0 auto; text-align: right; font-size: 12px; }
.gqe-breakdown-total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--gqe-line); padding-top: 12px; font-size: 13px; }
.gqe-breakdown-note { margin: 12px 0 0; color: var(--gqe-muted); font-size: 12px; line-height: 1.45; }
.gqe-result-note { grid-column: 1 / -1; margin: 0; color: var(--gqe-muted); font-size: 13px; line-height: 1.4; }
.gqe-result-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; width: min(1100px, 100%); margin: 0 auto; padding: 12px 40px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--gqe-line); background: #fff; }
.gqe-result-actions a { display: grid; place-items: center; min-height: 54px; padding: 12px 18px; border: 1px solid var(--gqe-line); border-radius: 12px; text-align: center; text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.25; }
.gqe-result-actions .gqe-result-primary { background: var(--gqe-orange); border-color: var(--gqe-orange); color: #fff; }
.gqe-result-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 18px; border-top: 1px solid var(--gqe-line); padding-top: 10px; }
.gqe-result-meta button { min-height: 44px; border: 0; padding: 0; background: transparent; color: #56636b; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.gqe-result-meta small { width: 100%; font-size: 12px; }
.gqe-print-footer { display: none; }
@media (max-width: 820px) {
  .gqe-cart-item { grid-template-columns: 66px minmax(0, 1fr); gap: 10px 12px; padding: 12px; }
  .gqe-cart-item > img { width: 66px; height: 76px; align-self: start; grid-row: 1 / span 2; }
  .gqe-cart-copy h3 { font-size: 15px; }
  .gqe-cart-copy > strong { font-size: 15px; }
  .gqe-cart-controls { grid-column: 2; }
  .gqe-cart-controls .gqe-counter { width: 132px; }
  .gqe-cart-buttons { gap: 8px; }
  .gqe-cart-buttons button { font-size: 14px; padding-inline: 8px; }
  .gqe-cart-total { flex-wrap: wrap; gap: 7px; }
  .gqe-cart-total > small { text-align: left; }
  .gqe-shell { padding-inline: 14px; gap: 8px; }
  .gqe-brand-mini { flex-direction: column; gap: 0; padding-right: 24px; line-height: 1.3; }
  .gqe-brand-mini strong { font-size: 12px; }
  .gqe-brand-mini > span { font-size: 11px; }
  .gqe-remake-view { gap: 14px; padding-top: 6px; }
  .gqe-remake-title { gap: 10px; }
  .gqe-remake-title h2 { font-size: clamp(26px, 7vw, 34px); }
  .gqe-remake-title-copy > p { font-size: 14px; margin-top: 6px; }
  .gqe-mascot-guide { flex-basis: 66px; }
  .gqe-mascot-guide img { width: 66px; height: 76px; }
  .gqe-remake-choices { gap: 12px; max-height: 500px; }
  .gqe-choice-wrap { min-height: 0; }
  .gqe-choice-label { min-height: 60px; padding: 10px 12px; gap: 6px; }
  .gqe-choice-label strong { font-size: 17px; }
  .gqe-choice-label i { flex-basis: 20px; font-size: 24px; }
  .gqe-choice-photo { border-radius: 14px; }
  .gqe-remake-view:not([data-step="catalogue"]) .gqe-remake-choices { grid-template-columns: 1fr; grid-auto-rows: minmax(140px, 1fr); }
  .gqe-remake-view:not([data-step="catalogue"]) .gqe-choice-photo { grid-template-rows: 1fr; grid-template-columns: minmax(0, 55%) minmax(0, 45%); }
  .gqe-remake-view:not([data-step="catalogue"]) .gqe-choice-label { flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 18px 12px; }
  .gqe-remake-view:not([data-step="catalogue"]) .gqe-choice-help { top: 6px; left: 6px; right: auto; }
  .gqe-remake-view[data-step="scope"] .gqe-remake-choices:has(> :nth-child(3)) { grid-template-columns: 1fr; grid-auto-rows: minmax(110px, 1fr); }
  .gqe-remake-view[data-step="catalogue"] { gap: 10px; }
  .gqe-catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max(176px, calc((100% - 14px) / 2)); gap: 10px; }
  .gqe-product { grid-template-rows: minmax(64px, 1fr) auto 46px; border-radius: 13px; }
  .gqe-product-copy { min-height: 48px; padding: 7px 9px; }
  .gqe-product-copy strong { font-size: 14px; line-height: 1.16; }
  .gqe-product-help { width: 36px; height: 36px; min-width: 36px; min-height: 36px; top: 5px; right: 5px; font-size: 15px; }
  .gqe-remake-primary { min-height: 50px; font-size: 17px; }
  .gqe-result-main { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); }
  .gqe-result-brand { gap: 9px; }
  .gqe-result-brand img { width: 34px; height: 34px; }
  .gqe-result-topline { gap: 10px; padding-bottom: 14px; }
  .gqe-result-topline h2 { font-size: 21px; }
  .gqe-result-top-actions small { font-size: 10px; }
  .gqe-price-stack > strong { font-size: clamp(32px, 9.4vw, 48px); }
  .gqe-discount-offer { margin-top: 14px; padding: 11px 13px; }
  .gqe-quote-summary { padding: 16px; }
  .gqe-result-actions { grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 10px 18px max(10px, env(safe-area-inset-bottom)); }
  .gqe-result-actions a { min-height: 50px; font-size: 13px; padding: 10px; }
  .gqe-result-meta { justify-content: space-between; gap: 6px; }
}
@media (max-height: 620px) {
  .gqe-shell { padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: max(6px, env(safe-area-inset-bottom)); gap: 5px; }
  .gqe-remake-head { flex-basis: 40px; }
  .gqe-remake-title h2 { font-size: 25px; }
  .gqe-remake-title-copy > p { font-size: 12px; margin-top: 4px; }
  .gqe-mascot-guide { display: none; }
  .gqe-remake-view { gap: 10px; padding-top: 4px; }
  .gqe-remake-view[data-step="catalogue"] { gap: 7px; }
  .gqe-remake-primary { min-height: 46px; }
  .gqe-remake-fields { margin: 5px auto; }
  .gqe-remake-fields input { height: 52px; font-size: 20px; }
  .gqe-contact-note { margin: 0 auto; padding: 10px 14px; }
}
@media (max-height: 420px) and (min-width: 600px) {
  .gqe-remake-view:not([data-step="catalogue"]) .gqe-remake-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 150px; }
  .gqe-remake-view[data-step="scope"] .gqe-remake-choices:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gqe-catalogue { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 176px; }
}
@media (prefers-reduced-motion: reduce) {
  .gqe-section *, .gqe-section *::before, .gqe-section *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  html, body { height: auto !important; overflow: visible !important; position: static !important; }
  body > :not(main):not(#quote), main > :not(#quote) { display: none !important; }
  #quote.gqe-section, .gqe-shell, .gqe-result.active { position: static !important; height: auto !important; min-height: 0 !important; overflow: visible !important; display: block !important; width: 100% !important; }
  .gqe-result-main { display: block; padding: 0; min-height: 0; overflow: visible; }
  .gqe-result-topline { margin-bottom: 18px; }
  .gqe-result-priceblock { margin-bottom: 18px; }
  .gqe-result-top-actions button, .gqe-result-actions, .gqe-result-meta, .gqe-discount-apply, .gqe-discount-bear, #resultDiscountStatus { display: none !important; }
  .gqe-price-breakdown > :not(summary) { display: block !important; }
  .gqe-price-breakdown::details-content { content-visibility: visible; height: auto; }
  .gqe-breakdown-lines p, .gqe-breakdown-total { display: flex !important; }
  .gqe-result-note, .gqe-print-footer { display: block; margin-top: 20px; font-size: 10px; }
  .gqe-quote-summary { break-inside: avoid; }
}

/* Keep an opaque full-layout surface behind Safari's moving visual viewport. */
.gqe-section.is-open > .gqe-shell {
  height: var(--gqe-height, 100dvh);
  transform: translateY(var(--gqe-top, 0px));
}
.gqe-section.is-keyboard .gqe-contact-note { flex: 0 0 auto; padding: 0 10px; }
.gqe-section.is-keyboard .gqe-contact-note > span { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.gqe-section.is-keyboard .gqe-remake-title-copy > p { display: none; }
.gqe-section.is-keyboard .gqe-remake-fields input:focus-visible { outline: none; border-color: #226397; box-shadow: inset 0 0 0 1px #226397; }
@media print { .gqe-section.is-open > .gqe-shell { height: auto; transform: none; } }

/* v194: keep contact content reachable after Safari keyboard dismissal. */
.gqe-section.is-open { padding: 0; display: block; }
.gqe-section.is-open > .gqe-shell { position: absolute; top: 0; left: 0; right: 0; }
.gqe-remake-view[data-step="postal"] > * { flex-shrink: 0; }
@media(max-width:700px){
 .gqe-remake-view[data-step="postal"] { gap: 12px; }
 .gqe-remake-view[data-step="postal"] .gqe-remake-title h2 { font-size: 27px; }
 .gqe-section .gqe-remake-view[data-step="postal"] .gqe-mascot-guide { display: none !important; }
 .gqe-section.is-keyboard .gqe-powered { display: none; }
}
