/* AF-Health - dedicated pharmacy directory rows.
   Pharmacy listings stay horizontal like the other provider directories, but use
   a catalogue/storefront treatment that is intentionally distinct from doctors,
   laboratories, and hospitals. */

body.guest-shell[class*="frontend-theme-"] .marketplace-directory{
  /* Pharmacy inherits the active frontend theme instead of carrying its own palette. */
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong,var(--primary));
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 58%,#fff);
  --pharmacy-soft:var(--primary-soft);
  --pharmacy-line:color-mix(in srgb,var(--primary) 20%,var(--border));
  --pharmacy-row-surface:var(--surface);
  --pharmacy-panel-surface:var(--surface-2);
  --pharmacy-shadow:var(--theme-card-shadow,var(--shadow-sm));
  --pharmacy-radius:var(--theme-card-radius,var(--radius,24px));
  --pharmacy-logo-radius:var(--theme-control-radius,var(--radius-sm,16px));
  --pharmacy-button-radius:var(--theme-button-radius,var(--radius-sm,16px));
  --pharmacy-row-background:var(--theme-card-bg,var(--surface));
  --pharmacy-logo-background:linear-gradient(145deg,var(--pharmacy-accent),var(--pharmacy-accent-strong));
  --pharmacy-button-background:linear-gradient(135deg,var(--pharmacy-accent),var(--pharmacy-accent-strong));
  --pharmacy-edge-background:linear-gradient(180deg,var(--pharmacy-accent-bright),var(--pharmacy-accent),var(--pharmacy-accent-strong));
  --pharmacy-edge-width:5px;
}

body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:14px!important;
}

