/* SDL look & feel via CSS variables (set from PHP inline) */
:root{
  --tqt-panel:#e7e2d9;
  --tqt-border:#000;
  --tqt-ink:#263238;
  --tqt-muted:#6b7b83;
  --tqt-accent:#ff8a00;
  --tqt-cta:#1f86ea;
  --tqt-radius:16px;
  --tqt-heading:"Luckiest Guy", system-ui, sans-serif;
  --tqt-body:ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.tqt, .tqt * { box-sizing: border-box; }
.tqt-card{
  color:var(--tqt-ink);
  font-family:var(--tqt-body);
  background:transparent;
  max-width:760px; margin:0 auto; padding:14px;
}
.tqt-title{
  font-family:var(--tqt-title-font, var(--tqt-heading));
  font-size:var(--tqt-title-size, 22px);
  text-align:var(--tqt-title-align, left);
  letter-spacing:.2px; margin:0 0 8px;
}
.tqt-mode-pill{display:inline-flex;align-items:center;gap:6px;font-size:.7rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;padding:4px 10px;border-radius:999px;border:1px solid rgba(15,23,42,.15);color:var(--tqt-muted);margin-bottom:10px;}
.tqt-mode-pill--smooth{background:rgba(14,165,233,.12);border-color:rgba(14,165,233,.35);color:var(--tqt-cta);box-shadow:0 4px 12px rgba(14,165,233,.18);}
.tqt-grid{ display:grid; gap:8px; grid-template-columns:repeat(12,1fr); align-items:end; }
.tqt-field{ grid-column:span 12; }
.tqt-field.half{ grid-column:span 6; }
@media (max-width:760px){ .tqt-field.half{ grid-column:span 12 } .tqt-title{ font-size:min(var(--tqt-title-size, 22px), 20px); } }

/* Mobile layout: keep widget in normal flow to avoid fixed-position clipping + nested scrolling */
@media (max-width:760px){
  .tqt-card{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:auto;
    width:100%;
    max-width:760px;
    margin:0 auto;
    height:auto;
    min-height:0;
    max-height:none;
    overflow:visible;
    -webkit-overflow-scrolling:auto;
    background:var(--tqt-panel);
    border:3px solid var(--tqt-border);
    border-radius:var(--tqt-radius);
    padding-bottom:max(12px, env(safe-area-inset-bottom));
  }
}

/* Progressive reveal (ZIP UI only): show ZIP first, then reveal fields once options are loaded */
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-grid .tqt-field:not(.tqt-zip-field),
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-grid .tqt-field:not(.tqt-zip-field){
  display:none !important;
}

/* Local/manual mode uses a dropdown for service-area values (ZIPs or cities). */
.tqt.tqt-local-area-mode .tqt-zip-field input[name="zip"]{
  display:none !important;
}
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-getprice,
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-onboard,
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-coupon,
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-line,
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-trust,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-getprice,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-onboard,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-coupon,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-line,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-trust{
  display:none !important;
}
.tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-lead-gate,
.tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-lead-gate{
  display:none !important;
}

/* Compact “ZIP + button” layout (mobile/touch) */
@media (max-width:760px){
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist).tqt-card,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist).tqt-card{
    height:auto;
    min-height:0;
    max-height:none;
    overflow:visible;
    padding:10px;
  }
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-title,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-title{display:none !important;}
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-hint,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-hint{display:none !important;}
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-bar,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-bar{margin-top:8px;padding:8px;}
}
@media (hover:none) and (pointer:coarse){
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist).tqt-card,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist).tqt-card{padding:10px;}
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-title,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-title{display:none !important;}
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-hint,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-hint{display:none !important;}
  .tqt[data-ui-mode="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-bar,
  .tqt[data-profile="zip"]:not(.tqt-mobile-zip-ready):not(.tqt-is-waitlist) .tqt-bar{margin-top:8px;padding:8px;}
}

