/* BoostMyGrade Promo Popup – all rules scoped to #bmgp so theme/Elementor styles can't leak in. */
#bmgp{--g:#58B80B;--n:#091C3A;--bg:#f4f6f8;--muted:#6b7686;--line:#c7ced8;
  font-family:Poppins,system-ui,sans-serif;color:var(--n);-webkit-font-smoothing:antialiased;line-height:1.4;text-align:left}
#bmgp *,#bmgp *::before,#bmgp *::after{box-sizing:border-box}
#bmgp [hidden]{display:none!important}

/* Neutralise theme button styles */
#bmgp button{-webkit-appearance:none;appearance:none;margin:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;
  font:inherit;letter-spacing:normal;text-transform:none;text-decoration:none;line-height:inherit;min-height:0;min-width:0;width:auto;height:auto;padding:0;cursor:pointer}
#bmgp button:focus-visible{outline:2px solid var(--g);outline-offset:2px}
#bmgp p{margin:0;padding:0}
#bmgp svg{display:block}
#bmgp img{max-width:none;border:0;box-shadow:none}

#bmgp .bmgp-cond{font-family:"Barlow Condensed",Impact,"Arial Narrow",sans-serif;font-style:italic;font-weight:900;line-height:.95;text-transform:uppercase;letter-spacing:.2px}

/* ---------------- Card ---------------- */
#bmgp .bmgp-card{position:fixed;right:20px;bottom:var(--bmgp-bottom,96px);z-index:2147483000;width:340px;
  max-height:calc(100vh - var(--bmgp-bottom,96px) - 20px);overflow:hidden auto;overscroll-behavior:contain;scrollbar-width:none;
  background:var(--bg);border-radius:18px;box-shadow:0 18px 50px rgba(9,28,58,.35),0 0 0 1px rgba(9,28,58,.06);
  transform:translateY(calc(100% + 120px));opacity:0;transition:transform .45s cubic-bezier(.2,.9,.3,1.15),opacity .3s}
#bmgp .bmgp-card::-webkit-scrollbar{display:none}
#bmgp .bmgp-card.is-open{transform:none;opacity:1}
#bmgp .bmgp-swoosh{position:absolute;left:0;top:0;width:120px;height:150px;pointer-events:none}
#bmgp .bmgp-dots{position:absolute;right:-6px;top:0;width:70px;height:46px;pointer-events:none;opacity:.5}
#bmgp .bmgp-close{position:absolute;right:10px;top:10px;z-index:3;width:28px;height:28px;border-radius:50%;background:rgba(9,28,58,.08);
  color:var(--n);font-size:20px;line-height:28px;text-align:center}
#bmgp .bmgp-close:hover{background:var(--n);color:#fff}
#bmgp .bmgp-inner{position:relative;z-index:2;padding:18px 20px 0;text-align:center}
#bmgp .bmgp-logo{display:inline-flex;background:var(--n);border-radius:12px;padding:7px 16px;margin-bottom:10px}
#bmgp .bmgp-logo img{height:24px;width:auto;display:block}
#bmgp .bmgp-urgent{display:inline-block;background:#e63946;color:#fff;font:700 10.5px/1.4 Poppins,sans-serif;letter-spacing:.8px;text-transform:uppercase;
  padding:3px 10px;border-radius:20px;margin-bottom:6px;animation:bmgpPulse 1.6s infinite}
@keyframes bmgpPulse{50%{transform:scale(1.06)}}
#bmgp .bmgp-h1{font-size:34px;color:var(--n)}
#bmgp .bmgp-h2{font-size:31px;color:var(--g);margin-top:2px}
#bmgp .bmgp-div{display:flex;align-items:center;gap:8px;margin:10px 18px 8px}
#bmgp .bmgp-div i{flex:1;height:1.5px;background:var(--n)}
#bmgp .bmgp-div b{display:flex;gap:4px}
#bmgp .bmgp-div b::before,#bmgp .bmgp-div b::after,#bmgp .bmgp-div b span{content:"";width:7px;height:7px;border-radius:50%;background:var(--n);display:block}

