/* MyClinicProtocols search + support enhancements */
.mycp-search-wrap{position:relative;margin:0 0 20px;max-width:620px}
.mycp-search-wrap.mycp-order-search{max-width:none;margin:0 0 14px}
.mycp-search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:19px;height:19px;color:#6d7e91;pointer-events:none}
.mycp-search-input{width:100%;height:50px;padding:0 46px 0 46px;border:1px solid #cbd9e1;border-radius:14px;background:#fff;color:#102d55;font-family:"Figtree","Segoe UI",Arial,sans-serif;font-size:14px;outline:none;box-shadow:0 8px 22px rgba(8,40,93,.04);transition:border-color .15s ease,box-shadow .15s ease}
.mycp-search-input::placeholder{color:#8796a7}
.mycp-search-input:focus{border-color:#06999f;box-shadow:0 0 0 3px rgba(6,153,159,.09)}
.mycp-search-clear{position:absolute;right:10px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:9px;background:transparent;color:#6f8091;font-size:20px;line-height:1;display:grid;place-items:center;cursor:pointer;opacity:0;pointer-events:none;transition:.15s ease}
.mycp-search-wrap.has-value .mycp-search-clear{opacity:1;pointer-events:auto}
.mycp-search-clear:hover{background:#eef7f7;color:#057e83}
.mycp-search-empty{margin:14px 0 6px;padding:16px 18px;border:1px dashed #c8d7df;border-radius:13px;background:#f8fbfc;color:#65758c;font-size:14px}
.mycp-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

/* Force filtered results to disappear even when existing page CSS sets display on cards. */
.protocol[hidden],
.protocol-group-title[hidden],
.treatment[hidden],
.treatment-group-title[hidden],
.mycp-search-empty[hidden]{display:none!important}

.mycp-support-launcher{position:fixed;right:24px;bottom:24px;z-index:9998;display:flex;align-items:center;gap:9px;border:0;border-radius:999px;background:#06999f;color:#fff;padding:13px 18px;font-family:"Figtree","Segoe UI",Arial,sans-serif;font-size:14px;font-weight:800;box-shadow:0 14px 34px rgba(8,40,93,.22);cursor:pointer;transition:transform .18s ease,background .18s ease}
.mycp-support-launcher:hover{background:#057e83;transform:translateY(-2px)}
.mycp-support-launcher svg{width:20px;height:20px;flex:none}
.mycp-support-panel{position:fixed;right:24px;bottom:86px;z-index:9999;width:min(390px,calc(100vw - 32px));max-height:min(650px,calc(100vh - 110px));display:none;flex-direction:column;border:1px solid #dbe6eb;border-radius:20px;background:#fff;box-shadow:0 24px 70px rgba(8,40,93,.22);overflow:hidden;font-family:"Figtree","Segoe UI",Arial,sans-serif;color:#102d55}
.mycp-support-panel.open{display:flex}
.mycp-support-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 18px 15px;background:#08285d;color:#fff}
.mycp-support-title{display:flex;align-items:center;gap:11px;min-width:0}
.mycp-support-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#06999f;font-weight:900;letter-spacing:-.04em;flex:none}
.mycp-support-title strong{display:block;font-size:15px;line-height:1.2}
.mycp-support-title small{display:block;margin-top:3px;color:#bfd0e3;font-size:11px;font-weight:600}
.mycp-support-close{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.09);color:#fff;font-size:22px;display:grid;place-items:center;cursor:pointer;flex:none}
.mycp-support-close:hover{background:rgba(255,255,255,.16)}
.mycp-support-body{padding:16px;overflow:auto;background:#f7fafb}
.mycp-message{max-width:90%;margin:0 0 10px;padding:11px 13px;border-radius:14px;font-size:13px;line-height:1.5;white-space:pre-line}
.mycp-message.bot{background:#fff;border:1px solid #dfe8ed;border-bottom-left-radius:5px;color:#435a72}
.mycp-message.user{margin-left:auto;background:#e8f7f7;border:1px solid #c8eaea;border-bottom-right-radius:5px;color:#0b5960}
.mycp-quick-actions{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 4px}
.mycp-quick-actions button{border:1px solid #c8d9df;border-radius:999px;background:#fff;color:#0b6f75;padding:8px 10px;font-size:11px;font-weight:750;cursor:pointer}
.mycp-quick-actions button:hover{border-color:#06999f;background:#f0fbfb}
.mycp-support-compose{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px;border-top:1px solid #e3eaee;background:#fff}
.mycp-support-compose input{min-width:0;height:43px;border:1px solid #cad8e0;border-radius:11px;padding:0 12px;font-size:13px;outline:none}
.mycp-support-compose input:focus{border-color:#06999f;box-shadow:0 0 0 3px rgba(6,153,159,.08)}
.mycp-support-send{border:0;border-radius:11px;background:#06999f;color:#fff;padding:0 15px;font-size:12px;font-weight:800;cursor:pointer}
.mycp-support-send:hover{background:#057e83}
.mycp-support-email{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 12px 12px;padding:11px 12px;border-radius:11px;background:#eef8f8;color:#057e83;font-size:12px;font-weight:800;text-decoration:none}
.mycp-support-email:hover{background:#e2f4f4}
.mycp-support-privacy{padding:0 14px 13px;text-align:center;color:#7b8998;font-size:10px;background:#fff}

@media(max-width:620px){
  .mycp-search-input{height:48px;font-size:16px}
  .mycp-support-launcher{right:14px;bottom:14px;padding:12px 15px}
  .mycp-support-panel{right:14px;bottom:72px;width:calc(100vw - 28px);max-height:calc(100vh - 90px)}
}

/* 2026 weight management catalog */
.mycp-weight-feature{position:relative;overflow:hidden;border-color:#d4e9ea!important;background:linear-gradient(180deg,#fff 0%,#fbfefe 100%)!important}
.mycp-weight-feature:before{content:"";position:absolute;left:0;top:0;right:0;height:3px;background:linear-gradient(90deg,#06999f,#75d2d5)}
.mycp-weight-feature strong{line-height:1.3}
.mycp-weight-feature small{line-height:1.48;margin-top:7px}
.mycp-protocol-badge,.mycp-treatment-badge{display:inline-flex!important;align-items:center!important;width:max-content!important;margin:0 0 9px!important;padding:5px 8px!important;border-radius:999px!important;background:#e8f7f7!important;color:#057e83!important;font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.07em!important;text-transform:uppercase!important}
.mycp-protocol-badge.new{background:#e8f7f7!important;color:#057e83!important}
.mycp-protocol-badge.trend{background:#eef3ff!important;color:#385fa3!important}
.mycp-protocol-badge.core{background:#edf8f1!important;color:#1c7550!important}
.mycp-protocol-badge.support{background:#fff6e5!important;color:#8b6500!important}
.mycp-protocol-badge.focus{background:#f2edff!important;color:#6550a5!important}
.mycp-protocol-badge.topic{background:#fff0f6!important;color:#9b4168!important}
.mycp-protocol-badge.investigate,.mycp-treatment-badge.investigate{background:#fff1ec!important;color:#a44e2d!important}
.treatment .mycp-treatment-badge{margin-bottom:7px!important}
@media(max-width:620px){.mycp-weight-feature small{font-size:12px!important}.mycp-protocol-badge,.mycp-treatment-badge{font-size:9px!important}}

/* Smart MYCP assistant actions */
.mycp-support-panel{width:min(430px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 110px))}
.mycp-support-body{scroll-behavior:smooth}
.mycp-message-text{white-space:pre-line}
.mycp-message-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;padding-top:9px;border-top:1px solid #e7eef1}
.mycp-message-link{display:inline-flex;align-items:center;justify-content:center;min-height:31px;padding:7px 10px;border:1px solid #bee0e2;border-radius:999px;background:#f3fbfb;color:#057e83!important;font-size:10.5px;font-weight:800;text-decoration:none!important;line-height:1.25;transition:.15s ease}
.mycp-message-link:hover{background:#e6f7f7;border-color:#06999f;transform:translateY(-1px)}
.mycp-quick-actions{margin-top:13px;max-height:124px;overflow:auto;padding-right:2px}
.mycp-support-compose input::placeholder{color:#8898aa}
@media(max-width:620px){.mycp-support-panel{width:calc(100vw - 28px);max-height:calc(100vh - 90px)}.mycp-message{max-width:94%}.mycp-message-link{font-size:10px}}

/* Clickable All Access member portal banner on the homepage. The generated banner belongs to the ACCESS link, so the full banner is a link. */
body:has(.hero) .nav-links .nav-tab[href="all-access-request.html"]{position:static!important}
body:has(.hero) .nav-links .nav-tab[href="all-access-request.html"]::before{
  content:"30-Day All Access Member Portal   |   Protocol Library Access";
  position:fixed;
  top:112px;
  left:50%;
  z-index:20;
  width:min(1160px,calc(100% - 36px));
  transform:translateX(-50%);
  padding:12px 18px;
  border:1px solid #cde6e7;
  border-radius:12px;
  background:#eef9f9;
  color:#076c72;
  box-shadow:0 8px 24px rgba(7,31,87,.04);
  font-family:"Figtree","Segoe UI",Arial,sans-serif;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
  text-align:center;
  box-sizing:border-box;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body:has(.hero) .nav-links .nav-tab[href="all-access-request.html"]:hover::before{
  background:#e3f6f6;
  border-color:#9fd6d8;
  box-shadow:0 10px 28px rgba(7,31,87,.08);
}
@supports (animation-timeline: scroll()){
  body:has(.hero) .nav-links .nav-tab[href="all-access-request.html"]::before{
    animation:mycpMemberBannerHide linear both;
    animation-timeline:scroll(root block);
    animation-range:0 150px;
  }
  @keyframes mycpMemberBannerHide{
    0%,35%{opacity:1;visibility:visible}
    100%{opacity:0;visibility:hidden}
  }
}
@media(max-width:620px){
  body:has(.hero) .nav-links .nav-tab[href="all-access-request.html"]::before{
    top:92px;
    width:calc(100% - 24px);
    padding:10px 12px;
    font-size:11.5px;
  }
}