/* Bar slot (ZIP/phone) */
.tqt .tqt-bar-slot{ display:none; width:100%; }
.tqt .tqt-bar-price{ display:block; }

/* During ZIP-check stage, move the single ZIP input into the bar slot */
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-slot,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-slot{ display:block; }
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-price,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-price{ display:none; }
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-zip-field,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-zip-field{ display:none !important; }

/* After ZIP verified, if phone gating is enabled, show phone input in the bar slot */
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-slot,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-slot{ display:block; }
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-price,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-price{ display:none; }
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-lead-phone,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-lead-phone{ display:none !important; }

.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar,
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar{
  align-items:center;
}
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-left,
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-left,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-left,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-left{
  flex:1 1 auto;
  flex-direction:row;
  align-items:center;
}
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-slot,
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-slot,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-slot,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-slot{
  flex:1 1 auto;
}
.tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar .tqt-open,
.tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar .tqt-open,
.tqt[data-profile="zip"].tqt-slot-zip .tqt-bar .tqt-open,
.tqt[data-profile="zip"].tqt-slot-phone .tqt-bar .tqt-open{
  width:auto;
  flex:0 0 auto;
  white-space:nowrap;
}

.tqt-input,.tqt-select{
  width:100%; height:44px; border:1px solid #e6eef1; border-radius:12px; padding:10px 12px; font-size:15px; background:#fff; outline:none;
}
.tqt-input:focus,.tqt-select:focus{ border-color:var(--tqt-accent); box-shadow:0 0 0 3px color-mix(in srgb, var(--tqt-accent) 15%, transparent); }
.tqt-slider{display:none;margin-top:6px;flex-direction:column;gap:8px;}
.tqt-slider-input{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:var(--tqt-slider-track-height,6px);
  border-radius:999px;
  background:var(--tqt-slider-track,#e2e8f0);
  outline:none;
  border:none;
}
.tqt-slider-input::-webkit-slider-runnable-track{
  height:var(--tqt-slider-track-height,6px);
  border-radius:999px;
  background:var(--tqt-slider-track,#e2e8f0);
}
.tqt-slider-input::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:var(--tqt-slider-thumb-size,28px);
  height:var(--tqt-slider-thumb-size,28px);
  border-radius:50%;
  border:none;
  background:var(--tqt-slider-thumb,var(--tqt-cta));
  box-shadow:0 8px 18px rgba(15,23,42,.18);
  cursor:pointer;
}
.tqt-slider-input::-moz-range-track{
  height:var(--tqt-slider-track-height,6px);
  border-radius:999px;
  background:var(--tqt-slider-track,#e2e8f0);
}
.tqt-slider-input::-moz-range-thumb{
  width:var(--tqt-slider-thumb-size,28px);
  height:var(--tqt-slider-thumb-size,28px);
  border-radius:50%;
  border:none;
  background:var(--tqt-slider-thumb,var(--tqt-cta));
  box-shadow:0 8px 18px rgba(15,23,42,.18);
  cursor:pointer;
}
.tqt-slider-value{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:13px;font-weight:700;color:var(--tqt-ink);}
.tqt-slider-icon{width:var(--tqt-slider-icon-size,28px);height:var(--tqt-slider-icon-size,28px);border-radius:50%;background:#fff;border:2px solid rgba(15,23,42,.12);display:inline-flex;align-items:center;justify-content:center;font-size:calc(var(--tqt-slider-icon-size,28px)*.7);line-height:1;box-shadow:0 6px 14px rgba(15,23,42,.12);}
.tqt-slider-icon[data-mode="image"]{background-size:cover;background-position:center;background-repeat:no-repeat;font-size:0;}
.tqt-slider-label{text-align:right;}
.tqt-dog-slider-mode .tqt-dogs-field .tqt-select,
.tqt-frequency-slider-mode .tqt-frequency-field .tqt-select{display:none;}
.tqt-dog-slider-mode .tqt-dog-slider,
.tqt-frequency-slider-mode .tqt-frequency-slider{display:flex;}
.tqt-mode-smooth .tqt-dogs-field,
.tqt-mode-smooth .tqt-frequency-field,
.tqt-mode-smooth .tqt-last-cleaned-field,
.tqt-mode-smooth .tqt-dog-slider,
.tqt-mode-smooth .tqt-frequency-slider{display:none !important;}
.tqt-mode-smooth .tqt-zip-field{grid-column:span 12;}
.tqt-mode-smooth .tqt-lead-gate{display:none;}
.tqt-mode-smooth.tqt-has-quote .tqt-lead-gate{display:block;}
.tqt-mode-smooth.tqt-has-quote .tqt-lead-gate.half{grid-column:span 12;}

/* Buttons: keep plugin settings authoritative even when themes apply global button styles */
.tqt .tqt-btn{
  border:none !important;
  border-radius:14px !important;
  height:44px !important;
  padding:0 18px !important;
  cursor:pointer;
  font-family:var(--tqt-heading) !important;
  font-size:var(--tqt-cta-font-size, 18px) !important;
  font-weight:var(--tqt-cta-font-weight, 900) !important;
  line-height:1 !important;
  color:var(--tqt-cta-text, #fff) !important;
  background-color:var(--tqt-cta) !important;
  opacity:1 !important;
  filter:none !important;
  text-decoration:none !important;
}
.tqt .tqt-btn:not(:disabled){
  opacity:1 !important;
}
.tqt .tqt-btn:disabled{ opacity:.55; cursor:not-allowed; }
.tqt .tqt-btn.tqt-ghost,
.tqt .tqt-ghost{
  background-color:#fff !important;
  color:var(--tqt-ink) !important;
  border:2px solid var(--tqt-ink) !important;
  height:40px !important;
}

.tqt-getprice{ margin-top:6px; }

.tqt-bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--tqt-panel); border:3px solid var(--tqt-border); border-radius:var(--tqt-radius); padding:10px 14px; margin-top:10px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
.tqt-bar-left{ display:flex; flex-direction:column; gap:2px; }
.tqt-bar-label{ font-size:11px; font-weight:900; letter-spacing:.4px; text-transform:uppercase; }
.tqt-bar-per{ font-size:32px; font-weight:900; line-height:1; }
.tqt-bar-month{ font-size:12px; font-weight:900; letter-spacing:.3px; text-transform:uppercase; }
.tqt-hint{ color:var(--tqt-muted); font-size:12px; margin-top:6px; }

.tqt-line{ height:1px; background:#e6eef1; margin:12px 0; }
.tqt-trust{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; color:var(--tqt-trust,var(--tqt-muted)); font-size:12px; }
.tqt-dot{ width:6px; height:6px; background:#0e9f6e; border-radius:999px; display:inline-block; margin-right:6px }

/* Onboarding */
.tqt-onboard{ margin-top:14px; }
.tqt-onboard > summary{ list-style:none; cursor:pointer; font-weight:700; font-size:14px; color:var(--tqt-ink); }
.tqt-onboard > summary::-webkit-details-marker{ display:none; }
.tqt-onboard[open] > summary { margin-bottom:8px; }

.tqt-onboard-body{
  padding:14px; border:3px solid var(--tqt-border); border-radius:var(--tqt-radius);
  background:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
}
.tqt-estimate{ font-size:14px; color:var(--tqt-muted); margin-bottom:6px; }
.tqt-estimate-num{ font-size:18px; font-weight:900; color:var(--tqt-ink); margin-right:6px; }

.tqt-note{ color:var(--tqt-muted); font-size:12px; margin-top:6px; }
.tqt-actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }

.tqt-addon-list{ display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.tqt-addon{ display:inline-flex; align-items:center; gap:8px; border:1px solid #e6eef1; border-radius:999px; padding:8px 12px; }
.tqt-addon input{ accent-color:var(--tqt-accent); }
.tqt-price{ font-weight:700; margin-left:4px; }

.tqt-msg{ margin-top:8px; font-size:13px; }
.tqt-ok{ color:#0e9f6e; }
.tqt-err{ color:#b00020; }
.tqt-onboard--smooth .tqt-onboard-body{border:3px solid rgba(15,23,42,.12);background:linear-gradient(145deg, color-mix(in srgb,var(--tqt-panel) 80%, #fff), #fff);box-shadow:0 25px 65px rgba(15,23,42,.18);} 
.tqt-onboard-form--smooth .tqt-grid{margin-top:12px;}
.tqt-smooth-flow{display:flex;flex-direction:column;gap:18px;}
.tqt-smooth-progress{display:flex;gap:10px;align-items:center;}
.tqt-smooth-dot{width:12px;height:12px;border-radius:999px;background:rgba(15,23,42,.18);opacity:.35;transition:opacity .2s ease,transform .2s ease;}
.tqt-smooth-dot.is-active{opacity:1;background:var(--tqt-cta);transform:scale(1.05);}
.tqt-smooth-step{display:none;padding:4px 0;}
.tqt-smooth-step.is-active{display:block;animation:tqtSmoothStep .24s ease;} 
.tqt-smooth-eyebrow{font-size:11px;letter-spacing:.28em;text-transform:uppercase;font-weight:700;color:var(--tqt-muted);margin:0 0 6px;}
.tqt-smooth-step h3{margin:0 0 10px;font-size:1.35rem;font-family:var(--tqt-heading);}
.tqt-smooth-copy{margin:6px 0 0;font-size:.95rem;color:var(--tqt-muted);}
.tqt-smooth-price{border-radius:24px;padding:18px;border:1px solid rgba(15,23,42,.08);background:color-mix(in srgb,var(--tqt-panel) 70%, #fff);box-shadow:0 24px 40px rgba(15,23,42,.12);}
.tqt-smooth-price-primary{font-size:2.4rem;font-weight:900;color:var(--tqt-ink);line-height:1;}
.tqt-smooth-price-secondary{margin-top:6px;font-size:.95rem;color:var(--tqt-muted);text-transform:capitalize;}
.tqt-smooth-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px;}
.tqt-onboard--smooth .tqt-note{font-size:.88rem;color:var(--tqt-muted);} 
.tqt-onboard--smooth .tqt-addons{margin-top:8px;}
.tqt-onboard--smooth .tqt-addon2{margin-top:10px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;}
.tqt-smooth-change-link{align-self:flex-start;background:none;border:none;padding:0;font-size:.85rem;font-weight:600;color:var(--tqt-muted);text-decoration:underline;cursor:pointer;}
.tqt-smooth-change-link:hover{color:var(--tqt-ink);}
@keyframes tqtSmoothStep{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

/* Layout polish: ensure the card can contain absolute popups */
.tqt-card{ position:relative; }

/* Phone + consent alignment */
.tqt-field--consent-row{ display:flex; gap:8px; align-items:center; }
.tqt-lead-consent{ width:16px; height:16px; margin-right:8px; vertical-align:middle; }
.tqt-field .tqt-lead-consent + label{ display:inline-flex; gap:8px; align-items:center; }
.tqt-input[name="lead_phone"]{ padding-right:40px; }

/* (Freshguard removed) */

/* Popup styles */
.tqt-popup{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:360px; max-width:90vw; z-index:1500; border-radius:12px; background:#fff; box-shadow:0 8px 30px rgba(0,0,0,0.25); padding:12px; }
.tqt-popup-inner{ position:relative; }
.tqt-popup .tqt-popup-close{ position:absolute; right:8px; top:6px; border:none; background:transparent; font-size:20px; line-height:1; cursor:pointer; }
.tqt-popup h3{ margin:6px 0 8px; font-size:16px; }
.tqt-popup-desc{ color:var(--tqt-muted); font-size:13px; }

@media (max-width:520px){
  .tqt-popup{ width:92vw; left:50%; top:50%; transform:translate(-50%,-50%); }
}

/* Improved mobile layout: reduce padding, font-sizes and stack the price bar */
@media (max-width:520px){
  .tqt-card{ padding:8px; }
  .tqt-grid{ gap:6px; }
  .tqt-title{ font-size:min(var(--tqt-title-size, 22px), 18px); }
  .tqt-input,.tqt-select{ height:40px; padding:8px 10px; font-size:14px; border-radius:10px; }
  .tqt .tqt-btn{ height:40px !important; font-size:min(var(--tqt-cta-font-size, 18px), 15px) !important; border-radius:12px !important; padding:0 12px !important; }
  .tqt-bar{ flex-direction:column; align-items:stretch; padding:8px; gap:8px; }
  .tqt-bar-left{ flex-direction:row; justify-content:space-between; align-items:center; }
  .tqt-bar-per{ font-size:20px; }
  .tqt-bar-month{ font-size:11px; }
  .tqt-bar .tqt-open{ align-self:flex-end; width:120px; }
  .tqt-estimate-num{ font-size:16px; }
  .tqt-trust{ font-size:11px; gap:8px; }
  .tqt-smooth-price-primary{font-size:2rem;}
  .tqt-smooth-actions .tqt-btn{flex:1 1 auto;}
}

/* Further mobile fixes for very narrow screens */
@media (max-width:420px){
  .tqt-card{ padding:10px; }
  .tqt-grid{ gap:10px; }
  .tqt-field{ margin-bottom:4px; }
  .tqt-input,.tqt-select{ height:44px; font-size:15px; }
  .tqt-bar{ padding:10px; border-width:2px; }
  .tqt-bar{ display:flex; flex-direction:row; flex-wrap:wrap; gap:8px; align-items:center; }
  .tqt-bar-left{ flex:1 1 auto; display:flex; flex-direction:column; align-items:flex-start; }
  .tqt-bar-per{ font-size:20px; }
  .tqt-bar .tqt-open{ flex:0 0 100%; width:100%; height:40px; font-size:15px; }
  .tqt-hint{ font-size:12px; }

  /* ZIP checker: keep ZIP/phone + CTA on ONE line (never wrap) */
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar{
    flex-wrap:nowrap;
    flex-direction:row;
  }
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-left,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-left,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-left,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-left{
    min-width:0;
    flex:1 1 auto;
    flex-direction:row;
    align-items:center;
    gap:8px;
  }
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-slot,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-slot,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-slot,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-slot{
    min-width:0;
    flex:1 1 auto;
  }
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-slot .tqt-field,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-slot .tqt-field,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-slot .tqt-field,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-slot .tqt-field{
    width:100%;
    max-width:none;
    margin:0;
  }
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar-slot input,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar-slot input,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar-slot input,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar-slot input{
    min-width:0;
  }
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar .tqt-open,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar .tqt-open,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar .tqt-open,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar .tqt-open{
    flex:0 0 auto;
    width:auto;
  }
}

/* Extra narrow screens: reduce font sizes to prevent truncation/squish */
@media (max-width:380px){
  .tqt-input,.tqt-select{ font-size:13px; padding:8px; height:42px; }
  .tqt-title{ font-size:min(var(--tqt-title-size, 22px), 16px); }
  .tqt-bar-per{ font-size:18px; }
  .tqt-bar-month{ font-size:10px; }
  .tqt .tqt-btn{ font-size:min(var(--tqt-cta-font-size, 18px), 14px) !important; }
  .tqt-trust{ font-size:11px; }
  .tqt-addon{ padding:6px 10px; }
}

@media (max-width:360px){
  .tqt-card{ padding:8px; }
  .tqt-grid{ gap:8px; }
  .tqt-field.half{ grid-column:span 12; }
  .tqt-bar{ padding:8px; gap:6px; }
  .tqt-bar-left{ align-items:flex-start; }
  .tqt-bar .tqt-open{ height:40px; }
  .tqt-bar-per{ font-size:17px; }

  /* ZIP checker: slight CTA tightening to help keep one row */
  .tqt[data-ui-mode="zip"].tqt-slot-zip .tqt-bar .tqt-open,
  .tqt[data-ui-mode="zip"].tqt-slot-phone .tqt-bar .tqt-open,
  .tqt[data-profile="zip"].tqt-slot-zip .tqt-bar .tqt-open,
  .tqt[data-profile="zip"].tqt-slot-phone .tqt-bar .tqt-open{
    padding:0 12px;
    font-size:14px;
  }
}

.tqt-coupon{position:relative;}
.tqt-coupon-trigger{margin-top:10px;text-align:right;}
.tqt-coupon-trigger[hidden]{display:none;}
.tqt-open-coupon{height:36px;font-size:14px;padding:0 16px;border-radius:999px;}
.tqt-coupon-box{margin-top:10px;background:#fff;border-radius:22px;padding:16px;border:1px solid rgba(15,23,42,.12);box-shadow:0 18px 34px rgba(15,23,42,.14);}
.tqt-coupon-box[hidden]{display:none;}
.tqt-coupon-title{font-weight:800;font-size:16px;margin-bottom:10px;color:var(--tqt-ink);}
.tqt-coupon-row{display:flex;gap:8px;align-items:center;}
.tqt-coupon-row .tqt-input{flex:1 1 auto;}
.tqt-coupon-row .tqt-btn{flex:0 0 auto;height:44px;}
.tqt-coupon-status{margin-top:8px;}
.tqt-coupon-help{margin-top:14px;padding-top:12px;border-top:1px solid rgba(15,23,42,.08);}
.tqt-coupon-help-toggle{width:100%;font-size:14px;height:38px;border-radius:12px;}
.tqt-coupon-help-body{margin-top:10px;}
.tqt-coupon-help-body[hidden]{display:none;}
.tqt-coupon-help-row{display:flex;gap:8px;align-items:center;margin-top:6px;}
.tqt-coupon-help-row .tqt-input{flex:1 1 auto;}
.tqt-coupon-help-row .tqt-btn{flex:0 0 auto;height:42px;}
.tqt-coupon-help-status{margin-top:6px;}

@media (max-width:520px){
  .tqt-coupon-box{padding:12px;border-radius:18px;}
  .tqt-coupon-title{font-size:15px;margin-bottom:8px;}
  .tqt-coupon-row{flex-direction:column;align-items:stretch;}
  .tqt-coupon-row .tqt-btn{width:100%;height:40px;}
}

.tqt-waitlist{
  border:2px dashed var(--tqt-border);
  border-radius:var(--tqt-radius);
  padding:12px;
  background:color-mix(in srgb, var(--tqt-panel) 65%, #fff);
  margin-top:12px;
}
.tqt-waitlist-copy{ font-size:13px; color:var(--tqt-ink); font-weight:600; }
.tqt-waitlist-form{ display:flex; gap:8px; margin-top:10px; }
.tqt-waitlist-form .tqt-input{ flex:1 1 auto; }
.tqt-waitlist-form .tqt-btn{ flex:0 0 auto; }

.tqt-is-waitlist .tqt-grid .tqt-field:not(.tqt-zip-field){ display:none; }
.tqt-is-waitlist .tqt-field-coupon,
.tqt-is-waitlist .tqt-bar,
.tqt-is-waitlist .tqt-onboard,
.tqt-is-waitlist .tqt-hint,
.tqt-is-waitlist .tqt-note{ display:none; }
.tqt-is-waitlist .tqt-waitlist{ display:block !important; }