#bmgp .bmgp-off{position:relative;background:var(--n);border-radius:16px;padding:6px 10px 4px;margin:0 6px;
  display:flex;align-items:center;justify-content:center;gap:6px;box-shadow:5px 5px 0 var(--g)}
#bmgp .bmgp-d{font-size:30px;color:var(--g);align-self:flex-start;margin-top:8px;-webkit-text-stroke:1px #fff;paint-order:stroke fill}
#bmgp .bmgp-n{font-size:76px;color:var(--g);-webkit-text-stroke:2px #fff;paint-order:stroke fill;line-height:.9}
#bmgp .bmgp-o{font-size:52px;color:#fff}
#bmgp .bmgp-burst{position:absolute;top:-12px;width:26px;height:26px;pointer-events:none}
#bmgp .bmgp-burst-l{left:-14px}
#bmgp .bmgp-burst-r{right:-14px;transform:scaleX(-1)}

#bmgp .bmgp-ribbon{background:var(--g);color:#fff;font:600 12px/1.4 Poppins,sans-serif;padding:5px 16px;margin:14px 0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  clip-path:polygon(0 0,100% 0,96% 50%,100% 100%,0 100%,4% 50%)}
#bmgp .bmgp-copy-txt{font-size:13px;line-height:1.45;margin:0 0 10px;color:var(--n)}
#bmgp .bmgp-copy-txt b{color:var(--g);font-weight:700}
#bmgp .bmgp-feats{display:grid;grid-template-columns:repeat(3,1fr);margin:0 -4px 12px}
#bmgp .bmgp-feats div{font-size:10.5px;line-height:1.3;padding:0 4px;color:var(--n)}
#bmgp .bmgp-feats div+div{border-left:1px solid var(--line)}
#bmgp .bmgp-feats svg{width:30px;height:30px;margin:0 auto 4px}

/* Promo code (copy button) */
#bmgp .bmgp-code{display:flex;width:100%;border:2px solid var(--g);border-radius:12px;overflow:hidden;background:#fff;transition:transform .15s,box-shadow .15s}
#bmgp .bmgp-code:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(88,184,11,.3);background:#fff}
#bmgp .bmgp-l{background:var(--n);color:#fff;font-size:17px;padding:9px 9px 8px;white-space:nowrap;display:flex;align-items:center}
#bmgp .bmgp-r{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;color:var(--g);font-size:25px;padding:4px 6px}
#bmgp .bmgp-cp{font:600 9px/1 Poppins,sans-serif;letter-spacing:.4px;color:#fff;background:var(--g);border-radius:6px;padding:4px 6px;white-space:nowrap;display:flex;align-items:center;gap:4px}
#bmgp .bmgp-cp svg{width:11px;height:11px}
#bmgp .bmgp-code.is-copied{border-color:var(--n)}
#bmgp .bmgp-code.is-copied .bmgp-cp{background:var(--n)}
#bmgp .bmgp-hint{font-size:10.5px;color:var(--muted);margin-top:5px}

#bmgp .bmgp-meta{display:grid;grid-template-columns:1fr 1fr;margin-top:12px;text-align:left}
#bmgp .bmgp-meta.bmgp-meta-1{grid-template-columns:1fr;justify-items:center}
#bmgp .bmgp-meta>div{display:flex;gap:7px;align-items:center;font-size:10.5px;line-height:1.3;padding:0 6px}
#bmgp .bmgp-meta>div+div{border-left:1px solid var(--line)}
#bmgp .bmgp-meta svg{width:26px;height:26px;flex:none}
#bmgp .bmgp-meta b{display:block;font-size:11px;font-weight:700}
#bmgp .bmgp-meta em{font-style:normal;color:var(--g)}

#bmgp .bmgp-foot{position:relative;display:block;width:100%;margin-top:14px;padding:26px 16px 14px;color:#fff;text-align:center}
#bmgp .bmgp-wave{position:absolute;inset:0;width:100%;height:100%}
#bmgp .bmgp-foot-in{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;text-align:left;
  font-family:"Barlow Condensed",sans-serif;font-style:italic;font-weight:700;font-size:17px;line-height:1.15}
