.smartlab-cf-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:999999}.smartlab-cf-overlay[hidden],.smartlab-cf-results[hidden]{display:none}.smartlab-cf-modal{position:relative;background:#fff;color:#1c1f26;width:100%;max-width:760px;max-height:90vh;overflow:auto;border-radius:16px;padding:24px;box-shadow:0 15px 50px rgba(0,0,0,.25)}.smartlab-cf-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:28px;cursor:pointer}.smartlab-cf-modal h3{margin:0 35px 20px}.smartlab-cf-modal label{display:block;font-size:13px;font-weight:600;margin-bottom:12px}.smartlab-cf-modal input,.smartlab-cf-modal select{display:block;width:100%;margin-top:5px;padding:11px;border:1px solid #ddd;border-radius:8px;background:#fff;color:#1c1f26;font:inherit}.smartlab-cf-modal select:disabled{background:#f7f8fa;color:#888;cursor:not-allowed}.smartlab-cf-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.smartlab-cf-open,.smartlab-cf-find{border:0;border-radius:9px;padding:12px 18px;background:#e31c4e;color:#fff;font-weight:700;cursor:pointer}.smartlab-cf-find{width:100%;margin-top:8px}.smartlab-cf-location{width:100%;border:1px solid #ddd;border-radius:9px;padding:11px;background:#f7f8fa;cursor:pointer}.smartlab-cf-status{font-size:13px;color:#666}
.smartlab-cf .smartlab-cf-status{
  margin:10px 0 0 !important;
  padding:0;
  text-align:center;
  border-radius:8px;
  transition:padding .12s ease;
}
.smartlab-cf .smartlab-cf-status:not(:empty){
  padding:10px 14px !important;
  background:#f7f8fa;
  border:1px solid #e5e7eb;
  color:#4b5563;
  font-weight:600;
}
.smartlab-cf .smartlab-cf-status.is-loading{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  background:#fff5f5;
  border-color:#f6c8cc;
  color:#9a1620;
}
.smartlab-cf .smartlab-cf-status.is-loading::before{
  content:"";
  width:15px;
  height:15px;
  flex-shrink:0;
  border:2px solid #f3c4c8;
  border-top-color:#eb1e26;
  border-radius:50%;
  animation:smartlab-cf-spin .7s linear infinite;
}
@keyframes smartlab-cf-spin{
  to{ transform:rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .smartlab-cf .smartlab-cf-status.is-loading::before{ animation-duration:1.6s; }
}.smartlab-cf-results-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.smartlab-cf-map{min-height:320px;border:1px solid #ddd;border-radius:12px;overflow:hidden;background:#eef2f7}.smartlab-cf-map>div{width:100%;height:100%;min-height:320px}.smartlab-cf-list{max-height:320px;overflow:auto}.smartlab-cf-card{border:1px solid #ddd;border-radius:10px;padding:12px;margin-bottom:8px;cursor:pointer}.smartlab-cf-card.active{border-color:#16a34a}.smartlab-cf-card strong{display:block}.smartlab-cf-card small{display:block;color:#666;margin-top:3px}.smartlab-cf-detail{margin-top:14px;padding:14px;background:#f7f8fa;border-radius:10px}.smartlab-cf-actions{display:flex;gap:10px;margin-top:12px}.smartlab-cf-actions a{flex:1;text-align:center;text-decoration:none;padding:10px;border-radius:8px;font-weight:700}.smartlab-cf-directions{background:#e31c4e;color:#fff}.smartlab-cf-call{border:1px solid #16a34a;color:#16a34a}@media(max-width:600px){.smartlab-cf-row,.smartlab-cf-results-grid{grid-template-columns:1fr}.smartlab-cf-modal{padding:18px}.smartlab-cf-list{max-height:none}}

/* New Chemist Finder button. The existing WhatsApp Enquire Now button is not modified. */
.smartlab-cf-new-button .smartlab-cf-open{
	display:inline-block;
	margin-top:15px;
	background:#2d3d66;
	color:#fff;
	border:0;
	border-radius:5px;
	padding:10px 15px;
	font-size:16px;
	font-weight:400;
	line-height:20px;
	cursor:pointer;
}

/* Separate Chemist Finder button injected beside the existing WhatsApp button. */
.smartlab-cf-external-open{display:inline-block;margin:15px 0 0 8px;padding:10px 15px;border:1px solid #2d3d66;border-radius:5px;background:#2d3d66;color:#fff;font-size:16px;font-weight:400;line-height:20px;cursor:pointer;text-decoration:none;}
.smartlab-cf-external-open:hover{opacity:.9;}

/* The internal trigger is kept for the plugin, while the visible trigger is inserted beside the existing WhatsApp button. */
.smartlab-cf-footer-host .smartlab-cf-open{display:none !important;}
.smartlab-cf-footer-host{display:block;}


/* v0.3.1: match the prototype's lightweight Change my details link. */
.smartlab-cf-back{display:inline-block;border:0;background:transparent !important;padding:0;margin:0 0 6px;color:#333;text-decoration:underline;font-size:13px;font-weight:400;cursor:pointer;box-shadow:none;}
.smartlab-cf-back:hover{background:transparent !important;color:#111;text-decoration:underline;}


/* v0.3.2: restore the two-step UI and tighten product title spacing. */
.smartlab-cf-modal h3{margin:0 34px 12px 0;font-size:20px;line-height:1.25;font-weight:700;color:#12315a;}
.smartlab-cf-tabs{display:flex;gap:8px;align-items:center;border-bottom:1px solid #e5e7eb;padding-bottom:8px;margin-bottom:14px;}
.smartlab-cf-tab{border:1px solid #e5e7eb;background:#f4f5f7;color:#6b7280;border-radius:18px;padding:7px 12px;font-size:12px;font-weight:600;line-height:1;cursor:default;}
.smartlab-cf-tab.active{background:#ed174b;color:#fff;border-color:#ed174b;}
.smartlab-cf-results .smartlab-cf-back{margin-bottom:6px;}
@media(max-width:600px){.smartlab-cf-modal h3{font-size:18px;margin-right:30px;}.smartlab-cf-tabs{gap:6px;}.smartlab-cf-tab{font-size:11px;padding:7px 10px;}}


/* v0.4.0: Leaflet/OpenStreetMap map styling. */
.smartlab-cf-map{position:relative;min-height:340px;background:#eef2f7}
.smartlab-cf-map .leaflet-container{width:100%;height:340px;min-height:340px;font:inherit;z-index:1}
.smartlab-cf-map .leaflet-control-attribution{font-size:10px}
.smartlab-cf-map-message{display:flex;align-items:center;justify-content:center;min-height:340px;padding:24px;text-align:center;color:#5f6670;background:#f4f6f8}
.smartlab-cf-marker-wrap{background:transparent !important;border:0 !important}
.smartlab-cf-marker{display:block;width:24px;height:24px;border-radius:50% 50% 50% 0;background:#ed174b;border:3px solid #fff;box-shadow:0 2px 8px rgba(0,0,0,.28);transform:rotate(-45deg);position:relative}
.smartlab-cf-marker:after{content:"";position:absolute;width:7px;height:7px;left:6px;top:6px;background:#fff;border-radius:50%}
.smartlab-cf-marker.is-active{background:#16a34a;transform:rotate(-45deg) scale(1.08)}
.smartlab-cf-detail-phone{margin-top:4px;color:#5f6670}
.smartlab-cf-list{padding-right:2px}
.smartlab-cf-card{text-align:left;width:100%;background:#fff;color:#1c1f26;font:inherit}
.smartlab-cf-card.active{box-shadow:0 0 0 1px #16a34a inset}
@media(max-width:600px){
  .smartlab-cf-map .leaflet-container{height:280px;min-height:280px}
  .smartlab-cf-map{min-height:280px}
}


/* v0.5.1: Keep Get Directions text visible despite theme link styles (v0.9.2 gives
   it a real, brand-colored hover state instead of forcing one flat color always). */
.smartlab-cf-actions .smartlab-cf-directions,
.smartlab-cf-actions .smartlab-cf-directions:visited{
  color:#fff !important;
  text-decoration:none !important;
  opacity:1 !important;
}

/* v0.7.2: State + city share one row; pincode uses the full row below. */
.smartlab-cf-location-row{grid-template-columns:1fr 1fr;}
.smartlab-cf-location-row label:last-child{grid-column:1 / -1;}
@media(max-width:700px){.smartlab-cf-location-row{grid-template-columns:1fr;}.smartlab-cf-location-row label:last-child{grid-column:auto;}}

/* v0.6.4/v0.6.5: prevent the page behind the fixed popup from scrolling. */
html.smartlab-cf-no-scroll, body.smartlab-cf-no-scroll{overflow:hidden !important;}
.smartlab-cf-overlay{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.smartlab-cf-modal{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}


/* v0.6.6: hard background scroll lock for themes/plugins that scroll html/body or
   attach their own wheel/touch handlers. The modal remains the only scroll area. */
html.smartlab-cf-no-scroll,
html.smartlab-cf-no-scroll body{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html.smartlab-cf-no-scroll body{
  height:100% !important;
  touch-action:none !important;
}
.smartlab-cf-overlay{
  touch-action:none;
  overscroll-behavior:none !important;
}
.smartlab-cf-modal{
  touch-action:auto;
  overscroll-behavior:contain !important;
}


/* v0.6.7: nested popup/list scrolling must never chain to the page behind it.
   Keep the list as a real desktop scroll container so its scrollbar can be
   dragged normally, while the JS wheel guard prevents theme smooth-scroll
   handlers from moving the background. */
.smartlab-cf-list{
  max-height:320px !important;
  min-height:0;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:auto;
  scrollbar-gutter:stable;
  pointer-events:auto !important;
  position:relative;
  z-index:2;
}
.smartlab-cf-modal{
  overscroll-behavior-y:contain !important;
}
.smartlab-cf-overlay{
  overscroll-behavior:none !important;
}
@media(max-width:600px){
  .smartlab-cf-list{
    max-height:280px !important;
  }
}


/* v0.7.4: inline product-page layout — no popup/backdrop. */
.smartlab-cf-footer-host{display:none !important;}
.smartlab-cf{display:block;width:100%;margin:0;}
.smartlab-cf .smartlab-cf-open{display:none !important;}
.smartlab-cf-overlay{
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  min-height:0;
  display:block !important;
  padding:0 !important;
  margin:16px 0 0 !important;
  background:transparent !important;
  z-index:auto !important;
}
.smartlab-cf-overlay[hidden]{display:none !important;}
.smartlab-cf-modal{
  position:relative !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  overflow:visible !important;
  padding:20px !important;
  border:1px solid #e1e4e8;
  border-radius:12px;
  box-shadow:0 4px 18px rgba(0,0,0,.08) !important;
  background:#fff !important;
}
.smartlab-cf-close{top:10px;right:12px;}
.smartlab-cf-modal h3{margin-right:34px;}
.smartlab-cf-form-step{width:100%;}
.smartlab-cf-results-grid{grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr);}
@media(max-width:700px){
  .smartlab-cf-overlay{margin-top:12px !important;}
  .smartlab-cf-modal{padding:16px !important;}
  .smartlab-cf-results-grid{grid-template-columns:1fr;}
}


/* v0.7.5: always-visible inline finder directly below the existing Enquire Now button.
   No separate Find Chemist button and no popup interaction are used. */
.smartlab-cf-external-open{display:none !important;}
.smartlab-cf .smartlab-cf-open{display:none !important;}
.smartlab-cf-close{display:none !important;}
.smartlab-cf-overlay[hidden]{display:block !important;}
.smartlab-cf-overlay{display:block !important;position:relative !important;inset:auto !important;width:100% !important;height:auto !important;min-height:0 !important;margin:16px 0 0 !important;padding:0 !important;background:transparent !important;z-index:auto !important;}
.smartlab-cf-modal{position:relative !important;width:100% !important;max-width:none !important;max-height:none !important;overflow:visible !important;}


/* v0.7.6: final inline layout override.
   The same Step 1 / Step 2 markup and JS are retained, but the finder is a normal
   in-flow section directly below the existing Enquire Now button. */
.smartlab-cf-footer-host{
  display:block !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
.smartlab-cf-footer-host .smartlab-cf{
  display:block !important;
  position:relative !important;
  width:100% !important;
  margin:16px 0 0 !important;
  padding:0 !important;
}
.smartlab-cf-footer-host .smartlab-cf-overlay,
.smartlab-cf .smartlab-cf-overlay{
  position:static !important;
  inset:auto !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  z-index:auto !important;
  visibility:visible !important;
  opacity:1 !important;
}
.smartlab-cf .smartlab-cf-overlay[hidden]{
  display:block !important;
}
.smartlab-cf .smartlab-cf-modal{
  position:relative !important;
  display:block !important;
  width:100% !important;
  max-width:none !important;
  max-height:none !important;
  min-height:0 !important;
  margin:0 !important;
  padding:20px !important;
  overflow:visible !important;
  background:#fff !important;
  border:1px solid #e1e4e8 !important;
  border-radius:12px !important;
  box-shadow:0 4px 18px rgba(0,0,0,.08) !important;
}
.smartlab-cf .smartlab-cf-close{
  display:none !important;
}
.smartlab-cf .smartlab-cf-external-open,
.smartlab-cf .smartlab-cf-open{
  display:none !important;
}
@media(max-width:700px){
  .smartlab-cf-footer-host .smartlab-cf{margin-top:12px !important;}
  .smartlab-cf .smartlab-cf-modal{padding:16px !important;}
}


/* v0.7.8: add clear separation above the inline finder and update the requested brand red. */
.smartlab-cf-footer-host .smartlab-cf{
  margin-top:30px !important;
}
.smartlab-cf .smartlab-cf-tab.active{
  background:#eb1e26 !important;
  border-color:#eb1e26 !important;
}
.smartlab-cf .smartlab-cf-find{
  background:#eb1e26 !important;
}
@media(max-width:700px){
  .smartlab-cf-footer-host .smartlab-cf{margin-top:24px !important;}
}

/* v0.7.8: refine inline form spacing and normalize State/City control height. */
.smartlab-cf .smartlab-cf-form-step > label{
  margin-bottom:16px !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row{
  margin-bottom:16px !important;
}
.smartlab-cf .smartlab-cf-location-row > label{
  margin-bottom:0 !important;
}
.smartlab-cf .smartlab-cf-form-step input,
.smartlab-cf .smartlab-cf-form-step select{
  height:38px !important;
  min-height:38px !important;
  box-sizing:border-box !important;
  line-height:1.2 !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-find{
  margin-top:0 !important;
}
@media(max-width:700px){
  .smartlab-cf .smartlab-cf-form-step > label,
  .smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row{
    margin-bottom:14px !important;
  }
}

/* v0.7.9: improve inline finder text contrast against theme styles. */
.smartlab-cf .smartlab-cf-form-step label{
  color:#111827 !important;
  opacity:1 !important;
}
.smartlab-cf .smartlab-cf-form-step input,
.smartlab-cf .smartlab-cf-form-step select{
  color:#1c1f26 !important;
  background:#fff !important;
  opacity:1 !important;
  -webkit-text-fill-color:#1c1f26 !important;
}
.smartlab-cf .smartlab-cf-form-step select:disabled{
  color:#4b5563 !important;
  background:#f7f8fa !important;
  opacity:1 !important;
  -webkit-text-fill-color:#4b5563 !important;
}
.smartlab-cf .smartlab-cf-form-step input::placeholder{
  color:#6b7280 !important;
  opacity:1 !important;
  -webkit-text-fill-color:#6b7280 !important;
}
.smartlab-cf .smartlab-cf-tab{
  color:#374151 !important;
  opacity:1 !important;
}
.smartlab-cf .smartlab-cf-tab.active{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}


/* v0.8.0: normalize all Step 1 controls without clipping select text.
   The previous 38px fixed height left too little inner space once the theme
   applied its own select padding/line-height. */
.smartlab-cf .smartlab-cf-form-step input,
.smartlab-cf .smartlab-cf-form-step select{
  height:46px !important;
  min-height:46px !important;
  padding:10px 12px !important;
  line-height:24px !important;
  box-sizing:border-box !important;
  vertical-align:middle !important;
}
.smartlab-cf .smartlab-cf-form-step select{
  appearance:auto !important;
  -webkit-appearance:auto !important;
}
.smartlab-cf .smartlab-cf-form-step select option{
  line-height:24px !important;
}

/* v0.8.1: give State/City select arrows comfortable right-side spacing.
   Replace the browser-native arrow so it does not sit against the field border. */
.smartlab-cf .smartlab-cf-form-step select{
  appearance:none !important;
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  padding-right:40px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1f26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 12px center !important;
  background-size:14px 14px !important;
}
.smartlab-cf .smartlab-cf-form-step select:disabled{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* v0.8.1: give State/City select arrows comfortable right-side spacing.
   Replace the browser-native arrow so it does not sit against the field border. */
.smartlab-cf .smartlab-cf-form-step select{
  appearance:none !important;
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  padding-right:40px !important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231c1f26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat:no-repeat !important;
  background-position:right 12px center !important;
  background-size:14px 14px !important;
}
.smartlab-cf .smartlab-cf-form-step select:disabled{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}


/* v0.8.3: slightly reduce State/City dropdown arrow size. Some themes render
   their own select-arrow/background repeatedly while the City control is disabled.
   Use one dedicated arrow element instead of a background/native arrow. */
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row > label{
  position:relative !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row > label > select{
  appearance:none !important;
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  background-image:none !important;
  background-repeat:no-repeat !important;
  padding-right:40px !important;
}
.smartlab-cf .smartlab-cf-select-arrow{
  position:absolute !important;
  right:14px !important;
  top:calc(100% - 31px) !important;
  width:8px !important;
  height:8px !important;
  pointer-events:none !important;
  border-right:1.5px solid #1c1f26 !important;
  border-bottom:1.5px solid #1c1f26 !important;
  transform:rotate(45deg) !important;
  box-sizing:border-box !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row > label > select:disabled + .smartlab-cf-select-arrow{
  border-color:#6b7280 !important;
  opacity:.9 !important;
}


/* v0.8.4: keep Leaflet map layers inside the finder stacking context so a
   sticky/fixed site header cannot be visually covered by map panes/controls. */
.smartlab-cf{
  position:relative !important;
  z-index:0 !important;
  isolation:isolate !important;
}
.smartlab-cf .smartlab-cf-modal{
  z-index:0 !important;
}
.smartlab-cf .smartlab-cf-map,
.smartlab-cf .smartlab-cf-map .leaflet-container{
  position:relative !important;
  z-index:0 !important;
}
.smartlab-cf .smartlab-cf-map .leaflet-pane,
.smartlab-cf .smartlab-cf-map .leaflet-top,
.smartlab-cf .smartlab-cf-map .leaflet-bottom{
  z-index:1 !important;
}

/* v0.8.11: inline finder must not remain hidden while the page is initializing. */
.smartlab-cf .smartlab-cf-overlay[hidden]{display:block !important;}


/* v0.9.0: two-row "Nearby chemists" layout — a wider, taller map on its own row,
   with the chemist list below it as a horizontal scrolling slider instead of a
   narrow vertical list beside the map. The old step tabs markup is removed;
   these rules stop applying but are left harmless if a cached page still has it. */
.smartlab-cf .smartlab-cf-tabs{display:none !important;}

.smartlab-cf .smartlab-cf-toolbar{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:0 0 18px !important;
  padding-bottom:14px;
  border-bottom:1px solid #eef0f2;
}
.smartlab-cf .smartlab-cf-back{
  display:inline-flex !important;
  align-items:center;
  gap:6px;
  border:1px solid #e2e5ea !important;
  background:#fff !important;
  color:#374151 !important;
  border-radius:8px !important;
  padding:8px 14px !important;
  font-size:13px !important;
  font-weight:600 !important;
  text-decoration:none !important;
  margin:0 !important;
}
.smartlab-cf .smartlab-cf-back:hover{
  background:#f7f8fa !important;
  color:#111 !important;
  text-decoration:none !important;
}
.smartlab-cf .smartlab-cf-count{
  font-size:13px;
  color:#5f6670;
  background:#f7f8fa;
  border-radius:8px;
  padding:7px 12px;
}

.smartlab-cf .smartlab-cf-results-grid{
  display:flex !important;
  flex-direction:column !important;
  gap:24px !important;
  grid-template-columns:none !important;
}

.smartlab-cf .smartlab-cf-map,
.smartlab-cf .smartlab-cf-map .leaflet-container{
  width:100% !important;
  min-height:320px !important;
  height:320px !important;
}

.smartlab-cf .smartlab-cf-list-wrap{
  width:100%;
}
.smartlab-cf .smartlab-cf-list-label{
  font-size:13px;
  font-weight:700;
  color:#1c1f26;
  margin-bottom:10px;
}
.smartlab-cf .smartlab-cf-list{
  display:flex !important;
  flex-direction:row !important;
  gap:14px !important;
  max-height:none !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  padding:2px 2px 12px !important;
  overscroll-behavior-x:contain !important;
}
.smartlab-cf .smartlab-cf-list::-webkit-scrollbar{height:8px;}
.smartlab-cf .smartlab-cf-list::-webkit-scrollbar-thumb{background:#d8dce2;border-radius:8px;}
.smartlab-cf .smartlab-cf-list .smartlab-cf-card{
  flex:0 0 240px !important;
  width:auto !important;
  min-height:180px !important;
  margin-bottom:0 !important;
  padding:14px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  text-align:left !important;
  vertical-align:top !important;
}
.smartlab-cf .smartlab-cf-list .smartlab-cf-card strong,
.smartlab-cf .smartlab-cf-list .smartlab-cf-card small{
  width:100% !important;
  text-align:left !important;
}
.smartlab-cf .smartlab-cf-list .smartlab-cf-card strong{font-size:14px;}
.smartlab-cf .smartlab-cf-list .smartlab-cf-card small{font-size:12px;line-height:1.5;}
.smartlab-cf .smartlab-cf-list .smartlab-cf-empty{flex:1 1 auto;color:#5f6670;font-size:13px;}

@media(max-width:700px){
  .smartlab-cf .smartlab-cf-map,
  .smartlab-cf .smartlab-cf-map .leaflet-container{
    min-height:220px !important;
    height:220px !important;
  }
  .smartlab-cf .smartlab-cf-list .smartlab-cf-card{
    flex-basis:200px !important;
  }
}

/* v0.9.2: brand-matched icon + proper hover states for Get Directions / Call
   Chemist, and a cleaner "finding nearby chemists…" status message. */
.smartlab-cf .smartlab-cf-actions{
  display:flex !important;
  gap:12px !important;
  margin-top:14px !important;
}
.smartlab-cf .smartlab-cf-actions a{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
  padding:12px 16px !important;
  font-size:14px !important;
  border-radius:8px !important;
  transition:background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .1s ease !important;
}
.smartlab-cf .smartlab-cf-actions a svg{
  flex-shrink:0;
  width:17px;
  height:17px;
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-directions{
  background:#eb1e26 !important;
  border:1px solid #eb1e26 !important;
  color:#fff !important;
  box-shadow:0 1px 2px rgba(235,30,38,.15);
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-directions:hover,
.smartlab-cf .smartlab-cf-actions .smartlab-cf-directions:focus-visible{
  background:#c8121f !important;
  border-color:#c8121f !important;
  color:#fff !important;
  box-shadow:0 6px 14px rgba(235,30,38,.28);
  transform:translateY(-1px);
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-directions:active{
  background:#a80f1a !important;
  border-color:#a80f1a !important;
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(235,30,38,.25);
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-call{
  background:#fff !important;
  border:1px solid #12315a !important;
  color:#12315a !important;
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-call:hover,
.smartlab-cf .smartlab-cf-actions .smartlab-cf-call:focus-visible{
  background:#12315a !important;
  border-color:#12315a !important;
  color:#fff !important;
  box-shadow:0 6px 14px rgba(18,49,90,.22);
  transform:translateY(-1px);
}
.smartlab-cf .smartlab-cf-actions .smartlab-cf-call:active{
  background:#0c2140 !important;
  border-color:#0c2140 !important;
  transform:translateY(0);
  box-shadow:0 2px 6px rgba(18,49,90,.2);
}

/* v0.9.4: sticky product image gallery on desktop, so it stays in view while the
   customer scrolls through the product details / chemist finder beside it.
   This is the WooCommerce single-product template's own gallery column, not part
   of the chemist finder — added here because this stylesheet is the one that
   already loads reliably on every single product page (is_product()). Element
   ID confirmed shared across products (same Elementor template), plus a
   :has() fallback selector for resilience if that ID ever changes. */
@media(min-width:1025px){
  .elementor-element-273563f.e-con-full,
  .e-con-full:has(> .elementor-widget-uicore-woo-product-gallery){
    position:sticky !important;
    top:100px !important;
    align-self:flex-start !important;
    z-index:5;
  }
}

.smartlab-cf .smartlab-cf-optional{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#777;}


/* v0.8.20: stabilize the Step 1 State/City/Area controls against theme and
   page-builder form styles. State and City stay in a 50/50 row; Area and
   Pincode remain full width. All three selects use one dedicated arrow so
   theme-generated select backgrounds cannot duplicate the arrow. */
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:12px !important;
  width:100% !important;
  margin:0 0 16px !important;
  padding:0 !important;
  align-items:start !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-field{
  display:block !important;
  width:100% !important;
  min-width:0 !important;
  margin:0 0 16px !important;
  padding:0 !important;
  float:none !important;
  box-sizing:border-box !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row .smartlab-cf-field{
  margin:0 !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-field > label{
  display:block !important;
  width:100% !important;
  margin:0 0 6px !important;
  padding:0 !important;
  line-height:1.3 !important;
  box-sizing:border-box !important;
  text-align:left !important;
}
.smartlab-cf .smartlab-cf-select-wrap{
  position:relative !important;
  display:block !important;
  width:100% !important;
  height:46px !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
.smartlab-cf .smartlab-cf-form-step .smartlab-cf-select-wrap > select{
  display:block !important;
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 !important;
  padding:10px 40px 10px 12px !important;
  box-sizing:border-box !important;
  appearance:none !important;
  -webkit-appearance:none !important;
  -moz-appearance:none !important;
  background-image:none !important;
  background-repeat:no-repeat !important;
  background-position:initial !important;
  background-size:initial !important;
  line-height:24px !important;
}
.smartlab-cf .smartlab-cf-select-arrow{
  position:absolute !important;
  right:14px !important;
  top:50% !important;
  width:8px !important;
  height:8px !important;
  margin:0 !important;
  padding:0 !important;
  pointer-events:none !important;
  border-right:1.5px solid #1c1f26 !important;
  border-bottom:1.5px solid #1c1f26 !important;
  transform:translateY(-65%) rotate(45deg) !important;
  box-sizing:border-box !important;
  display:block !important;
}
.smartlab-cf .smartlab-cf-select-wrap > select:disabled + .smartlab-cf-select-arrow{
  border-color:#6b7280 !important;
  opacity:.9 !important;
}
.smartlab-cf .smartlab-cf-pincode-field input{
  display:block !important;
  width:100% !important;
  height:46px !important;
  min-height:46px !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
.smartlab-cf .smartlab-cf-pincode-field .smartlab-cf-optional{
  display:block !important;
  margin:6px 0 0 !important;
  padding:0 !important;
  font-size:12px !important;
  line-height:1.2 !important;
  color:#6b7280 !important;
}
.smartlab-cf .smartlab-cf-area-field{
  width:100% !important;
}
@media(max-width:700px){
  .smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row{
    grid-template-columns:1fr !important;
    gap:0 !important;
    margin-bottom:0 !important;
  }
  .smartlab-cf .smartlab-cf-form-step .smartlab-cf-location-row .smartlab-cf-field{
    margin-bottom:14px !important;
  }
}


/* v0.8.26: modal presentation for [smartlab_chemist_finder mode="modal"].
   Default shortcode/product-page presentation remains unchanged. */
.smartlab-cf[data-layout="modal"] .smartlab-cf-overlay[hidden]{
  display:none !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-overlay{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100vw !important;
  height:100vh !important;
  min-height:0 !important;
  margin:0 !important;
  padding:18px !important;
  background:rgba(0,0,0,.62) !important;
  z-index:100060 !important;
  visibility:visible !important;
  opacity:1 !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
  position:relative !important;
  display:block !important;
  width:min(760px,100%) !important;
  max-width:760px !important;
  max-height:90vh !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:24px !important;
  overflow:auto !important;
  background:#fff !important;
  border:1px solid #e1e4e8 !important;
  border-radius:16px !important;
  box-shadow:0 15px 50px rgba(0,0,0,.25) !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal-close{
  display:block !important;
  position:absolute !important;
  top:10px !important;
  right:12px !important;
  z-index:5 !important;
  width:34px !important;
  height:34px !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  background:#08244b !important;
  color:#fff !important;
  font-size:26px !important;
  line-height:1 !important;
  cursor:pointer !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal h3{
  padding-right:38px;
}
@media(max-width:600px){
  .smartlab-cf[data-layout="modal"] .smartlab-cf-overlay{padding:12px !important;}
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal{padding:20px 16px !important;max-height:92vh !important;}
}


/* v0.8.28: reliable calculator modal scrolling and background scroll containment. */
.smartlab-cf[data-layout="modal"] .smartlab-cf-overlay{
  height:100vh !important;
  height:100dvh !important;
  max-height:100dvh !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  align-items:center !important;
  overscroll-behavior-y:contain !important;
  touch-action:pan-y !important;
  -webkit-overflow-scrolling:touch !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
  max-height:calc(100vh - 36px) !important;
  max-height:calc(100dvh - 36px) !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain !important;
  touch-action:pan-y !important;
  -webkit-overflow-scrolling:touch !important;
}
html.smartlab-cf-no-scroll,
html.smartlab-cf-no-scroll body{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
html.smartlab-cf-no-scroll body{
  touch-action:auto !important;
}
@media(max-width:600px){
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
    max-height:calc(100vh - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}


/* v0.8.29: keep vertical scrolling on the dialog, not the full-screen backdrop. */
.smartlab-cf[data-layout="modal"] .smartlab-cf-overlay{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
  flex:0 1 auto !important;
  min-height:0 !important;
  max-height:calc(100vh - 36px) !important;
  max-height:calc(100dvh - 36px) !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  overscroll-behavior-y:contain !important;
  -webkit-overflow-scrolling:touch !important;
  scrollbar-gutter:stable;
}
@media(max-width:600px){
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
    max-height:calc(100vh - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
  }
}


/* v0.8.30: requested calculator popup sizing and typography refinements. */
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
  width:min(660px,100%) !important;
  max-width:660px !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-modal-close{
  line-height:1.2 !important;
}
.smartlab-cf[data-layout="modal"] .smartlab-cf-form-step input::placeholder{
  font-size:15px !important;
}
@media(max-width:700px){
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
    width:100% !important;
    max-width:660px !important;
  }
}


/* v0.8.32: compact responsive typography and form controls for the Chemist Finder
   modal on laptop-sized CSS viewports / high browser zoom. The default desktop
   design and all non-modal finder layouts remain unchanged. */
@media screen and (min-width:701px) and (max-width:1400px),
       screen and (min-width:701px) and (max-height:850px){
  .smartlab-cf[data-layout="modal"] .smartlab-cf-overlay{
    padding:12px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal{
    width:min(610px,100%) !important;
    max-width:610px !important;
    max-height:calc(100vh - 24px) !important;
    max-height:calc(100dvh - 24px) !important;
    padding:18px 20px !important;
    border-radius:14px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal h3{
    margin:0 38px 14px 0 !important;
    padding-right:0 !important;
    font-size:20px !important;
    line-height:1.25 !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-modal-close{
    width:32px !important;
    height:32px !important;
    font-size:23px !important;
    line-height:1.2 !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-field{
    margin:0 0 11px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-field > label{
    margin:0 0 5px !important;
    font-size:12px !important;
    line-height:1.25 !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step input,
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step select{
    min-height:42px !important;
    height:42px !important;
    padding:8px 11px !important;
    font-size:14px !important;
    line-height:1.25 !important;
    box-sizing:border-box !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-select-wrap{
    height:42px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-select-wrap > select{
    height:42px !important;
    min-height:42px !important;
    padding:8px 36px 8px 11px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-location-row{
    gap:10px !important;
    margin:0 0 11px !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-location-row .smartlab-cf-field{
    margin:0 !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-pincode-field .smartlab-cf-optional,
  .smartlab-cf[data-layout="modal"] .smartlab-cf-form-step .smartlab-cf-optional{
    margin-top:4px !important;
    font-size:11px !important;
    line-height:1.2 !important;
  }
  .smartlab-cf[data-layout="modal"] .smartlab-cf-find{
    min-height:42px !important;
    margin-top:6px !important;
    padding:9px 14px !important;
    font-size:14px !important;
    line-height:1.25 !important;
  }
}
