/* Green Pharmacy customer journey V12: presentation-only, public site. */
/* AI stays bottom-left; WhatsApp moves to the opposite corner. */
.gp-floating-help{left:auto!important;right:18px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;z-index:90}
.gp-floating-help .gp-floating-whatsapp{background:#16844c;color:#fff;border:1px solid rgba(255,255,255,.28);box-shadow:0 8px 28px rgba(3,63,37,.2)}
.gp-floating-help .gp-floating-whatsapp:is(:hover,:focus-visible){background:#0b6b3c;color:#fff}
.gp-floating-help a:focus-visible{outline:3px solid #084f3b;outline-offset:3px}
body:has(.green-ai-sitewide .mwai-chat.mwai-open) .gp-floating-help,
body:has(.green-ai-sitewide .mwai-chat.mwai-opening) .gp-floating-help{opacity:0;pointer-events:none}

/* Useful shortcuts, not generic claims. */
body.home .gp-home-actions{background:#f7fbf9!important;border-bottom:1px solid #dcece3;padding:17px 0!important}
body.home .gp-home-actions>.container{height:auto!important;min-height:0;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:13px;align-items:stretch;direction:rtl}
body.home .gp-home-actions .gp-home-action{display:flex;align-items:center;justify-content:flex-start;min-width:0;min-height:78px;padding:15px 17px;gap:12px;border:1px solid #dceae1;border-radius:16px;background:#fff;box-shadow:0 4px 18px rgba(7,71,49,.045);text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}
body.home .gp-home-actions .gp-home-action>i:first-child{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:14px;background:#e8f5ed;color:#0a7a54;font-size:20px}
body.home .gp-home-action span{display:flex;min-width:0;flex:1;flex-direction:column;gap:4px;line-height:1.5}
body.home .gp-home-action strong{font-size:15px;color:#0d4b37;font-weight:850}
body.home .gp-home-action small{font-size:12px;color:#5a7467;font-weight:550;line-height:1.6;margin:0}
body.home .gp-home-action .gp-home-action-arrow{font-size:13px;color:#4e8e70;flex:none}
body.home .gp-home-action:hover{transform:translateY(-2px);border-color:#b4d9c4;box-shadow:0 10px 24px rgba(7,71,49,.08)}
body.home .gp-home-action:focus-visible{outline:3px solid #0a8054;outline-offset:3px}

/* A modest medicine shelf AFTER non-drug care and clear navigation. */
body.home .gp-home-medicines{background:#f7faf8!important}
body.home .gp-home-medicines .gp-premium-med-shelf{border-top:0;margin-top:0;padding-top:0}
body.home .gp-home-medicines .gp-premium-products{grid-template-columns:repeat(4,minmax(0,1fr))}
body.home .gp-home-medicines .gp-premium-item-copy p{min-height:0}
body.home .gp-premium-cat-title strong{text-align:right}

/* Avoid presenting unconfirmed catalog prices as sellable/current offers. */
body.home .gp-beauty-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:auto;padding-top:9px;border-top:1px solid #e6f0e9}
body.home .gp-beauty-actions span{color:#61766b;font-size:11px;line-height:1.65;font-weight:650}
body.home .gp-beauty-actions a{color:#087354;background:#eaf6ee;border:1px solid #d4eadd;border-radius:9px;padding:7px 10px;text-decoration:none;font-size:12px;line-height:1.5;font-weight:850;display:inline-flex;gap:7px;align-items:center}
body.home .gp-beauty-actions a:hover{background:#d9efe2;color:#064d38}
body.home .gp-beauty-actions a:focus-visible{outline:3px solid #14845a;outline-offset:2px}

@media(max-width:820px){
  body.home .gp-home-actions>.container{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  body.home .gp-home-action:first-child{grid-column:1/-1}
  body.home .gp-home-actions .gp-home-action{min-height:67px;padding:11px 12px;gap:9px}
  body.home .gp-home-actions .gp-home-action>i:first-child{width:36px;height:36px;border-radius:11px;font-size:17px}
  body.home .gp-home-action strong{font-size:12px}
  body.home .gp-home-action small{font-size:10.5px}
  body.home .gp-home-action .gp-home-action-arrow{display:none}
  body.home .gp-home-medicines .gp-premium-products{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gp-floating-help{right:12px!important;left:auto!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
  .gp-floating-help a{height:50px;width:50px;padding:0;justify-content:center;border-radius:50%}
  .gp-floating-help a span{display:none}
  .gp-floating-help .gp-floating-whatsapp i{font-size:25px}
  .gp-ref-header .gp-header-grid{min-width:0;max-width:100%;box-sizing:border-box}
  .gp-ref-header .gp-head-search{min-width:0;width:100%;box-sizing:border-box}
  .gp-ref-header .gp-head-search input{min-width:0;max-width:100%;font-size:14px!important;padding-inline:11px!important}
}
@media(max-width:600px){
  body.home .gp-ref-hero{height:340px!important;max-width:100vw}
  body.home .gp-ref-hero-inner{box-sizing:border-box;display:flex;justify-content:center;align-items:center;width:100%!important;max-width:100%!important;padding-inline:22px!important;margin-inline:auto!important}
  body.home .gp-ref-hero-copy{box-sizing:border-box;width:100%!important;max-width:350px!important;min-width:0;padding:17px 18px!important;margin:0!important;border-radius:17px;text-align:right}
  body.home .gp-ref-hero-copy :is(h1,h2){font-size:clamp(23px,6.25vw,30px)!important;line-height:1.38!important;letter-spacing:0;text-wrap:balance}
  body.home .gp-ref-hero-copy p{font-size:12px!important;line-height:1.75!important}
  body.home .gp-home-actions .gp-home-action>i:first-child{width:34px;height:34px}
  body.home .gp-home-medicines .gp-premium-photo img{height:130px}
  body.home .gp-beauty-actions{align-items:start}
  body.home .gp-beauty-actions a{font-size:11px;min-height:38px}
  body.home .gp-rb-fab{left:10px;bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  body.home .gp-rb-status{bottom:calc(147px + env(safe-area-inset-bottom,0px))}
}
@media(prefers-reduced-motion:reduce){body.home .gp-home-actions .gp-home-action{transition:none}}

/* When a request list has items, stack it above WhatsApp on the right,
   leaving the AI corner completely free. Empty list stays hidden by JS. */
.gp-rb-fab{left:auto!important;right:18px!important;bottom:calc(88px + env(safe-area-inset-bottom,0px))!important}
.gp-rb-status{left:auto!important;right:18px!important;bottom:calc(151px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:820px){
  .gp-rb-fab{left:auto!important;right:12px!important;bottom:calc(78px + env(safe-area-inset-bottom,0px))!important;max-width:calc(100vw - 24px)}
  .gp-rb-status{left:auto!important;right:12px!important;bottom:calc(140px + env(safe-area-inset-bottom,0px))!important}
}


/* Brand V13 — accessible full-resolution identity; original green visual language retained. */
.gp-ref-header .gp-brand-logo-img{
  width:60px!important;
  height:60px!important;
  flex:0 0 60px!important;
  display:block;
  object-fit:contain;
  filter:none!important;
  background:none!important;
  border:0;
}
.gp-ref-header .gp-brand{
  display:inline-flex;
  align-items:center;
  min-width:0;
  gap:12px;
}
.gp-ref-header .gp-brand-copy{
  min-width:0;
  padding-inline-start:12px;
  border-inline-start:2px solid #57c941;
}
.gp-ref-header .gp-brand-copy strong{letter-spacing:-.025em}
.gp-ref-header .gp-brand-copy small{line-height:1.5}

/* Footer: sharp transparent icon, measured columns, readable bilingual brand. */
.gp-ref-footer.gp-footer-pro{
  background:linear-gradient(118deg,#084b3d 0%,#064a3b 46%,#043b31 100%)!important;
  color:#fff;
}
.gp-ref-footer .gp-footer-main{
  box-sizing:border-box;
  width:100%;
  grid-template-columns:minmax(220px,1.32fr) minmax(125px,.72fr) minmax(145px,.88fr) minmax(190px,1.12fr);
  gap:clamp(16px,2vw,35px);
  padding-block:48px 40px;
  align-items:start;
}
.gp-ref-footer .gp-footer-main>*{min-width:0}
.gp-ref-footer .gp-footer-brand{
  display:inline-flex;
  align-items:center;
  gap:14px;
  min-width:0;
  max-width:100%;
  direction:ltr;
  text-align:left;
  text-decoration:none;
}
.gp-ref-footer .gp-footer-brand .gp-footer-logo-img{
  width:74px!important;
  height:74px!important;
  flex:0 0 74px;
  display:block;
  object-fit:contain!important;
  filter:none!important;
  background:transparent!important;
  mix-blend-mode:normal!important;
  border:0;
}
.gp-ref-footer .gp-footer-brand>span:last-child{
  display:flex;
  flex-direction:column;
  min-width:0;
  align-items:flex-start;
  padding-left:13px;
  border-left:2px solid #83df51;
  line-height:1.24;
}
.gp-ref-footer .gp-footer-brand strong{
  color:#fff!important;
  font-size:clamp(18px,1.85vw,24px)!important;
  font-weight:850;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.gp-ref-footer .gp-footer-brand small{
  color:#deffed!important;
  font-size:13px!important;
  font-weight:650;
  line-height:1.55;
  direction:rtl;
  text-align:right;
}
.gp-ref-footer .gp-footer-about p{
  max-width:360px;
  margin:17px 0 18px;
  color:#e0f1e8;
  font-size:13px;
  line-height:1.92;
  overflow-wrap:anywhere;
}
.gp-ref-footer .gp-footer-column{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-width:0;
  gap:10px;
}
.gp-ref-footer .gp-footer-column h3{
  margin:2px 0 10px!important;
  padding:0;
  color:#fff;
  font-size:16px;
  font-weight:850;
  line-height:1.45;
}
.gp-ref-footer .gp-footer-column>a{
  display:block;
  max-width:100%;
  color:#dcf2e8!important;
  text-decoration:none!important;
  font-size:13px;
  line-height:1.75;
  overflow-wrap:anywhere;
  padding:1px 0;
}
.gp-ref-footer .gp-footer-column>a:hover,
.gp-ref-footer .gp-footer-column>a:focus-visible{
  color:#fff!important;
  text-decoration:underline!important;
  text-underline-offset:3px;
}
.gp-ref-footer .gp-footer-contact-list :is(a,span){
  min-width:0;
  overflow-wrap:anywhere;
}
.gp-ref-footer .gp-footer-bottom{
  border-top:1px solid rgba(226,255,239,.18);
}
.gp-ref-footer .gp-footer-bottom .container{
  flex-wrap:wrap;
  min-height:58px;
  padding-block:12px;
  row-gap:10px;
}
.gp-ref-footer .gp-footer-legal{
  min-width:0;
  gap:8px 15px;
}
.gp-ref-footer .gp-footer-legal a{
  color:#dff5eb!important;
  text-decoration:none;
}
.gp-ref-footer a:focus-visible{
  outline:2px solid #9cedaa;
  outline-offset:3px;
  border-radius:3px;
}
@media(max-width:1100px){
  .gp-ref-footer .gp-footer-main{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:26px 22px;
    padding-block:34px 30px;
  }
  .gp-ref-footer .gp-footer-contact-list{grid-column:auto!important}
}
@media(max-width:620px){
  .gp-ref-header .gp-brand-logo-img{
    width:48px!important;
    height:48px!important;
    flex-basis:48px!important;
  }
  .gp-ref-header .gp-brand{gap:7px}
  .gp-ref-header .gp-brand-copy{
    padding-inline-start:9px;
    border-inline-start-width:1px;
  }
  .gp-ref-footer .gp-footer-main{
    grid-template-columns:minmax(0,1fr)!important;
    gap:23px;
    padding-block:32px 26px;
  }
  .gp-ref-footer .gp-footer-about{text-align:right}
  .gp-ref-footer .gp-footer-brand .gp-footer-logo-img{
    width:62px!important;
    height:62px!important;
    flex-basis:62px;
  }
  .gp-ref-footer .gp-footer-brand strong{font-size:20px!important}
  .gp-ref-footer .gp-footer-brand small{font-size:12px!important}
  .gp-ref-footer .gp-footer-bottom .container{
    flex-direction:column;
    text-align:center;
  }
  .gp-ref-footer .gp-footer-legal{justify-content:center}
}
/* Green Pharmacy catalog, mobile 2026-11-06: avoid AI tooltip covering product CTAs.
   The actual AI trigger and WhatsApp contact link remain enabled. */
@media (max-width:760px) {
  .green-ai-sitewide .mwai-trigger .mwai-icon-text-container {
    display: none !important;
  }
  body:has(.gp-products-page) .gp-floating-help a {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
  }
  body:has(.gp-products-page) .gp-floating-help .gp-floating-whatsapp i {
    font-size: 23px;
  }
}