#bmgp .bmgp-foot em{color:var(--g);font-style:inherit}
#bmgp .bmgp-chat-ic{width:28px;height:24px;flex:none}
#bmgp .bmgp-foot:hover .bmgp-t{text-decoration:underline}

/* ---------------- Minimised tab ---------------- */
#bmgp .bmgp-tab{position:fixed;right:0;bottom:calc(var(--bmgp-bottom,96px) + 70px);z-index:2147483000;display:flex;align-items:center;gap:8px;
  background:var(--g);color:#fff;border-radius:10px 0 0 10px;padding:10px 12px 10px 14px;box-shadow:0 6px 18px rgba(9,28,58,.3);
  transform:translateX(110%);transition:transform .35s}
#bmgp .bmgp-tab.is-open{transform:none}
#bmgp .bmgp-tab:hover{background:#4ea409}
#bmgp .bmgp-tab .bmgp-cond{font-size:22px}
#bmgp .bmgp-tab small{display:block;font:600 9.5px/1.2 Poppins,sans-serif;opacity:.9;text-align:left}
#bmgp .bmgp-tab .bmgp-x{margin-left:4px;opacity:.75;font-size:16px;line-height:1;padding:2px}
#bmgp .bmgp-tab .bmgp-x:hover{opacity:1}

/* ---------------- Mobile bar ---------------- */
#bmgp .bmgp-bar{position:fixed;left:0;right:0;bottom:0;z-index:2147482999;display:flex;align-items:center;gap:10px;
  background:var(--n);color:#fff;border-top:3px solid var(--g);max-height:15vh;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));box-shadow:0 -6px 20px rgba(0,0,0,.2);
  transform:translateY(110%);transition:transform .35s}
#bmgp .bmgp-bar.is-open{transform:none}
#bmgp .bmgp-bar[data-bmgp]{cursor:pointer}
#bmgp .bmgp-amt{font-size:24px;color:var(--g);flex:none}
#bmgp .bmgp-txt{flex:1;min-width:0;font-size:12px;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#bmgp .bmgp-txt em{color:var(--g);font-style:normal;font-weight:700}
#bmgp .bmgp-u{color:#ffb3b8;font-weight:700}
#bmgp .bmgp-go{flex:none;background:var(--g);color:#fff;border-radius:8px;font:700 12px/1 Poppins,sans-serif;padding:10px 12px}
#bmgp .bmgp-bar .bmgp-x{flex:none;color:#fff;opacity:.7;font-size:22px;line-height:1;padding:0 2px}

/* Lift the Zendesk launcher above the mobile bar while it's visible */
body.bmgp-bar-on iframe#launcher,
body.bmgp-bar-on iframe[title="Button to launch messaging window"]{transform:translateY(calc(-1 * var(--bmgp-bar-h,70px)));transition:transform .35s}

/* ---------------- Toast ---------------- */
#bmgp .bmgp-toast{position:fixed;left:50%;bottom:24px;z-index:2147483001;transform:translate(-50%,40px);opacity:0;pointer-events:none;
  background:var(--n);color:#fff;font:600 13px/1.3 Poppins,sans-serif;padding:9px 16px;border-radius:30px;transition:.3s;white-space:nowrap}
#bmgp .bmgp-toast.is-show{transform:translate(-50%,0);opacity:1}

/* ---------------- Mobile: card = bottom sheet ---------------- */
@media (max-width:767px){
  #bmgp .bmgp-card{left:0;right:0;bottom:0;width:auto;max-width:420px;margin:0 auto;border-radius:18px 18px 0 0;max-height:88vh;
    padding-bottom:env(safe-area-inset-bottom,0px)}
  #bmgp .bmgp-tab{bottom:96px}
}
@media (max-width:360px){
  #bmgp .bmgp-inner{padding:16px 14px 0}
  #bmgp .bmgp-n{font-size:64px}
  #bmgp .bmgp-o{font-size:44px}
}
@media (prefers-reduced-motion:reduce){
  #bmgp .bmgp-card,#bmgp .bmgp-tab,#bmgp .bmgp-bar,#bmgp .bmgp-toast{transition:none}
  #bmgp .bmgp-urgent{animation:none}
}
@media print{#bmgp{display:none!important}}
