/* JK+ · Cotação recolhível: um único cartão, no início da página ou no painel. */
.quote-widget-launcher[hidden],
.quote-widget-panel[hidden],
.quote-widget-placeholder[hidden] {
  display:none !important;
}

.quote-widget-launcher,
.quote-widget-panel {
  position:fixed;
  right:22px;
  bottom:calc(max(20px, env(safe-area-inset-bottom, 0px)) + 66px);
}

.quote-widget-launcher {
  z-index:910;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  max-width:calc(100vw - 44px);
  min-height:48px;
  padding:0 18px;
  border:1px solid #D4A017;
  border-radius:999px;
  background:#E0B52B;
  color:#0B3D2E;
  box-shadow:0 8px 24px rgba(8,44,35,.19);
  font:800 13px/1.2 "Montserrat",Arial,sans-serif;
  white-space:nowrap;
  cursor:pointer;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease;
}

.quote-widget-launcher svg {
  width:22px;
  height:22px;
  flex:0 0 22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.quote-widget-launcher:hover {
  background:#0F6B4E;
  color:#fff;
  box-shadow:0 10px 26px rgba(8,44,35,.23);
}

.quote-widget-panel {
  z-index:920;
  width:min(380px, calc(100vw - 44px));
  max-height:calc(100vh - 120px);
  max-height:calc(100svh - 120px);
  margin:0;
  padding:0;
  overflow:auto;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#9cb8aa #f8f6ef;
  border-radius:18px;
  background:#fff;
  box-shadow:0 16px 44px rgba(8,44,35,.24);
}

/* Neutraliza a posição, a largura e o alongamento usados apenas dentro da foto. */
.quote-widget-panel .hero-quote-card {
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  margin:0 !important;
  translate:none !important;
  transform:none !important;
  align-self:auto !important;
  display:flex;
  flex-direction:column;
  border-radius:18px;
  background:#fff;
  box-shadow:none;
}

.quote-widget-panel .hero-quote-card .hero-continue {
  flex:none;
  margin-top:7px !important;
}

.hero-quote-card > .quote-widget-close {
  position:absolute;
  z-index:5;
  top:8px;
  right:8px;
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  margin:0;
  padding:0;
  border:1px solid transparent;
  border-radius:50%;
  background:transparent;
  color:#0B3D2E;
  cursor:pointer;
  transition:background-color .18s ease,border-color .18s ease;
}

.quote-widget-close svg {
  display:block;
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
}

.hero-quote-card > .quote-widget-close:hover {
  border-color:#c9ddd2;
  background:#edf4ef;
}

.hero-quote-card > .quote-kicker {
  padding-right:28px;
}

.quote-widget-launcher:focus-visible,
.hero-quote-card > .quote-widget-close:focus-visible {
  outline:3px solid #0F6B4E;
  outline-offset:3px;
}

/* Os rádios ficam visualmente ocultos, mas o foco continua visível na opção. */
.hero-quote-card .hero-choice:focus-within {
  outline:3px solid #0F6B4E;
  outline-offset:2px;
}

.quote-widget-placeholder {
  width:1px;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
  pointer-events:none;
}

/* O assistente completo de cotação e o agendamento ficam acima dos atalhos. */
.quote-modal,
.schedule-modal.quote-modal {
  z-index:1200;
}

@media(max-width:760px) {
  .quote-widget-launcher,
  .quote-widget-panel {
    right:14px;
    bottom:calc(max(14px, env(safe-area-inset-bottom, 0px)) + 66px);
  }

  .quote-widget-launcher {
    max-width:calc(100vw - 28px);
    min-height:46px;
    padding:0 15px;
  }

  .quote-widget-panel {
    width:min(380px, calc(100vw - 28px));
    max-height:calc(100vh - 112px);
    max-height:calc(100svh - 112px);
  }
}

@media(prefers-reduced-motion:reduce) {
  .quote-widget-launcher,
  .hero-quote-card > .quote-widget-close {
    transition:none;
  }
}

/* Revisão 33: Cotação JK+ e WhatsApp formam um par de atalhos com dimensões iguais. */
.whatsapp-float,
.quote-widget-launcher {
 box-sizing:border-box;
 right:22px;
 width:224px;
 height:54px;
 min-height:54px;
 padding:0 16px;
 gap:10px;
 font:700 14px/1 "Montserrat",Arial,sans-serif;
}
.whatsapp-float svg,
.quote-widget-launcher svg { width:23px; height:23px; flex:0 0 23px; }
@media(max-width:760px) {
 .whatsapp-float,
 .quote-widget-launcher { right:14px; }
 .whatsapp-float { bottom:max(14px,env(safe-area-inset-bottom)); }
}
@media(max-width:420px) {
 .whatsapp-float,
 .quote-widget-launcher { width:54px; height:54px; min-height:54px; padding:0; gap:0; }
 .whatsapp-float span, .quote-widget-launcher span { display:none; }
 .whatsapp-float svg,
 .quote-widget-launcher svg { width:25px; height:25px; flex-basis:25px; }
}
