.quote-chatbot {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(15, 46, 28, 0.08);
  /* Allow page to grow with messages; sticky composer needs overflow visible */
  overflow: visible;
}

.quote-chatbot__header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(180deg, rgba(105, 240, 174, 0.14) 0%, var(--white) 100%);
}

.quote-chatbot__title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.quote-chatbot__tagline {
  margin: 0 0 10px;
  color: var(--green-dark, #00a152);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.quote-chatbot__lead {
  margin-bottom: 12px;
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.5;
}

.quote-chatbot__estimates-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(0, 168, 68, 0.35);
  background: rgba(105, 240, 174, 0.16);
  color: #0a3d22;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.quote-chatbot__estimates-notice.is-emphasized {
  border-color: #00c853;
  background: rgba(0, 230, 118, 0.22);
  box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.2);
}

.quote-chatbot__progress {
  margin-bottom: 16px;
}

.quote-chatbot__progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.quote-chatbot__progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(105, 240, 174, 0.35);
  overflow: hidden;
}

.quote-chatbot__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8f5d0 0%, var(--green-light) 35%, var(--green) 100%);
  transition: width 0.45s ease, background 0.45s ease;
}

/* Focused product header — only the insurance they opened */
.quote-product-focus {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 200, 83, 0.08);
  border: 1px solid rgba(0, 200, 83, 0.22);
}

.quote-product-focus__current {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.quote-product-focus__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2f7d4f;
}

.quote-product-focus__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f2e1c;
  flex: 1 1 auto;
  min-width: 0;
}

.quote-product-focus__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid #2f7d4f;
  background: #fff;
  color: #1b5c3a;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.quote-product-focus__toggle[aria-expanded='true'] {
  background: #3d9460;
  color: #fff;
  border-color: #2f7d4f;
}

.quote-product-focus__menu {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(47, 125, 79, 0.2);
  max-height: min(55vh, 420px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-right: 4px;
  margin-right: -2px;
}

.quote-product-focus__menu[hidden] {
  display: none !important;
}

.quote-product-focus__sheet-bar {
  display: none;
}

.quote-product-focus__menu-lead {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #3d4f63;
  line-height: 1.4;
  padding-bottom: 6px;
}

/* Mobile: fixed bottom sheet so options scroll reliably (nested page scroll fails on phones) */
@media (max-width: 900px) {
  .quote-product-focus-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(10, 18, 16, 0.55);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .quote-product-focus.is-open .quote-product-focus__menu {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 10050 !important;
    width: 100% !important;
    max-width: 100vw !important;
    max-height: min(82dvh, 82vh) !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    border-radius: 18px 18px 0 0 !important;
    border: 1px solid rgba(47, 125, 79, 0.28) !important;
    border-bottom: none !important;
    background: #f4fbf6 !important;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.28) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
  }

  .quote-product-focus.is-open .quote-product-focus__sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 0 8px;
    padding: 4px 0 10px;
    background: linear-gradient(180deg, #f4fbf6 70%, rgba(244, 251, 246, 0));
  }

  .quote-product-focus__sheet-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f2e1c;
  }

  .quote-product-focus__sheet-close {
    flex: 0 0 auto;
    min-height: 40px;
    min-width: 44px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1.5px solid #2f7d4f;
    background: #fff;
    color: #1b5c3a;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .quote-product-focus.is-open .quote-chatbot__products--storyline {
    display: flex !important;
    flex-wrap: wrap !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 10px !important;
    padding-bottom: 12px !important;
  }

  .quote-product-focus.is-open .quote-chatbot__product {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.88rem;
  }

  body.quote-options-sheet-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body.quote-options-sheet-open .quote-chatbot__composer,
  body.quote-options-sheet-open .quote-chatbot__quick-replies {
    z-index: 1 !important;
  }
}

.quote-product-focus__resume {
  margin-top: 12px;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1.5px solid #2f7d4f;
  background: #e8f8ee;
  color: #0f2e1c;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quote-product-focus__resume[hidden] {
  display: none !important;
}

.quote-chatbot__products {
  --quote-tab-light: #c8f5d8;
  --quote-tab-light-border: #a8e8c0;
  --quote-tab-light-text: #1b5c3a;
  --quote-tab-hover: #b0ecca;
  --quote-tab-hover-border: #88d9a8;
  --quote-tab-active: #3d9460;
  --quote-tab-active-border: #2f7d4f;
  --quote-tab-active-text: #ffffff;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  /* Never clip options without a scrollbar */
  max-height: none;
  overflow: visible;
}