body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row{
  position:relative;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,2.25fr) minmax(150px,.72fr) minmax(175px,.82fr) minmax(180px,.78fr);
  align-items:stretch;
  gap:0;
  min-height:194px;
  border:1px solid var(--pharmacy-line);
  border-radius:var(--pharmacy-radius);
  background:var(--pharmacy-row-background);
  box-shadow:var(--pharmacy-shadow);
  overflow:hidden;
  isolation:isolate;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0 auto 0 0;
  width:var(--pharmacy-edge-width);
  background:var(--pharmacy-edge-background);
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row::before{
  inset:0 0 0 auto;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row::after{
  content:"Rx";
  position:absolute;
  z-index:0;
  right:20%;
  bottom:-34px;
  color:color-mix(in srgb,var(--pharmacy-accent) 4%,transparent);
  font-size:8.6rem;
  font-weight:900;
  line-height:1;
  letter-spacing:-.09em;
  pointer-events:none;
  user-select:none;
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row::after{
  right:auto;
  left:20%;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row:hover{
  transform:translateY(-2px);
  border-color:color-mix(in srgb,var(--pharmacy-accent) 38%,var(--border));
  box-shadow:var(--shadow,var(--pharmacy-shadow));
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row>*{
  position:relative;
  z-index:1;
  min-width:0;
}

/* Identity / storefront */
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{
  display:grid;
  grid-template-columns:118px minmax(0,1fr);
  align-items:center;
  gap:17px;
  padding:22px 20px 22px 24px;
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{
  padding:22px 24px 22px 20px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo{
  position:relative;
  width:106px;
  height:106px;
  display:grid;
  place-items:center;
  justify-self:center;
  border:1px solid color-mix(in srgb,var(--pharmacy-accent) 30%,var(--border));
  border-radius:var(--pharmacy-logo-radius);
  background:var(--pharmacy-logo-background);
  box-shadow:
    0 14px 28px color-mix(in srgb,var(--pharmacy-accent) 19%,transparent),
    inset 0 1px 0 rgba(255,255,255,.28);
  color:#fff;
  overflow:visible;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo::before,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo::after{
  content:"";
  position:absolute;
  z-index:0;
  top:50%;
  left:50%;
  border-radius:3px;
  background:rgba(255,255,255,.13);
  transform:translate(-50%,-50%);
  pointer-events:none;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo::before{width:54px;height:15px}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo::after{width:15px;height:54px}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo img{
  position:absolute;
  z-index:2;
  inset:0;
  width:100%;
  height:100%;
  border-radius:inherit;
  object-fit:cover;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo-initial{
  position:relative;
  z-index:1;
  font-size:2rem;
  font-weight:900;
  letter-spacing:-.06em;
  text-shadow:0 2px 12px rgba(0,0,0,.14);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{
  position:absolute;
  z-index:4;
  right:-8px;
  bottom:-8px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border:3px solid var(--pharmacy-row-surface);
  border-radius:12px;
  background:var(--surface);
  color:var(--pharmacy-accent-strong);
  box-shadow:0 8px 20px color-mix(in srgb,var(--pharmacy-accent) 16%,transparent);
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{right:auto;left:-8px}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-copy{
  min-width:0;
  display:grid;
  align-content:center;
  gap:7px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-topline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px 12px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-type,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-network{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:25px;
  font-size:.61rem;
  font-weight:840;
  line-height:1.15;
  letter-spacing:.065em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-type{
  padding:5px 9px;
  border:1px solid color-mix(in srgb,var(--pharmacy-accent) 23%,var(--border));
  border-radius:999px;
  background:var(--pharmacy-soft);
  color:var(--pharmacy-accent-strong);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-type svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-network{
  color:var(--muted);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-network i,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-catalogue-state i{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--pharmacy-accent);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--pharmacy-accent) 13%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity{
  justify-items:start;
  gap:2px;
  text-align:start;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-name,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-address{
  width:auto;
  max-width:100%;
  text-align:start!important;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-name-en{
  color:var(--text);
  font-size:1.17rem;
  font-weight:880;
  line-height:1.2;
  letter-spacing:-.03em;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-name-ar{
  color:var(--text);
  font-size:.94rem;
  line-height:1.48;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-address{
  color:var(--muted);
  font-size:.71rem;
  line-height:1.45;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-badges{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-badges .portal-badge-list{display:contents}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-badges :is(.portal-badge,.provider-trust-chip){
  min-height:24px;
  padding:4px 8px;
  font-size:.58rem;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-summary{
  display:-webkit-box;
  max-width:44rem;
  margin:0;
  overflow:hidden;
  color:var(--muted);
  font-size:.67rem;
  line-height:1.5;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-summary--secondary{
  font-family:var(--arabic-font,var(--font-sans,system-ui,sans-serif));
  -webkit-line-clamp:1;
}

/* Catalogue and fulfilment panels */
body.guest-shell[class*="frontend-theme-"] :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment,.pharmacy-listing-action){
  border-inline-start:1px solid color-mix(in srgb,var(--pharmacy-line) 78%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-catalogue,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-fulfilment{
  display:grid;
  align-content:center;
  gap:5px;
  padding:20px 17px;
  background:color-mix(in srgb,var(--pharmacy-panel-surface) 72%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-panel-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--pharmacy-accent-strong);
  font-size:.57rem;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.075em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-panel-label svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-product-count{
  margin-top:3px;
  color:var(--text);
  font-size:2rem;
  font-weight:900;
  line-height:.95;
  letter-spacing:-.06em;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-product-caption{
  color:var(--muted);
  font-size:.62rem;
  font-weight:680;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-order-floor{
  display:grid;
  gap:2px;
  margin-top:8px;
  padding-top:9px;
  border-top:1px solid color-mix(in srgb,var(--pharmacy-line) 72%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-order-floor small{
  color:var(--muted);
  font-size:.54rem;
  font-weight:760;
  letter-spacing:.045em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-order-floor b{
  color:var(--text);
  font-size:.68rem;
  line-height:1.3;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-fulfilment>strong{
  color:var(--text);
  font-size:.78rem;
  line-height:1.35;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:4px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips>span{
  display:inline-flex;
  align-items:center;
  gap:4px;
  min-height:25px;
  padding:4px 7px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:.56rem;
  font-weight:750;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips>span.is-on{
  border-color:color-mix(in srgb,var(--pharmacy-accent) 28%,var(--border));
  background:var(--pharmacy-soft);
  color:var(--pharmacy-accent-strong);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips>span.is-off{
  opacity:.62;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-catalogue-state{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-top:7px;
  color:var(--muted);
  font-size:.59rem;
  font-weight:720;
}

/* Catalogue action */
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action{
  display:grid;
  align-content:center;
  gap:8px;
  padding:20px 10px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open{
  position:relative;
  min-width:0;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:8px 8px 8px 11px;
  border:1px solid color-mix(in srgb,var(--pharmacy-accent-strong) 76%,transparent);
  border-radius:var(--pharmacy-button-radius);
  background:var(--pharmacy-button-background);
  box-shadow:
    0 13px 25px color-mix(in srgb,var(--pharmacy-accent) 23%,transparent),
    inset 0 1px 0 rgba(255,255,255,.2);
  color:#fff;
  text-decoration:none;
  overflow:hidden;
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(105deg,rgba(255,255,255,.14),transparent 42%);
  pointer-events:none;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open>span{
  position:relative;
  z-index:1;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open-label{
  min-width:0;
  display:flex;
  align-items:center;
  white-space:nowrap;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open small{
  color:rgba(255,255,255,.74);
  font-size:.53rem;
  font-weight:760;
  letter-spacing:.045em;
  line-height:1.1;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open strong{
  color:#fff;
  font-size:.70rem;
  font-weight:850;
  line-height:1.15;
  white-space:nowrap;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open-icon{
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.15);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.18);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open-icon svg{
  width:14px;
  height:14px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open:hover{
  transform:translateY(-2px);
  filter:saturate(1.08);
  box-shadow:0 18px 30px color-mix(in srgb,var(--pharmacy-accent) 29%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open:focus-visible{
  outline:3px solid color-mix(in srgb,var(--pharmacy-accent) 36%,transparent);
  outline-offset:3px;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open--disabled{
  border-color:var(--border);
  background:var(--surface-2);
  box-shadow:none;
  color:var(--muted);
  cursor:not-allowed;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open--disabled::before{display:none}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open--disabled small,
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open--disabled strong{color:var(--muted)}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open--disabled .pharmacy-listing-open-icon{
  background:color-mix(in srgb,var(--surface) 70%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action-note{
  color:var(--muted);
  font-size:.55rem;
  line-height:1.35;
  text-align:center;
}

/* Empty / sponsored rows */
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-empty-state{
  min-height:220px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:8px;
  border:1px dashed color-mix(in srgb,var(--pharmacy-accent) 30%,var(--border))!important;
  border-radius:var(--pharmacy-radius)!important;
  background:var(--pharmacy-row-surface)!important;
  text-align:center;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card{
  grid-column:1/-1!important;
  min-height:174px!important;
  height:auto!important;
  border-radius:var(--pharmacy-radius)!important;
  border-color:var(--pharmacy-line)!important;
  box-shadow:var(--pharmacy-shadow)!important;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-image-shell{
  min-height:174px!important;
  height:174px!important;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-picture{
  aspect-ratio:auto!important;
  height:100%!important;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-html{
  min-height:174px!important;
  padding:34px 30px 18px!important;
  justify-content:center;
}
body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-footer{
  padding:0 30px 18px!important;
}

/* Eight theme identities ---------------------------------------------------
   The row structure stays consistent, while the visual language follows the
   same tokens and motifs already used by each frontend theme. */

/* Oceanic Pulse: flowing corners, watery surfaces, cyan/blue theme tokens. */
body.guest-shell.frontend-theme-oceanic_pulse .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 48%,#67e8f9);
  --pharmacy-radius:42px 18px 42px 18px;
  --pharmacy-logo-radius:46% 54% 38% 62%/30% 36% 64% 70%;
  --pharmacy-button-radius:999px;
  --pharmacy-row-background:
    radial-gradient(circle at 92% 2%,color-mix(in srgb,var(--primary) 13%,transparent),transparent 28%),
    radial-gradient(circle at 8% 115%,color-mix(in srgb,var(--primary-soft) 70%,transparent),transparent 34%),
    linear-gradient(145deg,color-mix(in srgb,var(--surface) 94%,var(--primary-soft) 6%),var(--surface));
  --pharmacy-logo-background:linear-gradient(145deg,color-mix(in srgb,var(--primary) 82%,#67e8f9),var(--primary-strong));
  --pharmacy-button-background:linear-gradient(135deg,var(--primary-strong),var(--primary),color-mix(in srgb,var(--primary) 58%,#67e8f9));
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-oceanic_pulse .pharmacy-listing-row:hover{box-shadow:var(--shadow)}
body.guest-shell.frontend-theme-oceanic_pulse :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){
  background:color-mix(in srgb,var(--surface-2) 76%,var(--primary-soft) 24%);
}

/* Alpine Frost: crisp rectangular system, restrained surface, no floating shadow. */
body.guest-shell.frontend-theme-alpine_frost .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 62%,#fff);
  --pharmacy-radius:6px;
  --pharmacy-logo-radius:4px;
  --pharmacy-button-radius:4px;
  --pharmacy-row-background:var(--surface);
  --pharmacy-edge-background:var(--primary);
  --pharmacy-edge-width:7px;
  --pharmacy-shadow:none;
}
body.guest-shell.frontend-theme-alpine_frost .pharmacy-listing-row{
  border-color:color-mix(in srgb,var(--primary) 23%,var(--border));
}
body.guest-shell.frontend-theme-alpine_frost .pharmacy-listing-row::after{display:none}
body.guest-shell.frontend-theme-alpine_frost .pharmacy-listing-row:hover{
  transform:none;
  border-color:color-mix(in srgb,var(--primary) 52%,var(--border));
  box-shadow:none;
}
body.guest-shell.frontend-theme-alpine_frost :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){background:var(--surface-2)}
body.guest-shell.frontend-theme-alpine_frost :is(.pharmacy-listing-type,.pharmacy-listing-service-chips>span,.pharmacy-listing-rx,.pharmacy-listing-open-icon){border-radius:4px}

/* Sakura Health: soft blossom geometry and the theme's rose surfaces. */
body.guest-shell.frontend-theme-sakura_health .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 44%,#fff);
  --pharmacy-radius:42px;
  --pharmacy-logo-radius:50%;
  --pharmacy-button-radius:999px;
  --pharmacy-edge-width:0px;
  --pharmacy-row-background:
    radial-gradient(circle at 10% 18%,color-mix(in srgb,var(--primary-soft) 84%,transparent) 0 7px,transparent 8px),
    radial-gradient(circle at 92% 22%,color-mix(in srgb,var(--primary) 10%,transparent),transparent 26%),
    linear-gradient(145deg,color-mix(in srgb,var(--surface) 96%,var(--primary-soft) 4%),var(--surface));
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-sakura_health .pharmacy-listing-row::after{
  content:"✿";
  right:5%;
  bottom:-18px;
  color:color-mix(in srgb,var(--primary) 7%,transparent);
  font-size:6rem;
  letter-spacing:0;
}
body.guest-shell.frontend-theme-sakura_health :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){
  margin-block:12px;
  border:1px solid color-mix(in srgb,var(--primary) 12%,var(--border));
  border-inline-start:1px solid color-mix(in srgb,var(--primary) 12%,var(--border));
  border-radius:26px;
  background:color-mix(in srgb,var(--primary-soft) 58%,var(--surface) 42%);
}

/* Royal Indigo: framed, formal, jewel-like treatment from the theme. */
body.guest-shell.frontend-theme-royal_indigo .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 50%,#c4b5fd);
  --pharmacy-radius:18px;
  --pharmacy-logo-radius:10px;
  --pharmacy-button-radius:14px;
  --pharmacy-edge-width:0px;
  --pharmacy-row-background:linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 42%,var(--surface) 58%));
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-royal_indigo .pharmacy-listing-row{
  border:5px double color-mix(in srgb,var(--primary) 38%,var(--border));
}
body.guest-shell.frontend-theme-royal_indigo .pharmacy-listing-row::after{
  content:"✦";
  right:4%;
  bottom:-13px;
  color:color-mix(in srgb,var(--primary) 8%,transparent);
  font-size:5rem;
  letter-spacing:0;
}
body.guest-shell.frontend-theme-royal_indigo :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){
  margin-block:7px;
  border-block:1px solid var(--border);
  background:color-mix(in srgb,var(--surface-2) 78%,var(--primary-soft) 22%);
}
body.guest-shell.frontend-theme-royal_indigo .pharmacy-listing-open{box-shadow:0 14px 28px color-mix(in srgb,var(--primary) 22%,transparent)}

/* Citrus Vital: bold asymmetric corners and offset energetic depth. */
body.guest-shell.frontend-theme-citrus_vital .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 34%,#bef264);
  --pharmacy-radius:30px 12px 30px 12px;
  --pharmacy-logo-radius:26px 10px 26px 10px;
  --pharmacy-button-radius:999px;
  --pharmacy-row-background:
    radial-gradient(circle at 94% 12%,color-mix(in srgb,var(--primary-soft) 86%,transparent),transparent 25%),
    linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--primary-soft) 34%,var(--surface) 66%));
  --pharmacy-logo-background:linear-gradient(145deg,var(--primary-strong),var(--primary),color-mix(in srgb,var(--primary) 34%,#bef264));
  --pharmacy-button-background:linear-gradient(135deg,var(--primary),var(--primary-strong));
  --pharmacy-shadow:10px 10px 0 color-mix(in srgb,var(--primary) 17%,var(--primary-soft));
}
body.guest-shell.frontend-theme-citrus_vital .pharmacy-listing-row{
  border-width:2px;
  border-color:color-mix(in srgb,var(--primary) 28%,var(--border));
}
body.guest-shell.frontend-theme-citrus_vital .pharmacy-listing-row:hover{
  transform:translate(-2px,-2px);
  box-shadow:13px 13px 0 color-mix(in srgb,var(--primary) 21%,var(--primary-soft));
}
body.guest-shell.frontend-theme-citrus_vital .pharmacy-listing-catalogue{background:var(--primary-soft)}

/* Botanical Serenity: organic silhouettes, quiet natural surfaces, soft depth. */
body.guest-shell.frontend-theme-botanical_serenity .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:color-mix(in srgb,var(--primary) 45%,#dfead9);
  --pharmacy-radius:52px 18px 52px 18px;
  --pharmacy-logo-radius:55% 45% 60% 40%;
  --pharmacy-button-radius:999px;
  --pharmacy-edge-width:0px;
  --pharmacy-row-background:
    radial-gradient(ellipse at 96% 0,color-mix(in srgb,var(--primary-soft) 72%,transparent),transparent 30%),
    linear-gradient(145deg,var(--surface),color-mix(in srgb,var(--surface-2) 58%,var(--surface) 42%));
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-botanical_serenity .pharmacy-listing-row{border-color:transparent}
body.guest-shell.frontend-theme-botanical_serenity .pharmacy-listing-row:nth-child(even){border-radius:18px 52px 18px 52px}
body.guest-shell.frontend-theme-botanical_serenity :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){
  background:color-mix(in srgb,var(--surface-2) 84%,var(--surface) 16%);
}
body.guest-shell.frontend-theme-botanical_serenity .pharmacy-listing-type{border-color:transparent}

/* Aether Glass: translucent glass panels with the theme's violet/cyan glow. */
body.guest-shell.frontend-theme-aether_glass .marketplace-directory{
  --pharmacy-accent:var(--primary);
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:#67e8f9;
  --pharmacy-radius:34px;
  --pharmacy-logo-radius:24px;
  --pharmacy-button-radius:999px;
  --pharmacy-row-surface:color-mix(in srgb,var(--surface) 72%,transparent);
  --pharmacy-panel-surface:color-mix(in srgb,var(--surface-2) 58%,transparent);
  --pharmacy-row-background:
    radial-gradient(circle at 92% 10%,rgba(103,232,249,.16),transparent 26%),
    radial-gradient(circle at 18% 120%,color-mix(in srgb,var(--primary) 15%,transparent),transparent 36%),
    color-mix(in srgb,var(--surface) 70%,transparent);
  --pharmacy-logo-background:linear-gradient(145deg,var(--primary),color-mix(in srgb,var(--primary) 45%,#67e8f9));
  --pharmacy-button-background:linear-gradient(135deg,var(--primary-strong),var(--primary) 62%,#38c6d9);
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-aether_glass .pharmacy-listing-row{
  border-color:rgba(255,255,255,.48);
  backdrop-filter:blur(24px) saturate(1.14);
  -webkit-backdrop-filter:blur(24px) saturate(1.14);
}
body.guest-shell.frontend-theme-aether_glass :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment){
  background:color-mix(in srgb,var(--surface-2) 55%,transparent);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
body.guest-shell.frontend-theme-aether_glass .pharmacy-listing-open{border-color:rgba(255,255,255,.32)}

/* Kinetic Spectrum: angular ribbon geometry and the native pink/orange/cyan spectrum. */
body.guest-shell.frontend-theme-kinetic_spectrum .marketplace-directory{
  --pharmacy-accent:var(--kinetic-pink,var(--primary));
  --pharmacy-accent-strong:var(--primary-strong);
  --pharmacy-accent-bright:var(--kinetic-orange,#ff8a3d);
  --pharmacy-radius:18px;
  --pharmacy-logo-radius:10px;
  --pharmacy-button-radius:4px;
  --pharmacy-edge-width:0px;
  --pharmacy-row-background:
    linear-gradient(115deg,color-mix(in srgb,var(--kinetic-pink,#ef3f78) 8%,var(--surface)) 0 20%,var(--surface) 20% 76%,color-mix(in srgb,var(--kinetic-orange,#ff8a3d) 10%,var(--surface)) 76%);
  --pharmacy-logo-background:linear-gradient(115deg,var(--kinetic-pink,#ef3f78),var(--kinetic-orange,#ff8a3d));
  --pharmacy-button-background:linear-gradient(115deg,var(--kinetic-pink,#ef3f78),var(--kinetic-orange,#ff8a3d));
  --pharmacy-shadow:var(--shadow-sm);
}
body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-row{
  border-top:7px solid var(--kinetic-pink,#ef3f78);
  clip-path:polygon(2% 0,100% 0,98% 100%,0 100%);
}
body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-row:nth-child(3n+2){border-top-color:var(--kinetic-orange,#ff8a3d)}
body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-row:nth-child(3n+3){border-top-color:var(--kinetic-cyan,#38c6d9)}
body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-row::after{
  content:"Rx";
  right:4%;
  bottom:-30px;
  color:color-mix(in srgb,var(--kinetic-pink,#ef3f78) 6%,transparent);
  transform:skewX(-10deg);
}
body.guest-shell.frontend-theme-kinetic_spectrum :is(.pharmacy-listing-type,.pharmacy-listing-service-chips>span,.pharmacy-listing-rx,.pharmacy-listing-open-icon){border-radius:4px}
body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-open{clip-path:polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%)}


/* Keep decorative theme motifs on the reading-edge in RTL layouts. */
[dir="rtl"] body.guest-shell.frontend-theme-sakura_health .pharmacy-listing-row::after,
[dir="rtl"] body.guest-shell.frontend-theme-royal_indigo .pharmacy-listing-row::after,
[dir="rtl"] body.guest-shell.frontend-theme-kinetic_spectrum .pharmacy-listing-row::after{right:auto;left:5%}

/* Dark mode */
html[data-theme="dark"] body.guest-shell[class*="frontend-theme-"] .marketplace-directory{
  --pharmacy-row-surface:color-mix(in srgb,var(--surface) 92%,var(--pharmacy-accent) 8%);
  --pharmacy-panel-surface:color-mix(in srgb,var(--surface-2) 86%,var(--pharmacy-accent) 7%);
  --pharmacy-line:color-mix(in srgb,var(--pharmacy-accent) 24%,var(--border));
}
html[data-theme="dark"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{
  border-color:var(--pharmacy-row-surface);
  background:var(--surface-2);
}
html[data-theme="dark"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-service-chips>span.is-on{
  border-color:color-mix(in srgb,var(--pharmacy-accent) 34%,var(--border));
  background:color-mix(in srgb,var(--pharmacy-accent) 14%,var(--surface-2));
  color:var(--pharmacy-accent-bright);
}

/* Responsive */
@media(max-width:1180px){
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row{
    grid-template-columns:minmax(0,1.8fr) minmax(140px,.65fr) minmax(160px,.75fr) minmax(165px,.72fr);
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{grid-template-columns:104px minmax(0,1fr);padding-inline:19px 16px}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo{width:94px;height:94px}
}
@media(max-width:1020px){
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{
    grid-column:1/-1;
    padding:20px;
    border-bottom:1px solid color-mix(in srgb,var(--pharmacy-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] :is(.pharmacy-listing-catalogue,.pharmacy-listing-fulfilment,.pharmacy-listing-action){
    border-inline-start:0;
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-fulfilment{
    border-inline-start:1px solid color-mix(in srgb,var(--pharmacy-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(220px,320px) minmax(0,1fr);
    align-items:center;
    padding:14px 17px;
    border-top:1px solid color-mix(in srgb,var(--pharmacy-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action-note{text-align:start}
}
@media(max-width:680px){
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-row{grid-template-columns:1fr}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{
    grid-column:auto;
    grid-template-columns:86px minmax(0,1fr);
    gap:13px;
    padding:16px;
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo{width:78px;height:78px;border-radius:var(--pharmacy-logo-radius)}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo-initial{font-size:1.45rem}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{width:29px;height:29px;border-radius:10px}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx svg{width:14px;height:14px}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-topline{gap:5px 8px}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-identity .public-provider-name-en{font-size:1.02rem}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-summary{grid-column:1/-1}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-catalogue,
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-fulfilment{
    padding:15px 16px;
    border-inline-start:0;
    border-top:1px solid color-mix(in srgb,var(--pharmacy-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action{
    grid-column:auto;
    grid-template-columns:1fr;
    padding:15px 16px 17px;
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-open{width:100%}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-action-note{text-align:center}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card,
  body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-image-shell{
    min-height:150px!important;
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-directory-list.marketplace-provider-grid>.rumi-provider-promo-card .rumi-provider-promo-image-shell{height:150px!important}
}
@media(max-width:460px){
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-main{
    grid-template-columns:70px minmax(0,1fr);
    gap:11px;
  }
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-logo{width:64px;height:64px;border-radius:var(--pharmacy-logo-radius)}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{right:-5px;bottom:-5px}
  [dir="rtl"] body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-rx{right:auto;left:-5px}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-network{display:none}
  body.guest-shell[class*="frontend-theme-"] .pharmacy-listing-badges :is(.portal-badge,.provider-trust-chip){font-size:.53rem;padding:3px 6px}
}
@media(prefers-reduced-motion:reduce){
  body.guest-shell[class*="frontend-theme-"] :is(.pharmacy-listing-row,.pharmacy-listing-open){transition:none}
  body.guest-shell[class*="frontend-theme-"] :is(.pharmacy-listing-row,.pharmacy-listing-open):hover{transform:none}
}

/* ========================================================================== 
   Pharmacy profile refinements
   - Keep the default Aether Glass overview untouched because it already has a
     dedicated compact dashboard treatment in provider-experience.css.
   - Normalize the other seven themes so the pharmacy overview is content-led
     instead of inheriting the generic 440px provider story-card height.
   - Present catalogue products as one horizontal row per product, not cards.
   ========================================================================== */

/* Compact Pharmacy overview for every non-default theme. */
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section{
  padding-top:32px;
  padding-bottom:38px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-section-heading{
  margin-bottom:14px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-overview-layout{
  grid-template-columns:minmax(0,1.34fr) minmax(330px,.72fr);
  align-items:start;
  gap:12px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card{
  min-height:0;
  height:auto;
  align-self:start;
  justify-content:flex-start;
  padding:62px 26px 22px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card::before{
  width:190px;
  height:190px;
  right:-78px;
  top:-96px;
  box-shadow:0 0 0 30px color-mix(in srgb,var(--provider-accent) 4%,transparent);
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card>.provider-card-icon{
  top:18px;
  left:22px;
  width:37px;
  height:37px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-card-index{
  top:18px;
  right:21px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card .provider-card-eyebrow{
  margin-bottom:7px;
  font-size:.62rem;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card h3{
  max-width:700px;
  font-size:clamp(1.34rem,2vw,1.88rem);
  line-height:1.1;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-copy{
  margin-top:10px;
  font-size:.84rem;
  line-height:1.58;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-local-language-copy{
  margin-top:11px;
  padding:10px 12px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-local-language-copy p{
  margin-top:4px;
  font-size:.8rem;
  line-height:1.58;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-stack{
  gap:9px;
  align-content:start;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card{
  padding:14px 15px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card-heading{
  gap:9px;
  margin-bottom:8px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card-heading .provider-card-icon{
  width:34px;
  height:34px;
  flex-basis:34px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card-heading small{
  font-size:.54rem;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card-heading h3{
  font-size:.86rem;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-list{
  grid-template-columns:repeat(2,minmax(0,1fr));
  column-gap:12px;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-list>div{
  gap:3px;
  padding:6px 0;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card--contact .provider-fact-list>div:nth-child(3),
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card--contact .provider-fact-list>div[dir="rtl"],
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-info-card--capacity .provider-fact-list>div:nth-child(4){
  grid-column:1/-1;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-list dt{
  font-size:.52rem;
}
body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-list dd{
  font-size:.7rem;
  line-height:1.38;
}

/* Available products: flat catalogue rows. */
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-products-section{
  --pharmacy-product-line:color-mix(in srgb,var(--provider-accent) 16%,var(--provider-line));
  --pharmacy-product-surface:color-mix(in srgb,var(--provider-panel-solid) 94%,var(--provider-accent-soft) 6%);
  --pharmacy-product-muted:color-mix(in srgb,var(--provider-panel-muted) 94%,var(--provider-accent-soft) 6%);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list{
  display:grid;
  gap:9px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list-head,
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
  display:grid;
  grid-template-columns:minmax(0,2.25fr) minmax(160px,.72fr) minmax(150px,.64fr) minmax(135px,.58fr) minmax(110px,.48fr);
  align-items:center;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list-head{
  min-height:38px;
  padding:0 14px;
  border-bottom:1px solid var(--pharmacy-product-line);
  color:var(--provider-muted);
  font-size:.57rem;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list-head>span:not(:first-child){
  padding-left:15px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
  position:relative;
  min-width:0;
  min-height:126px;
  border:1px solid var(--pharmacy-product-line);
  border-radius:var(--provider-radius-sm);
  background:var(--pharmacy-product-surface);
  box-shadow:none;
  overflow:hidden;
  transition:border-color .18s ease,background .18s ease,transform .18s ease;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,var(--provider-accent),var(--provider-highlight));
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row::before{
  inset:0 0 0 auto;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row:hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb,var(--provider-accent) 34%,var(--provider-line));
  background:color-mix(in srgb,var(--pharmacy-product-surface) 94%,var(--provider-accent-soft) 6%);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row>div{
  min-width:0;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row>div+div{
  align-self:stretch;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:15px;
  border-inline-start:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-main{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:15px 16px 15px 20px;
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-main{
  padding:15px 20px 15px 16px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-thumb{
  position:relative;
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border:1px solid color-mix(in srgb,var(--provider-accent) 18%,var(--provider-line));
  border-radius:var(--provider-radius-sm);
  background:linear-gradient(145deg,var(--provider-accent-soft),var(--provider-panel-muted));
  overflow:hidden;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
  padding:7px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-placeholder{
  position:relative;
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:var(--provider-accent-strong);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-placeholder svg{
  width:28px;
  height:28px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.55;
  opacity:.28;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-placeholder strong{
  position:absolute;
  font-size:1.5rem;
  letter-spacing:-.06em;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-number{
  position:absolute;
  left:5px;
  top:5px;
  min-width:23px;
  height:23px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border:1px solid color-mix(in srgb,var(--provider-accent) 18%,var(--provider-line));
  border-radius:8px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);
  color:var(--provider-accent-strong);
  font-size:.52rem;
  font-weight:880;
  backdrop-filter:blur(8px);
}
[dir="rtl"] body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-number{
  left:auto;
  right:5px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-identity{
  min-width:0;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-topline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:5px 9px;
  margin-bottom:4px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-topline span{
  color:var(--provider-accent-strong);
  font-size:.58rem;
  font-weight:860;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-topline small{
  max-width:210px;
  color:var(--provider-muted);
  font-size:.57rem;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-identity h3{
  margin:0;
  color:var(--provider-ink)!important;
  font-size:1rem;
  line-height:1.2;
  letter-spacing:-.025em;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-identity p{
  margin:5px 0 0;
  color:var(--provider-muted);
  font-size:.7rem;
  line-height:1.48;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-prescription{
  width:max-content;
  max-width:100%;
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:7px;
  padding:4px 7px;
  border:1px solid color-mix(in srgb,var(--provider-accent) 22%,var(--provider-line));
  border-radius:999px;
  background:var(--provider-accent-soft);
  color:var(--provider-accent-strong);
  font-size:.54rem;
  font-weight:800;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-prescription svg{
  width:12px;
  height:12px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs{
  gap:7px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs>span{
  display:grid;
  gap:1px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs small,
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price small{
  color:var(--provider-muted);
  font-size:.51rem;
  font-weight:760;
  letter-spacing:.04em;
  text-transform:uppercase;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs strong{
  color:var(--provider-ink);
  font-size:.69rem;
  line-height:1.3;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-availability{
  gap:7px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-stock{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--provider-ink);
  font-size:.68rem;
  font-weight:830;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-stock i{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:#10b981;
  box-shadow:0 0 0 4px rgba(16,185,129,.10);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row--limited .pharmacy-product-stock i,
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row--preorder .pharmacy-product-stock i{
  background:#f59e0b;
  box-shadow:0 0 0 4px rgba(245,158,11,.10);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row--out_of_stock .pharmacy-product-stock i{
  background:#ef4444;
  box-shadow:0 0 0 4px rgba(239,68,68,.10);
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-availability>small{
  color:var(--provider-muted);
  font-size:.59rem;
  line-height:1.42;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price{
  gap:4px;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price strong{
  color:var(--provider-ink);
  font-size:.88rem;
  line-height:1.2;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price em{
  color:var(--provider-muted);
  font-size:.58rem;
  font-style:normal;
  font-weight:760;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action{
  align-items:stretch;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action>a{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid color-mix(in srgb,var(--provider-accent) 24%,var(--provider-line));
  border-radius:var(--provider-radius-sm);
  background:var(--provider-accent-soft);
  color:var(--provider-accent-strong);
  font-size:.66rem;
  font-weight:850;
  text-decoration:none;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action>a:hover{
  border-color:var(--provider-accent);
  background:var(--provider-accent);
  color:#fff;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action svg{
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
}
body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action-muted{
  color:var(--provider-muted);
  font-size:.58rem;
  line-height:1.4;
  text-align:center;
}

/* Product-row geometry follows each frontend theme without changing the row layout. */
body.guest-shell.frontend-theme-oceanic_pulse .provider-experience--marketplace .pharmacy-product-row{
  border-radius:18px 36px 18px 18px;
}
body.guest-shell.frontend-theme-alpine_frost .provider-experience--marketplace .pharmacy-product-row,
body.guest-shell.frontend-theme-alpine_frost .provider-experience--marketplace .pharmacy-product-thumb,
body.guest-shell.frontend-theme-alpine_frost .provider-experience--marketplace .pharmacy-product-action>a{
  border-radius:4px;
}
body.guest-shell.frontend-theme-sakura_health .provider-experience--marketplace .pharmacy-product-row{
  border-radius:28px 17px 28px 17px;
}
body.guest-shell.frontend-theme-royal_indigo .provider-experience--marketplace .pharmacy-product-row{
  border-style:double;
  border-width:3px;
  border-color:color-mix(in srgb,var(--provider-highlight) 32%,var(--pharmacy-product-line));
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--provider-highlight) 8%,transparent);
}
body.guest-shell.frontend-theme-citrus_vital .provider-experience--marketplace .pharmacy-product-row{
  border-width:2px;
  border-radius:22px 8px 22px 8px;
  box-shadow:5px 5px 0 color-mix(in srgb,var(--provider-accent) 10%,var(--provider-accent-soft));
}
body.guest-shell.frontend-theme-botanical_serenity .provider-experience--marketplace .pharmacy-product-row{
  border-color:color-mix(in srgb,var(--provider-accent) 12%,var(--provider-line));
  border-radius:32px 12px 32px 12px;
}
body.guest-shell.frontend-theme-aether_glass .provider-experience--marketplace .pharmacy-product-row{
  border-color:rgba(255,255,255,.42);
  border-radius:22px;
  background:color-mix(in srgb,var(--provider-panel-solid) 78%,transparent);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.52);
  backdrop-filter:blur(18px) saturate(1.1);
  -webkit-backdrop-filter:blur(18px) saturate(1.1);
}
body.guest-shell.frontend-theme-kinetic_spectrum .provider-experience--marketplace .pharmacy-product-row{
  border-radius:0;
  border-top:4px solid var(--provider-accent);
}
body.guest-shell.frontend-theme-kinetic_spectrum .provider-experience--marketplace .pharmacy-product-row::before{
  background:linear-gradient(180deg,var(--provider-highlight),var(--provider-accent));
}
body.guest-shell.frontend-theme-kinetic_spectrum .provider-experience--marketplace .pharmacy-product-thumb,
body.guest-shell.frontend-theme-kinetic_spectrum .provider-experience--marketplace .pharmacy-product-action>a{
  border-radius:3px;
}

html[data-theme="dark"] body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
  --pharmacy-product-surface:color-mix(in srgb,var(--provider-panel-solid) 92%,var(--provider-accent) 8%);
  --pharmacy-product-muted:color-mix(in srgb,var(--provider-panel-muted) 90%,var(--provider-accent) 10%);
}
html[data-theme="dark"] body.guest-shell.frontend-theme-aether_glass .provider-experience--marketplace .pharmacy-product-row{
  border-color:rgba(255,255,255,.16);
  background:color-mix(in srgb,var(--provider-panel-solid) 84%,transparent);
}

@media(max-width:1180px){
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list-head,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
    grid-template-columns:minmax(0,2fr) minmax(145px,.7fr) minmax(135px,.64fr) minmax(125px,.58fr) 96px;
  }
}
@media(max-width:1020px){
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-overview-layout{
    grid-template-columns:1fr;
  }
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-stack{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-list-head{
    display:none;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
    grid-template-columns:minmax(0,1.55fr) minmax(145px,.62fr) minmax(135px,.58fr);
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-main{
    grid-column:1/-1;
    border-bottom:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row>div+div{
    border-inline-start:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs{
    border-inline-start:0!important;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action{
    grid-column:1/-1;
    padding:10px 14px!important;
    border-top:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
    border-inline-start:0!important;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action>a{
    width:min(180px,100%);
    align-self:flex-end;
  }
}
@media(max-width:700px){
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section{
    padding-top:30px;
    padding-bottom:34px;
  }
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card{
    min-height:0;
    padding:66px 20px 20px;
  }
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-story-card>.provider-card-icon{
    top:18px;
    left:20px;
  }
  body.guest-shell[class*="frontend-theme-"]:not(.frontend-theme-aether_glass) .provider-experience--marketplace .pharmacy-overview-section .provider-fact-stack{
    grid-template-columns:1fr;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-main{
    grid-column:1/-1;
    grid-template-columns:76px minmax(0,1fr);
    gap:12px;
    padding:13px 14px 13px 18px;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-thumb{
    width:68px;
    height:68px;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-availability{
    border-top:0;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price{
    border-inline-start:0!important;
    border-top:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action{
    grid-column:auto;
    justify-content:center;
    border-inline-start:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent)!important;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action>a{
    width:100%;
    align-self:stretch;
  }
}
@media(max-width:500px){
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row{
    grid-template-columns:1fr;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-main{
    grid-column:auto;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row>div+div,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-price,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action{
    border-inline-start:0!important;
    border-top:1px solid color-mix(in srgb,var(--pharmacy-product-line) 76%,transparent);
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row>div+div{
    padding:11px 14px;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-specs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(prefers-reduced-motion:reduce){
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row,
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-action>a{
    transition:none;
  }
  body.guest-shell[class*="frontend-theme-"] .provider-experience--marketplace .pharmacy-product-row:hover{
    transform:none;
  }
}
