/* Fernweh Outdoor — Project Estimator
   Uses the site's brand tokens from /assets/style.css (with fallbacks). */

.est-page {
  --e-ink: var(--ink, #101D14);
  --e-pine: var(--pine, #17351F);
  --e-forest: var(--forest, #1F4A2E);
  --e-leaf: var(--leaf, #7DC242);
  --e-leaf-deep: #4F8A22;
  --e-cream: var(--cream, #F7F4EC);
  --e-sand: var(--sand, #ECE5D6);
  --e-line: var(--line, rgba(16, 29, 20, .14));
  --e-muted: var(--muted, #55655B);
  --e-card: #fff;
  --e-radius: var(--radius, 18px);
  --e-head: 64px;
  --e-bar: 76px;
  background: var(--e-cream);
}

/* The site sets overflow-x: hidden on html and body, which turns body into a
   scroll container and breaks position: sticky. clip hides overflow without that. */
html.est-html, html.est-html body.est-page { overflow-x: clip; }

/* Header: solid and compact on this page (no hero behind it) */
.est-page .site-header { background: var(--e-ink); padding: 8px 0; box-shadow: 0 8px 24px -18px rgba(0,0,0,.6); }
.est-page .site-header .utility-bar { display: none; }
.est-page .brand img { height: 48px; }
.est-embed .site-header, .est-embed .site-footer { display: none; }
.est-embed .est-page, .est-embed body { --e-head: 0px; }

.est [hidden] { display: none !important; }
.est-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.est {
  padding-top: var(--e-head);
  min-height: 100vh;
  color: var(--e-ink);
}
body.est-has-bar .est { padding-bottom: calc(var(--e-bar) + 24px + env(safe-area-inset-bottom)); }

.est-wrap { max-width: 880px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .est-wrap { padding-inline: 24px; } }

/* ---------------------------------------------------------------- progress */
.est-top {
  position: sticky; top: var(--e-head); z-index: 40;
  background: rgba(247, 244, 236, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--e-line);
  padding: 10px 0 0;
}
.est-progress-row { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.est-back {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 8px 8px 8px 0; margin: 0;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--e-ink); cursor: pointer;
}
.est-step-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--e-muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-jump select {
  font: inherit; font-size: 13px; color: var(--e-ink);
  border: 1px solid var(--e-line); background: #fff; border-radius: 999px; padding: 6px 28px 6px 12px; max-width: 150px;
}
.est-progress { height: 4px; background: rgba(16,29,20,.08); margin-top: 8px; }
.est-progress span { display: block; height: 100%; width: 0; background: var(--e-leaf); border-radius: 0 4px 4px 0; transition: width .45s cubic-bezier(.2,.7,.2,1); }

/* ---------------------------------------------------------------- screens */
.est-screen { padding: 28px 0 40px; outline: none; }
.est-loading { display: flex; align-items: center; gap: 12px; color: var(--e-muted); padding: 60px 0; }
.est-spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--e-line); border-top-color: var(--e-leaf); animation: est-spin .8s linear infinite; }
@keyframes est-spin { to { transform: rotate(360deg); } }

.est-q { animation: est-in .35s ease both; }
@keyframes est-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .est-q { animation: none; } .est-progress span { transition: none; } }
.est-q-narrow { max-width: 600px; }

.est-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--e-leaf-deep);
  margin: 0 0 10px;
}
.est h1 { font-size: clamp(28px, 6.4vw, 44px); margin: 0 0 12px; outline: none; }
.est-lede { font-size: 17px; color: var(--e-muted); margin: 0 0 24px; max-width: 60ch; }
.est-h2 { font-size: 22px; margin: 0 0 12px; }
.est-h3 { font-size: 18px; margin: 22px 0 12px; }
.est-note { font-size: 14px; color: var(--e-muted); margin: 8px 0 0; }
.est-helper { font-size: 14.5px; color: var(--e-muted); background: rgba(125,194,66,.1); border-radius: 12px; padding: 12px 14px; margin: 16px 0 0; }
.est-muted { color: var(--e-muted); }
.est-aside { font-size: 15px; color: var(--e-muted); margin-top: 22px; }
.est-link { background: none; border: 0; padding: 0; font: inherit; color: var(--e-forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.est .btn { min-height: 52px; }
.est .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.est :focus-visible { outline: 3px solid var(--e-leaf); outline-offset: 2px; }

.est-nav { display: flex; gap: 12px; margin-top: 30px; }
.est-nav .btn { flex: 1; }
.est-nav .btn-leaf { flex: 2; }
@media (min-width: 640px) { .est-nav { justify-content: flex-end; } .est-nav .btn { flex: 0 0 auto; } }
/* On phones the pinned bar has its own Next button */
@media (max-width: 639px) {
  body.est-has-bar .est-screen:not([data-step="review"]):not([data-step="contact"]) .est-nav { display: none; }
}

/* ---------------------------------------------------------------- zip */
.est-zip label { display: block; font-weight: 600; margin-bottom: 8px; }
.est-zip-row { display: flex; gap: 10px; }
.est-zip-row input {
  flex: 1; min-width: 0; font: inherit; font-size: 22px; letter-spacing: .08em;
  padding: 12px 16px; border: 1.5px solid var(--e-line); border-radius: 14px; background: #fff;
}
.est-zip-row input:focus { outline: none; border-color: var(--e-leaf); box-shadow: 0 0 0 4px rgba(125,194,66,.2); }
.est-field-msg { color: #A23B26; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.est-field-msg:empty { display: none; }
.est-trust { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 8px; font-size: 15px; }
.est-trust li { display: flex; align-items: center; gap: 8px; }
.est-trust svg, .est-incl svg { color: var(--e-leaf-deep); flex: 0 0 auto; }

/* ---------------------------------------------------------------- services */
.est-svcs { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .est-svcs { grid-template-columns: 1fr 1fr; } }
.est-svc { position: relative; }
.est-svc-btn, .est-pkg {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--e-card); border: 1.5px solid var(--e-line); border-radius: 16px;
  padding: 10px 44px 10px 10px; font: inherit; color: inherit; cursor: pointer; min-height: 84px;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.est-svc-btn:hover, .est-pkg:hover { border-color: rgba(16,29,20,.35); }
.est-svc-btn:active, .est-pkg:active { transform: scale(.99); }
.est-svc.on .est-svc-btn, .est-pkg.on { border-color: var(--e-leaf); box-shadow: 0 0 0 3px rgba(125,194,66,.25); }
.est-svc-img, .est-pkg-img { flex: 0 0 64px; height: 64px; border-radius: 12px; background: var(--e-sand) center / cover no-repeat; }
.est-svc-text, .est-pkg-text { display: grid; gap: 2px; min-width: 0; }
.est-svc-name { font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.est-svc-short { font-size: 13.5px; color: var(--e-muted); line-height: 1.35; }
.est-svc-from { font-size: 12.5px; font-weight: 600; color: var(--e-leaf-deep); }
.est-tick {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--e-line);
  display: grid; place-items: center; color: transparent; background: #fff;
}
.est-pkg { position: relative; }
.est-svc.on .est-tick, .est-pkg.on .est-tick, .est-choice.on .est-tick { background: var(--e-leaf); border-color: var(--e-leaf); color: var(--e-ink); }
.est-svc .est-info { position: absolute; right: 42px; top: 8px; }

.est-info {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; margin: -6px 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--e-muted); cursor: pointer; vertical-align: middle;
}
.est-info:hover { color: var(--e-ink); background: rgba(16,29,20,.06); }

.est-pkg-wrap { margin-top: 22px; border: 1.5px dashed rgba(16,29,20,.25); border-radius: 16px; padding: 4px 16px; background: rgba(255,255,255,.5); }
.est-pkg-wrap summary { cursor: pointer; padding: 14px 0; display: grid; gap: 2px; list-style: none; }
.est-pkg-wrap summary::-webkit-details-marker { display: none; }
.est-pkg-wrap summary span { font-weight: 600; font-size: 17px; }
.est-pkg-wrap summary span::after { content: ' +'; color: var(--e-leaf-deep); }
.est-pkg-wrap[open] summary span::after { content: ' −'; }
.est-pkg-wrap summary small { color: var(--e-muted); font-size: 14px; }
.est-pkgs { display: grid; gap: 10px; grid-template-columns: 1fr; padding-bottom: 12px; }
@media (min-width: 560px) { .est-pkgs { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- size */
.est-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.est-seg button {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--e-ink);
  background: #fff; border: 1.5px solid var(--e-line); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer;
}
.est-seg button[aria-pressed="true"] { background: var(--e-ink); border-color: var(--e-ink); color: var(--e-cream); }
.est-seg-sm { margin-bottom: 12px; }
.est-seg-sm button { font-size: 14px; padding: 7px 14px; min-height: 38px; }

.est-num { display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--e-line); border-radius: 14px; padding-right: 14px; }
.est-num:focus-within { border-color: var(--e-leaf); box-shadow: 0 0 0 4px rgba(125,194,66,.2); }
.est-num input { font: inherit; font-size: 20px; width: 88px; padding: 12px 8px 12px 16px; border: 0; background: transparent; outline: none; }
.est-num span { color: var(--e-muted); font-size: 15px; white-space: nowrap; }
.est-num-lg input { font-size: 30px; width: 150px; font-weight: 600; }
.est-dims { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.est-x { color: var(--e-muted); font-size: 18px; }
.est-eq { font-size: 16px; color: var(--e-muted); }
.est-eq b { color: var(--e-ink); font-size: 20px; }

.est-guides { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 640px) { .est-guides { grid-template-columns: repeat(3, 1fr); } }
.est-guide {
  display: grid; gap: 2px; align-content: start; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1.5px solid var(--e-line); border-radius: 14px; padding: 14px; cursor: pointer;
}
.est-guide.on { border-color: var(--e-leaf); box-shadow: 0 0 0 3px rgba(125,194,66,.25); }
.est-guide-img { height: 110px; border-radius: 10px; margin-bottom: 8px; background: var(--e-sand) center / cover no-repeat; }
.est-guide-label { font-weight: 600; font-size: 16px; }
.est-guide-dims { font-size: 13px; color: var(--e-leaf-deep); font-weight: 600; }
.est-guide-text { font-size: 14px; color: var(--e-muted); line-height: 1.45; margin-top: 4px; }

.est-choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .est-choices { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.est-choice {
  position: relative; display: grid; gap: 2px; text-align: left; font: inherit; color: inherit;
  background: #fff; border: 1.5px solid var(--e-line); border-radius: 14px; padding: 14px 46px 14px 16px; cursor: pointer; min-height: 64px;
}
.est-choice.on { border-color: var(--e-leaf); box-shadow: 0 0 0 3px rgba(125,194,66,.25); }
.est-choice-label { font-weight: 600; }
.est-choice-desc { font-size: 14px; color: var(--e-muted); line-height: 1.4; }

.est-fs { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.est-fs legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.est-line-price { margin-top: 26px; font-size: 16px; padding: 14px 16px; border-radius: 14px; background: var(--e-sand); }
.est-line-price b { font-size: 18px; }

/* ---------------------------------------------------------------- chips */
.est-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.est-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15.5px; color: var(--e-ink); text-align: left;
  background: #fff; border: 1.5px solid var(--e-line); border-radius: 999px; padding: 11px 18px; min-height: 48px; cursor: pointer;
}
.est-chip[aria-pressed="true"] { background: var(--e-ink); color: var(--e-cream); border-color: var(--e-ink); }
.est-chip[aria-pressed="true"] svg { color: var(--e-leaf); }
.est-chip[disabled] { opacity: .45; cursor: not-allowed; }
.est-rank { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--e-leaf); color: var(--e-ink); font-size: 13px; font-weight: 700; }
.est-count { font-weight: 600; font-size: 14px; color: var(--e-leaf-deep); margin: -8px 0 14px; }

/* ---------------------------------------------------------------- fields */
.est-field { margin-bottom: 16px; }
.est-field label, .est-add label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.est-opt { font-weight: 400; color: var(--e-muted); }
.est-field input, .est-field select, .est-field textarea, .est-add select, .est-save input {
  width: 100%; font: inherit; font-size: 16px; color: var(--e-ink);
  padding: 13px 14px; border: 1.5px solid var(--e-line); border-radius: 12px; background: #fff;
}
.est-field textarea { resize: vertical; }
.est-field input:focus, .est-field select:focus, .est-field textarea:focus, .est-add select:focus, .est-save input:focus { outline: none; border-color: var(--e-leaf); box-shadow: 0 0 0 4px rgba(125,194,66,.2); }
.est-field [aria-invalid="true"] { border-color: #A23B26; }
.est-form { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 560px) { .est-form { grid-template-columns: 1fr 1fr; } .est-form .full { grid-column: 1 / -1; } }
.est-form .est-fs { margin: 4px 0 18px; }
.est-form-msg { color: #A23B26; font-weight: 600; margin: 0 0 8px; }
.est-form-msg:empty { display: none; }
.est-form .form-note { font-size: 12.5px; color: var(--e-muted); text-align: center; margin-top: 12px; }
.est-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.est-turnstile:empty { display: none; }
.est-turnstile { margin-bottom: 14px; }

.est-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.est-photos:empty { display: none; }
.est-photos figure { position: relative; margin: 0; width: 84px; height: 84px; }
.est-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.est-photos button { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--e-ink); color: #fff; display: grid; place-items: center; cursor: pointer; }

/* ---------------------------------------------------------------- build cards */
.est-q-wide { max-width: none; }
.est-card {
  background: var(--e-card); border: 1px solid var(--e-line); border-radius: var(--e-radius);
  padding: 16px; margin-bottom: 16px; box-shadow: 0 10px 30px -24px rgba(16,29,20,.35);
  scroll-margin-top: calc(var(--e-head) + 80px);
}
@media (min-width: 640px) { .est-card { padding: 22px; } }
.est-card.flash { animation: est-flash 1.4s ease; }
@keyframes est-flash { 0%, 40% { box-shadow: 0 0 0 4px rgba(125,194,66,.45); } 100% { box-shadow: 0 10px 30px -24px rgba(16,29,20,.35); } }
.est-card.is-p2 { background: #FBFAF6; border-style: dashed; }
.est-card-head { display: flex; gap: 12px; align-items: flex-start; }
.est-card-img { flex: 0 0 56px; height: 56px; border-radius: 12px; background: var(--e-sand) center / cover no-repeat; }
.est-card-title { flex: 1; min-width: 0; }
.est-card-title h2 { font-size: 21px; margin: 2px 0 4px; }
.est-card-price { margin: 0; font-size: 16px; color: var(--e-forest); }
.est-card-price b { font-weight: 600; }
.est-p2-tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--e-sand); color: var(--e-muted); border-radius: 999px; padding: 2px 10px; margin-left: 4px; }
.est-icon-btn { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--e-line); border-radius: 50%; background: #fff; color: var(--e-muted); display: grid; place-items: center; cursor: pointer; }
.est-icon-btn:hover { color: #A23B26; border-color: #A23B26; }
.est-card-sub { color: var(--e-muted); margin: 10px 0 6px; }
.est-card-row { border-top: 1px solid var(--e-line); margin-top: 16px; padding-top: 14px; }
.est-card-row .est-fs:first-child { margin-top: 0; }
.est-card-label { font-family: var(--font-body, Inter, sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--e-muted); margin: 0 0 10px; }
.est-incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.est-incl li { display: flex; gap: 8px; align-items: flex-start; }
.est-incl svg { margin-top: 5px; }

.est-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.est-tier {
  display: grid; gap: 2px; align-content: start; text-align: left; font: inherit; color: inherit;
  border: 1.5px solid var(--e-line); background: #fff; border-radius: 14px; padding: 10px; cursor: pointer; min-height: 92px;
}
.est-tier.on { border-color: var(--e-leaf); background: rgba(125,194,66,.1); box-shadow: 0 0 0 3px rgba(125,194,66,.2); }
.est-tier-name { font-weight: 700; font-size: 15px; }
.est-tier-label { font-size: 12.5px; color: var(--e-muted); line-height: 1.3; }
.est-tier-price { font-size: 12.5px; font-weight: 600; color: var(--e-forest); margin-top: 4px; }
@media (min-width: 640px) { .est-tier { padding: 12px 14px; } .est-tier-label, .est-tier-price { font-size: 13.5px; } }
.est-tier-bullets { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; color: var(--e-muted); }

.est-addons { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.est-addon {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  border: 1px solid var(--e-line); border-radius: 12px; padding: 8px 12px; min-height: 52px;
}
.est-addon.on { border-color: var(--e-leaf); background: rgba(125,194,66,.07); }
.est-addon-main { flex: 1; min-width: 150px; display: grid; }
.est-addon-sub { font-size: 12.5px; color: var(--e-muted); }
.est-addon-name { font-size: 15px; }
.est-addon-price { font-size: 13.5px; font-weight: 600; color: var(--e-forest); white-space: nowrap; margin-left: auto; }
.est-check { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px; cursor: pointer; padding: 4px 0; }
.est-check input { width: 22px; height: 22px; accent-color: var(--e-forest); flex: 0 0 auto; }
.est-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--e-line); border-radius: 999px; background: #fff; }
.est-stepper button { width: 38px; height: 38px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--e-ink); border-radius: 50%; }
.est-stepper input { width: 52px; text-align: center; border: 0; font: inherit; font-size: 16px; background: transparent; }
.est-stepper input:focus { outline: none; }

.est-card-notes { display: grid; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--e-muted); }
.est-badge { display: inline-block; justify-self: start; background: var(--e-pine); color: var(--e-cream); font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.est-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.est-toggle { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; font-size: 14.5px; cursor: pointer; }
.est-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.est-toggle-ui { flex: 0 0 44px; height: 26px; border-radius: 999px; background: rgba(16,29,20,.18); position: relative; transition: background .2s; margin-top: -2px; }
.est-toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.est-toggle input:checked + .est-toggle-ui { background: var(--e-forest); }
.est-toggle input:checked + .est-toggle-ui::after { transform: translateX(18px); }
.est-toggle input:focus-visible + .est-toggle-ui { outline: 3px solid var(--e-leaf); outline-offset: 2px; }

.est-min { background: #FFF6E0; border: 1px solid #E9CD85; color: #5B4410; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 15px; }
.est-empty { color: var(--e-muted); }
.est-add { background: rgba(255,255,255,.6); border: 1.5px dashed rgba(16,29,20,.25); border-radius: 16px; padding: 16px; margin: 20px 0 16px; }
.est-add-row, .est-save-row { display: flex; gap: 10px; flex-wrap: wrap; }
.est-add-row select, .est-save-row input { flex: 1 1 200px; width: auto; }
.est-save { background: var(--e-sand); border-radius: 16px; padding: 16px; }
.est-save label { display: block; font-size: 15px; margin-bottom: 10px; }
.est-save.sent { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.est-save.sent svg { color: var(--e-leaf-deep); }

/* ---------------------------------------------------------------- review / done */
.est-panel { background: #fff; border: 1px solid var(--e-line); border-radius: var(--e-radius); padding: 18px; margin-bottom: 16px; }
@media (min-width: 640px) { .est-panel { padding: 24px; } }
.est-panel p { margin: 0 0 10px; }
.est-panel ol { margin: 0 0 10px; padding-left: 22px; }
.est-rv { list-style: none; padding: 0; margin: 0; }
.est-rv li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--e-line); }
.est-rv li div { display: grid; gap: 2px; min-width: 0; }
.est-rv li span { font-size: 14px; color: var(--e-muted); }
.est-rv .est-rv-price { color: var(--e-forest); font-weight: 600; font-size: 15px; white-space: nowrap; text-align: right; }
.est-rv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 16px 0 6px !important; }
.est-rv-total span { font-weight: 600; }
.est-rv-total b { font-family: var(--font-display, Georgia, serif); font-size: clamp(24px, 6vw, 32px); font-weight: 560; color: var(--e-pine); }
.est-rv-total.sm b { font-size: 20px; }
.est-grid2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .est-grid2 { grid-template-columns: 1fr 1fr; } }
.est-drives ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.est-drives li b { display: block; }
.est-disclaimer { font-size: 14px; font-weight: 600; border-left: 3px solid var(--e-leaf); background: #fff; padding: 12px 14px; border-radius: 0 12px 12px 0; margin: 8px 0 0; }
.est-done-sum p:first-child { display: grid; gap: 2px; }
.est-done-sum b { font-family: var(--font-display, Georgia, serif); font-size: clamp(28px, 7vw, 38px); font-weight: 560; color: var(--e-pine); }
.est-cal { width: 100%; min-height: 720px; border: 0; border-radius: 12px; background: var(--e-cream); }
.est-next { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.est-next li { display: flex; gap: 14px; }
.est-next p { margin: 2px 0 0 !important; color: var(--e-muted); font-size: 15px; }
.est-step-n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--e-leaf); display: grid; place-items: center; font-weight: 700; }
.est-success { display: flex; gap: 12px; align-items: flex-start; }
.est-success svg { color: var(--e-leaf-deep); width: 24px; height: 24px; flex: 0 0 auto; }
.est-success p { margin: 4px 0 0; color: var(--e-muted); }

/* ---------------------------------------------------------------- pinned estimate bar */
.est-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--e-ink); color: var(--e-cream);
  box-shadow: 0 -12px 30px -16px rgba(0,0,0,.55);
  padding-bottom: env(safe-area-inset-bottom);
}
.est-bar-inner { max-width: 880px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: var(--e-bar); }
.est-bar-main {
  flex: 1; min-width: 0; display: grid; grid-template-columns: auto; text-align: left;
  background: none; border: 0; color: inherit; font: inherit; padding: 4px 0; cursor: pointer; position: relative;
}
.est-bar-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(247,244,236,.7); display: flex; align-items: center; gap: 6px; }
.est-bar-label::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-135deg) translate(-2px, -2px); transition: transform .2s; }
.est-bar.open .est-bar-label::after { transform: rotate(45deg); }
.est-bar-total { font-family: var(--font-display, Georgia, serif); font-size: clamp(21px, 5.6vw, 28px); font-weight: 560; line-height: 1.15; white-space: nowrap; font-variant-numeric: tabular-nums; }
.est-bar-delta {
  position: absolute; left: 0; bottom: 100%; margin-bottom: 14px;
  background: var(--e-leaf); color: var(--e-ink); font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; pointer-events: none; white-space: nowrap;
}
.est-bar-delta.down { background: var(--e-sand); }
.est-bar-delta.show { opacity: 1; transform: none; }
.est-bar.pulse .est-bar-total { animation: est-pulse .6s ease; }
@keyframes est-pulse { 30% { color: var(--e-leaf); } }
.est-bar-cta { flex: 0 0 auto; padding-inline: 22px !important; }
@media (min-width: 640px) { .est-bar-cta { display: none !important; } }
.est-sheet {
  max-height: 55vh; overflow: auto; max-width: 880px; margin: 0 auto; padding: 4px 16px 16px;
  border-top: 1px solid rgba(247,244,236,.14);
}
.est-sheet-list { list-style: none; padding: 0; margin: 8px 0; }
.est-sheet-list li, .est-sheet-total, .est-sheet-p2 { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(247,244,236,.1); font-size: 15px; margin: 0; }
.est-sheet-list li.is-p2 { opacity: .7; }
.est-sheet-list em { font-style: normal; font-size: 12px; background: rgba(247,244,236,.15); padding: 1px 8px; border-radius: 999px; }
.est-sheet-list b { white-space: nowrap; font-weight: 600; }
.est-sheet-total b { color: var(--e-leaf); }
.est-sheet .est-note { color: rgba(247,244,236,.7); }

/* ---------------------------------------------------------------- dialog */
.est-dialog {
  width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 48px); border: 0; border-radius: 20px; padding: 24px;
  color: var(--e-ink); background: var(--e-cream); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.est-dialog::backdrop { background: rgba(16,29,20,.55); }
.est-dialog h2 { font-size: 26px; margin: 0 40px 12px 0; }
.est-dialog-close { position: absolute; top: 12px; right: 12px; margin: 0; }
.est-dialog-close button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--e-ink); }
.est-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.est-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.est-gallery img:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.est-compare { display: grid; gap: 12px; }
@media (min-width: 560px) { .est-compare { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.est-compare > div { background: #fff; border-radius: 14px; padding: 14px; }
.est-compare h3 { font-size: 18px; margin: 0; }
.est-compare-label { color: var(--e-leaf-deep); font-weight: 600; font-size: 14px; margin: 2px 0 8px; }
.est-compare img { width: 100%; border-radius: 8px; margin-bottom: 8px; }
.est-compare ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