/* Default: hide full tab strip until user expands “All insurance options” */
.quote-product-focus:not(.is-open) .quote-chatbot__products {
  display: none;
}

.quote-product-focus.is-open .quote-chatbot__products {
  display: flex;
  flex-wrap: wrap;
  max-height: none;
  overflow: visible;
  padding-bottom: 8px;
}

/* Storyline list inside the expandable panel */
.quote-chatbot__products--storyline {
  max-height: none !important;
  overflow: visible !important;
}

.quote-chatbot__product {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--quote-tab-light-border);
  background: var(--quote-tab-light);
  color: var(--quote-tab-light-text);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quote-chatbot__product:hover {
  border-color: var(--quote-tab-hover-border);
  background: var(--quote-tab-hover);
  color: var(--quote-tab-light-text);
}

.quote-chatbot__product.is-active {
  border-color: var(--quote-tab-active-border);
  background: var(--quote-tab-active);
  color: var(--quote-tab-active-text);
}

.quote-chatbot__messages {
  flex: 1 1 auto;
  min-height: 320px;
  max-height: none;
  overflow: visible;
  padding: 20px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  background: var(--off-white);
}

.quote-chatbot__message {
  max-width: 88%;
  font-size: 0.95rem;
  line-height: 1.5;
}

.quote-chatbot__message--assistant {
  justify-self: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.quote-chatbot__message-text.is-current-prompt {
  display: none;
}

.quote-chatbot__message--user {
  justify-self: end;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 200, 83, 0.14);
  border: 1px solid rgba(0, 200, 83, 0.24);
  color: var(--green-dark);
}

.quote-chatbot__message time {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--gray-600);
}

.quote-chatbot__message--assistant .quote-chatbot__link {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.quote-chatbot__message--assistant .quote-chatbot__link:hover {
  color: var(--green);
}

.quote-chatbot__typing {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-self: start;
  max-width: 100%;
  width: 100%;
  color: var(--gray-600);
  font-size: 0.86rem;
}

.quote-chatbot__typing .quote-chatbot__message-body {
  padding: 10px 14px;
}

.quote-chatbot__messages:empty::before {
  content: 'Starting your quote assistant…';
  display: block;
  color: var(--gray-600);
  font-size: 0.92rem;
  font-style: italic;
}

.quote-chatbot__quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 12px;
  background: var(--off-white);
}

.quote-chatbot__quick-replies[hidden] {
  display: none;
}

.quote-chatbot__quick {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 83, 0.35);
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.quote-chatbot__quick:hover {
  background: rgba(0, 200, 83, 0.12);
}

/* TCPA contact consent — text YES/NO to prospect */
.quote-chatbot__consent-sms {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(0, 200, 83, 0.4);
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.1) 0%, #fff 70%);
  box-shadow: 0 6px 18px rgba(15, 46, 28, 0.06);
}

.quote-chatbot__consent-sms[hidden] {
  display: none !important;
}

.quote-chatbot__consent-sms-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

.quote-chatbot__consent-sms-copy {
  min-width: 0;
  flex: 1 1 200px;
}

.quote-chatbot__consent-sms-copy strong {
  display: block;
  font-size: 0.9rem;
  color: #0f2e1c;
  margin-bottom: 2px;
}

.quote-chatbot__consent-sms-copy p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4b5563;
}

.quote-chatbot__consent-sms-status {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f2e1c;
}

.quote-chatbot__consent-sms-status[hidden] {
  display: none !important;
}

.quote-chatbot__consent-sms-status.is-waiting {
  color: #b45309;
}

.quote-chatbot__consent-sms-status.is-yes {
  color: #047857;
}

.quote-chatbot__consent-sms-status.is-no,
.quote-chatbot__consent-sms-status.is-error {
  color: #b91c1c;
}

.quote-chatbot__consent-sms-status.is-other {
  color: #1d4ed8;
}

.quote-chatbot__message--sms-meta .quote-chatbot__message-text {
  border-left: 3px solid rgba(0, 200, 83, 0.55);
  padding-left: 10px;
  font-size: 0.92rem;
}

.quote-chatbot__message--user-sms .quote-chatbot__message-text {
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.18) 0%, rgba(0, 200, 83, 0.08) 100%);
}

