/* Provider-grid sponsored cards
   These units live inside doctor/laboratory/pharmacy result grids and must remain
   visually compatible with every frontend theme without inheriting theme-specific
   nth-child card transforms. */
body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card{
  --rumi-provider-card-border:color-mix(in srgb,var(--border,#dfe7f1) 88%,transparent);
  --rumi-provider-card-surface:color-mix(in srgb,var(--surface,#fff) 95%,var(--surface-2,#f8fafc));
  --rumi-provider-card-muted:var(--muted,#64748b);
  --rumi-provider-card-accent:var(--primary,#0f766e);
  position:relative!important;
  inset:auto!important;
  z-index:2!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:stretch!important;
  grid-column:auto!important;
  grid-row:auto!important;
  align-self:stretch!important;
  justify-self:stretch!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:clamp(430px,48vw,620px)!important;
  margin:0!important;
  padding:0!important;
  border:1px solid var(--rumi-provider-card-border)!important;
  border-radius:clamp(20px,2vw,28px)!important;
  background:var(--rumi-provider-card-surface)!important;
  background-image:none!important;
  box-shadow:0 16px 40px rgba(15,35,63,.08)!important;
  color:var(--text,#172033)!important;
  clip-path:none!important;
  transform:none!important;
  rotate:none!important;
  translate:none!important;
  scale:1!important;
  filter:none!important;
  overflow:hidden!important;
  isolation:isolate!important;
  opacity:1!important;
  visibility:visible!important;
  contain:layout paint style;
}
body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card::before,body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card::after{
  content:none!important;
  display:none!important;
}
.rumi-provider-promo-accent{
  position:absolute;
  z-index:2;
  inset:0 0 auto;
  height:5px;
  background:linear-gradient(90deg,var(--rumi-provider-card-accent),color-mix(in srgb,var(--rumi-provider-card-accent) 55%,#fff));
  pointer-events:none;
}
.rumi-provider-promo-label{
  position:absolute;
  z-index:5;
  top:16px;
  right:16px;
  display:inline-flex;
  align-items:center;
  min-height:27px;
  padding:6px 10px;
  border:1px solid color-mix(in srgb,var(--rumi-provider-card-accent) 24%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--surface,#fff) 88%,transparent);
  box-shadow:0 6px 18px rgba(15,35,63,.08);
  color:color-mix(in srgb,var(--rumi-provider-card-accent) 82%,var(--text,#172033));
  font-size:.62rem;
  font-weight:850;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
[dir="rtl"] .rumi-provider-promo-label{right:auto;left:16px}
.rumi-provider-promo-image-shell{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  display:flex;
  min-width:0;
  min-height:0;
  width:100%;
  background:color-mix(in srgb,var(--surface-2,#f8fafc) 84%,transparent);
}
.rumi-provider-promo-image-link,.rumi-provider-promo-picture{
  display:flex;
  flex:1 1 auto;
  width:100%;
  min-width:0;
  min-height:0;
}
.rumi-provider-promo-picture{aspect-ratio:var(--rumi-provider-ad-ratio,600 / 760)}
.rumi-provider-promo-picture img{
  display:block!important;
  flex:1 1 auto;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  min-height:100%!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
}
.rumi-provider-promo-image-link:focus-visible,.rumi-provider-promo-cta:focus-visible{
  outline:3px solid color-mix(in srgb,var(--rumi-provider-card-accent) 52%,transparent);
  outline-offset:-4px;
}
.rumi-provider-promo-html{
  position:relative;
  z-index:1;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  min-width:0;
  padding:clamp(58px,6vw,78px) clamp(24px,3.2vw,40px) clamp(26px,3vw,38px);
  overflow-wrap:anywhere;
  text-align:start;
}
.rumi-provider-promo-html > *{max-width:100%;margin-block:0}
.rumi-provider-promo-html :is(h1,h2,h3,h4,h5,h6){
  margin:0;
  color:var(--text,#172033);
  font-family:inherit;
  line-height:1.08;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.rumi-provider-promo-html h1{font-size:clamp(1.75rem,3vw,2.45rem)}
.rumi-provider-promo-html h2{font-size:clamp(1.55rem,2.7vw,2.15rem)}
.rumi-provider-promo-html h3{font-size:clamp(1.35rem,2.4vw,1.9rem)}
.rumi-provider-promo-html :is(p,li){
  color:var(--rumi-provider-card-muted);
  font-size:clamp(.82rem,1.2vw,.98rem);
  line-height:1.65;
}
.rumi-provider-promo-html :is(ul,ol){
  display:grid;
  gap:8px;
  margin:0;
  padding-inline-start:1.25rem;
}
.rumi-provider-promo-html :is(strong,b){color:var(--text,#172033)}
.rumi-provider-promo-html :is(em,i){color:color-mix(in srgb,var(--text,#172033) 80%,var(--rumi-provider-card-accent))}
.rumi-provider-promo-html .provider-ad-eyebrow{
  display:inline-flex;
  align-self:flex-start;
  width:max-content;
  max-width:100%;
  padding:7px 10px;
  border:1px solid color-mix(in srgb,var(--rumi-provider-card-accent) 24%,transparent);
  border-radius:999px;
  background:color-mix(in srgb,var(--rumi-provider-card-accent) 8%,transparent);
  color:var(--rumi-provider-card-accent);
  font-size:.66rem;
  font-weight:850;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.rumi-provider-promo-html .provider-ad-title{
  color:var(--text,#172033);
  font-size:clamp(1.65rem,3vw,2.4rem);
  font-weight:850;
  line-height:1.05;
  letter-spacing:-.04em;
  text-wrap:balance;
}
.rumi-provider-promo-html .provider-ad-copy{color:var(--rumi-provider-card-muted);line-height:1.65}
.rumi-provider-promo-html .provider-ad-highlight{
  padding:13px 15px;
  border:1px solid color-mix(in srgb,var(--rumi-provider-card-accent) 18%,var(--rumi-provider-card-border));
  border-radius:14px;
  background:color-mix(in srgb,var(--rumi-provider-card-accent) 7%,var(--surface,#fff));
  color:var(--text,#172033);
  font-weight:750;
}
.rumi-provider-promo-html .provider-ad-list{
  display:grid;
  gap:8px;
  margin:0;
  padding-inline-start:1.2rem;
}
.rumi-provider-promo-footer{
  position:relative;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  padding:0 clamp(24px,3.2vw,40px) clamp(24px,3vw,36px);
}
[dir="rtl"] .rumi-provider-promo-footer{justify-content:flex-start}
.rumi-provider-promo-cta{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:42px!important;
  padding-inline:18px!important;
  border-radius:999px!important;
  text-decoration:none!important;
  white-space:nowrap;
}
html[data-theme="dark"] body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card{
  --rumi-provider-card-surface:color-mix(in srgb,var(--surface,#111827) 94%,#000);
  box-shadow:0 18px 44px rgba(0,0,0,.24)!important;
}
html[data-theme="dark"] .rumi-provider-promo-label{
  background:color-mix(in srgb,var(--surface,#111827) 88%,transparent);
}
@media(max-width:900px){
  body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card{
    min-height:clamp(420px,72vw,600px)!important;
  }
}
@media(max-width:640px){
  body[class*="frontend-theme-"] :is(.provider-grid,.marketplace-provider-grid) > .rumi-provider-promo-card{
    min-height:clamp(390px,118vw,560px)!important;
    border-radius:20px!important;
  }
  .rumi-provider-promo-label{top:13px;right:13px}
  [dir="rtl"] .rumi-provider-promo-label{right:auto;left:13px}
  .rumi-provider-promo-html{padding:54px 22px 24px;gap:12px}
  .rumi-provider-promo-footer{padding:0 22px 24px}
}
@media(prefers-reduced-motion:reduce){
  .rumi-provider-promo-card *{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}
