/* EasyRxDrug cart drawer (approved sample cart-drawer-sample.html). Replaces the theme's cart drawer. */
.shoptimizer-mini-cart-wrap{display:none!important}
html.erx-cd-lock{overflow:hidden}

.erx-cd{--g:#1E5540;--d:#0F3B2C;--lime:#C6F36B;--ink:#111C17;--mut:#4A5650;--line:#E2E7E4;position:fixed;inset:0;z-index:100002;visibility:hidden;transition:visibility 0s .3s;font-family:Manrope,system-ui,sans-serif;color:var(--ink)}
.erx-cd.is-open{visibility:visible;transition:none}
.erx-cd__ovl{position:absolute;inset:0;background:rgba(8,25,18,.5);opacity:0;transition:opacity .3s}
.erx-cd.is-open .erx-cd__ovl{opacity:1}
.erx-cd__panel{position:absolute;top:0;right:0;bottom:0;width:420px;max-width:100vw;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:-10px 0 30px rgba(0,0,0,.12);outline:0}
.erx-cd.is-open .erx-cd__panel{transform:none}
body.admin-bar .erx-cd__panel{top:32px}
@media (max-width:782px){body.admin-bar .erx-cd__panel{top:46px}}

.erx-cd__h{display:flex;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid var(--line)}
.erx-cd__h h2{margin:0!important;font-family:inherit!important;font-size:20px!important;font-weight:800!important;letter-spacing:-.01em;color:var(--ink)!important;line-height:1.2!important}
.erx-cd__count{font-size:12px;font-weight:800;color:var(--g);background:#E3F1EA;border-radius:999px;padding:3px 9px}
.erx-cd__count:empty{display:none}
.erx-cd__x{margin-left:auto!important;width:40px;height:40px;border-radius:10px!important;border:0!important;background:#EEF5F1!important;color:var(--g)!important;font-size:16px!important;cursor:pointer;padding:0!important;line-height:1!important}
.erx-cd__x:hover{background:#E3F1EA!important}
.erx-cd__added,.erx-cd__err{display:flex;gap:10px;align-items:center;margin:14px 18px 0!important;border-radius:12px;padding:10px 12px;font-size:14px;font-weight:700}
.erx-cd__added{background:#DDF5E6;color:#0E6B3F}
.erx-cd__added i{font-style:normal;width:24px;height:24px;border-radius:50%;background:#0E6B3F;color:#fff;display:grid;place-items:center;font-size:13px;flex:none}
.erx-cd__err{background:#FDECEC;color:#B42318}
.erx-cd__added[hidden],.erx-cd__err[hidden]{display:none}

.erx-cd-inner{flex:1;display:flex;flex-direction:column;min-height:0}
.erx-cd__b{flex:1;overflow-y:auto;padding:4px 18px 14px;overscroll-behavior:contain}
.erx-cd-loading{width:32px;height:32px;margin:60px auto;border-radius:50%;border:3px solid #E3F1EA;border-top-color:var(--g);animation:erx-cd-spin .8s linear infinite}
@keyframes erx-cd-spin{to{transform:rotate(360deg)}}

.erx-cd-line{display:grid;grid-template-columns:72px 1fr auto;gap:12px;padding:14px 0;border-bottom:1px solid #F0F3F1;position:relative;transition:opacity .2s}
.erx-cd-line:last-child{border-bottom:0}
.erx-cd-line.is-busy{opacity:.45;pointer-events:none}
.erx-cd-line__tile{width:72px;height:72px;background:#F6F8F7;border-radius:12px;display:grid;place-items:center;overflow:hidden}
.erx-cd-line__tile img{width:84%!important;height:auto!important;margin:0!important;mix-blend-mode:multiply}
.erx-cd-line__main{min-width:0}
.erx-cd-line__nm{display:block;font-size:15px;font-weight:800;line-height:1.3;color:var(--ink)!important;padding-right:28px;text-decoration:none!important}
a.erx-cd-line__nm:hover{color:var(--g)!important}
.erx-cd-line__pk{display:inline-block;margin:5px 0 8px;font-size:12px;font-weight:700;color:var(--g);background:#E3F1EA;border-radius:999px;padding:2px 9px}
.erx-cd-line__q{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.erx-cd-mq{display:flex;align-items:center;border:1.5px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}
.erx-cd-mq button{width:30px;height:32px;border:0!important;background:none!important;color:var(--g)!important;font-size:16px!important;font-weight:700;cursor:pointer;padding:0!important;line-height:1!important;box-shadow:none!important}
.erx-cd-mq button:hover{background:#EEF5F1!important}
.erx-cd-mq button:disabled{color:#B9C4BF!important;cursor:default;background:none!important}
.erx-cd-mq span{min-width:24px;text-align:center;font-weight:800;font-size:14px}
.erx-cd-line__each{font-size:13px;color:var(--mut);font-weight:600}
.erx-cd-line__lt{font-size:16px;font-weight:800;align-self:end;text-align:right;white-space:nowrap}
.erx-cd-line__rm{position:absolute;top:12px;right:0;width:28px;height:28px;border-radius:8px!important;border:0!important;background:none!important;color:#8A9690!important;cursor:pointer;display:grid;place-items:center;padding:0!important}
.erx-cd-line__rm:hover{background:#FDECEC!important;color:#B42318!important}
.erx-cd-line__rm svg{width:16px;height:16px}
.erx-cd :focus-visible{outline:3px solid #2563eb;outline-offset:2px}

.erx-cd-empty{text-align:center;padding:36px 8px}
.erx-cd-empty__ic{width:72px;height:72px;border-radius:50%;background:#E3F1EA;display:inline-grid;place-items:center;font-size:30px}
.erx-cd-empty b{display:block;font-size:19px;margin:14px 0 6px}
.erx-cd-empty p{color:var(--mut);font-size:14px;margin:0 0 16px}
.erx-cd-empty .erx-cd-btn{display:inline-flex;margin-bottom:18px}
.erx-cd-empty__chips{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.erx-cd-empty__chips a{border:1.5px solid var(--line);border-radius:999px;padding:7px 13px;font-size:13px;font-weight:700;color:var(--ink)!important;text-decoration:none!important}
.erx-cd-empty__chips a:hover{border-color:var(--g);color:var(--g)!important}

.erx-cd__f{border-top:1px solid var(--line);padding:14px 18px calc(14px + env(safe-area-inset-bottom));display:grid;gap:10px;background:#fff}
.erx-cd-ship{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--g);background:#F2FAF6;border-radius:10px;padding:8px 10px}
.erx-cd-sub{display:flex;justify-content:space-between;align-items:baseline}
.erx-cd-sub span{font-size:15px;font-weight:700;color:var(--mut)}
.erx-cd-sub b{font-size:22px;font-weight:800;letter-spacing:-.01em}
/* WooCommerce price markup inherits the drawer's sizes (the theme sets its own on .amount) */
.erx-cd .woocommerce-Price-amount,.erx-cd .woocommerce-Price-amount bdi,.erx-cd .woocommerce-Price-currencySymbol{font-size:inherit!important;font-weight:inherit!important;color:inherit!important}
.erx-cd-note{color:var(--mut);font-size:12px;font-weight:600;margin-top:-6px}
.erx-cd-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:var(--d)!important;color:#fff!important;border:0;border-radius:999px;padding:14px 18px;font-size:15px;font-weight:800;text-decoration:none!important;transition:background .2s}
.erx-cd-btn::after{content:"→";color:var(--lime);font-size:16px;line-height:1}
.erx-cd-btn:hover{background:var(--g)!important}
.erx-cd-btn--ghost{background:#fff!important;color:var(--g)!important;border:1.5px solid var(--g);padding:12px 18px}
.erx-cd-btn--ghost::after{content:none}
.erx-cd-btn--ghost:hover{background:#EEF5F1!important}
.erx-cd-cont{background:none!important;border:0!important;color:var(--g)!important;font-weight:800!important;font-size:14px!important;cursor:pointer;text-decoration:underline;padding:2px!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
.erx-cd-pay{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;border-top:1px dashed var(--line)}
.erx-cd-pay small{width:100%;text-align:center;font-size:11px;font-weight:800;color:var(--mut);letter-spacing:.08em;text-transform:uppercase;margin-top:8px}
.erx-cd-pay span{background:#fff;border:1px solid var(--line);border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800;line-height:1.2}

@media (max-width:767px){
  .erx-cd-pay{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .erx-cd-pay small{grid-column:1/-1}
  .erx-cd__panel{width:100vw}
  .erx-cd-line{grid-template-columns:64px 1fr auto}
  .erx-cd-line__tile{width:64px;height:64px}
}
@media (prefers-reduced-motion:reduce){.erx-cd,.erx-cd__ovl,.erx-cd__panel,.erx-cd-line{transition:none}.erx-cd-loading{animation:none}}