.quote-chatbot__composer {
  padding: 16px 24px 22px;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

.quote-chatbot__composer-prompt {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(105, 240, 174, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(0, 200, 83, 0.18);
}

.quote-chatbot__mascot {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  animation: quote-chatbot-mascot-bob 3.2s ease-in-out infinite;
}

.quote-chatbot__mascot-logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  /* White disc + green glow so the transparent PNG mascot stays visible */
  background: rgba(255, 255, 255, 0.94);
  border: 3px solid rgba(105, 240, 174, 0.8);
  box-shadow:
    0 0 0 2px rgba(0, 200, 83, 0.35),
    0 0 14px 3px rgba(0, 200, 83, 0.55),
    0 0 26px 6px rgba(0, 230, 118, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.12);
  animation: quote-chatbot-mascot-glow 4s ease-in-out infinite;
  will-change: transform, box-shadow;
  filter: none;
}

.quote-chatbot.is-mascot-thinking .quote-chatbot__mascot {
  animation: quote-chatbot-mascot-think 0.85s ease-in-out infinite;
}

.quote-chatbot.is-mascot-thinking .quote-chatbot__mascot-logo {
  animation: quote-chatbot-mascot-glow-fast 1.1s ease-in-out infinite;
}

@keyframes quote-chatbot-mascot-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes quote-chatbot-mascot-glow {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(0, 200, 83, 0.3),
      0 0 12px 2px rgba(0, 200, 83, 0.45),
      0 0 22px 5px rgba(0, 230, 118, 0.28),
      0 2px 10px rgba(0, 0, 0, 0.12);
  }

  50% {
    box-shadow:
      0 0 0 3px rgba(0, 200, 83, 0.5),
      0 0 18px 5px rgba(0, 200, 83, 0.7),
      0 0 32px 8px rgba(0, 230, 118, 0.42),
      0 2px 12px rgba(0, 0, 0, 0.14);
  }
}

@keyframes quote-chatbot-mascot-think {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-4deg); }
  75% { transform: translateY(-4px) rotate(4deg); }
}

@keyframes quote-chatbot-mascot-glow-fast {
  0%, 100% {
    box-shadow:
      0 0 0 2px rgba(0, 200, 83, 0.4),
      0 0 14px 3px rgba(0, 200, 83, 0.55),
      0 2px 10px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 3px rgba(0, 200, 83, 0.6),
      0 0 20px 6px rgba(0, 200, 83, 0.75),
      0 2px 12px rgba(0, 0, 0, 0.14);
  }
}

.quote-chatbot__composer-question {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.quote-chatbot__composer-question-label {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.quote-chatbot__composer-question-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-800);
}

.quote-chatbot__composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

@media (prefers-reduced-motion: reduce) {
  .quote-chatbot__mascot,
  .quote-chatbot__mascot-logo {
    animation: none !important;
  }
}

.quote-chatbot__input {
  flex: 1;
  min-height: 48px;
  max-height: 120px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  resize: vertical;
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

/* Answer field fills the composer row (voice/mic UI removed) */
.quote-chatbot__composer-row > .quote-chatbot__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}

.quote-chatbot__input:focus {
  outline: 2px solid rgba(0, 200, 83, 0.28);
  border-color: var(--green);
}

/* Voice quote owns the answer field (Start Voice Quote / mic) */
.quote-chatbot__composer.is-voice-active .quote-chatbot__composer-row,
.quote-chatbot__composer-row.is-voice-active {
  border-radius: 12px;
}

.quote-chatbot__input-with-mic.is-voice-active {
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.35);
  background: rgba(26, 115, 232, 0.04);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.quote-chatbot__input-with-mic.is-voice-active.is-listening {
  box-shadow: 0 0 0 2px rgba(234, 67, 53, 0.45);
  background: rgba(234, 67, 53, 0.06);
}

.quote-chatbot__input.is-voice-active {
  border-color: #1a73e8;
  background: #fff;
}

.quote-chatbot__input.is-voice-listening {
  border-color: #ea4335;
  box-shadow: inset 0 0 0 1px rgba(234, 67, 53, 0.2);
}

.quote-chatbot__input.is-voice-active::placeholder {
  color: #1a73e8;
  opacity: 0.85;
}

.quote-chatbot__input.is-voice-listening::placeholder {
  color: #c5221f;
  opacity: 0.9;
}

/* Street picker options (2–3 streets in ZIP) */
.quote-chatbot__quick--street {
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.25;
  padding: 10px 12px;
}

.quote-chatbot__composer-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: flex-end;
}

.quote-chatbot__composer-actions .btn {
  flex-shrink: 0;
}

.quote-chatbot.is-complete #quote-chat-reset {
  pointer-events: auto;
  opacity: 1;
}

.quote-chatbot__error {
  margin-top: 10px;
  font-size: 0.84rem;
  color: #b42318;
  font-weight: 600;
}

.quote-chatbot__error[hidden],
.quote-chatbot__success[hidden] {
  display: none;
}

.quote-chatbot__success {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 200, 83, 0.1);
  border: 1px solid rgba(0, 200, 83, 0.22);
  color: var(--green-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.quote-chatbot__disclosure {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 46, 28, 0.1);
  background: rgba(15, 46, 28, 0.03);
  color: var(--gray-600, #4b5563);
  font-size: 0.72rem;
  line-height: 1.45;
  font-weight: 500;
}

.quote-chatbot__disclosure a {
  color: var(--green-dark, #00a152);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quote-chatbot__disclosure a:hover {
  color: var(--navy, #0f2e1c);
}


.quote-chatbot.is-complete .quote-chatbot__composer-row {
  opacity: 1;
  pointer-events: auto;
}

.quote-chatbot.is-complete.is-credit-reconsideration .quote-chatbot__composer-row {
  opacity: 1;
  pointer-events: auto;
}

.quote-chatbot__carrier-results {
  padding: 0 24px 20px;
  background: var(--white);
}

.quote-chatbot__carrier-results[hidden] {
  display: none;
}

.quote-chatbot__carrier-panel {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid rgba(0, 200, 83, 0.18);
}

.quote-chatbot__carrier-headline {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--green-dark);
}

.quote-chatbot__carrier-disclaimer {
  margin: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4b5563;
}

.quote-chatbot__carrier-panel--final {
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 8px 28px rgba(15, 46, 28, 0.08);
}

.quote-chatbot__carrier-list {
  display: grid;
  gap: 10px;
}

/* Final 3 estimates: always stacked so all three are visible (never a single-rate preview) */
.quote-chatbot__carrier-list--final {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

@media (min-width: 900px) {
  .quote-chatbot__carrier-list--final {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.quote-chatbot__carrier-count {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
}

.quote-chatbot__carrier-agent-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(15, 46, 28, 0.06);
  border: 1px solid rgba(15, 46, 28, 0.12);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  color: #0f2e1c;
}

.quote-chatbot__carrier-card--final {
  display: grid !important;
  grid-template-columns: 36px 1fr auto !important;
  align-items: center;
  gap: 10px 12px;
  min-height: 88px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 200, 83, 0.28);
  background: #fff;
}

.quote-chatbot__carrier-final-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.quote-chatbot__carrier-final-main .quote-chatbot__carrier-logo {
  max-width: 120px;
  max-height: 36px;
  margin-bottom: 2px;
}

.quote-chatbot__carrier-qualify {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #065f46;
}

/* Keep final 3 estimates visible and prominent after submit */
.quote-chatbot.is-complete .quote-chatbot__carrier-results:not([hidden]) {
  display: block !important;
  margin-top: 8px;
  margin-bottom: 12px;
}

.quote-chatbot.is-complete .quote-chatbot__carrier-list--final .quote-chatbot__carrier-card--final {
  display: grid !important;
}

/* Inline 3-estimate block inside the completion chat message (condo/home/etc.) */
.quote-chatbot__inline-estimates {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 83, 0.3);
  background: linear-gradient(180deg, rgba(0, 200, 83, 0.08) 0%, #fff 55%);
}

.quote-chatbot__inline-estimates-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark, #00a152);
}

.quote-chatbot__inline-estimates .quote-chatbot__carrier-list--final {
  margin-top: 10px;
}

.quote-chatbot__carrier-list--preview {
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.quote-chatbot__carrier-card--preview {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  min-height: 72px;
  padding: 14px 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

button.quote-chatbot__carrier-card--preview {
  font: inherit;
  color: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.quote-chatbot__carrier-card--preview:hover {
  border-color: rgba(0, 200, 83, 0.35);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.quote-chatbot__carrier-card--preview.is-active {
  border-color: rgba(0, 200, 83, 0.55);
  box-shadow: 0 0 0 2px rgba(0, 200, 83, 0.14);
}

.quote-chatbot__carrier-card--preview:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.quote-chatbot__carrier-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
}

.quote-chatbot__carrier-card--preview .quote-chatbot__carrier-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 36px;
  object-fit: contain;
  object-position: center;
}

.quote-chatbot__carrier-card--preview .quote-chatbot__carrier-name {
  font-size: 0.84rem;
  line-height: 1.25;
}

.quote-chatbot__carrier-rate-panel {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.quote-chatbot__carrier-rate-hint,
.quote-chatbot__carrier-rate-label {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: #4b5563;
}

.quote-chatbot__carrier-rate-value {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green-dark);
}

.quote-chatbot__carrier-rate-range {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: #111827;
}

.quote-chatbot__carrier-rate-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b7280;
}

.quote-chatbot__carrier-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.quote-chatbot__carrier-rank {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.quote-chatbot__carrier-logo {
  max-width: 96px;
  max-height: 28px;
  object-fit: contain;
}

.quote-chatbot__carrier-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.quote-chatbot__carrier-name {
  font-size: 0.92rem;
  color: #111827;
}

.quote-chatbot__carrier-rate {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
}

.quote-chatbot__carrier-range {
  font-size: 0.8rem;
  color: #6b7280;
}

.quote-chatbot__property-maps {
  margin-top: 10px;
}

.quote-chatbot__property-map {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.quote-chatbot__property-map-label {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.quote-chatbot__property-map-frame {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.quote-chatbot__property-map-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
}

.quote-chatbot__property-map-link:hover {
  text-decoration: underline;
}

.quote-chatbot.is-verifying-address .quote-chatbot__composer-row,
.quote-chatbot.is-generating-vehicle-image .quote-chatbot__composer-row {
  opacity: 0.7;
}

.quote-chatbot.is-verifying-address .quote-chatbot__mascot,
.quote-chatbot.is-generating-vehicle-image .quote-chatbot__mascot {
  animation: quote-chatbot-mascot-think 0.85s ease-in-out infinite;
}

.quote-chatbot.is-verifying-address .quote-chatbot__mascot-logo,
.quote-chatbot.is-generating-vehicle-image .quote-chatbot__mascot-logo {
  animation: quote-chatbot-mascot-glow-fast 1.1s ease-in-out infinite;
}

.quote-chatbot__vehicle-image {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
}

.quote-chatbot__vehicle-image-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3f4f6;
}

.quote-chatbot__vehicle-image-note {
  margin: 0;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.4;
}

.quote-chatbot__carrier-badge {
  grid-row: span 2;
  align-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 200, 83, 0.12);
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 768px) {
  .quote-chatbot {
    min-height: 0;
  }

  .quote-chatbot__header {
    padding: 18px 16px 14px;
  }

  .quote-chatbot__title {
    font-size: 1.35rem;
  }

  .quote-chatbot__messages {
    min-height: 220px;
    max-height: min(42vh, 360px);
    padding: 16px;
  }

  .quote-chatbot__carrier-card {
    grid-template-columns: auto 1fr;
  }

  .quote-chatbot__carrier-badge {
    grid-row: auto;
    grid-column: 2;
    justify-self: start;
  }

  .quote-chatbot__composer-prompt {
    padding: 10px 12px;
  }

  .quote-chatbot__mascot {
    width: 58px;
    height: 58px;
  }

  .quote-chatbot__composer-question-text {
    font-size: 0.9rem;
  }

  .quote-chatbot__composer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-chatbot__composer-actions {
    width: 100%;
  }

  .quote-chatbot__composer-actions .btn {
    flex: 1;
  }

  .quote-chatbot__composer {
    padding-bottom: calc(var(--mobile-cta-height, 60px) + max(12px, env(safe-area-inset-bottom, 0px)));
  }

  body.has-mobile-hero-dock .quote-chatbot__composer {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }

  .quote-chatbot__product {
    min-height: 44px;
    padding: 10px 12px;
  }
}

@media (max-width: 480px) {
  .quote-chatbot__title {
    font-size: 1.2rem;
  }

  .quote-chatbot__messages {
    min-height: 180px;
    max-height: min(38vh, 300px);
  }

  .quote-chatbot__product-tabs {
    gap: 6px;
  }
}