/* EasyRxDrug cart + checkout: only what the Elementor Cart / Checkout widget controls can't style. */
.erx-co-wrap{--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;padding:0!important}
/* the theme's own title + progress bar above the page (the template has its own) */
/* (this site strips extra body classes, so the redesign is detected by its wrapper) */
body:has(.erx-co-wrap) .checkout-wrap,body:has(.erx-co-wrap) .entry-header,body:has(.erx-co-wrap) .archive-header{display:none!important}
/* full-width page (the template's own containers set the 1280px content width) */
body:has(.erx-co-wrap) .shoptimizer-archive > .col-full,body:has(.erx-co-wrap) .site-content > .col-full{max-width:none!important;padding:0!important;margin:0!important}
body:has(.erx-co-wrap) .site-content{padding:0!important;margin:0!important;background:#F3F5F4}

/* item count + pack pills, shipping note */
.erx-cc{display:inline-block;font:800 13px/1.4 Manrope,sans-serif;color:#1E5540;background:#E3F1EA;border-radius:999px;padding:3px 10px}
.erx-cc[hidden],.erx-fship[hidden]{display:none}
.erx-pk{display:table;margin:5px 0 2px;font:700 12px/1.4 Manrope,sans-serif;color:#1E5540;background:#E3F1EA;border-radius:999px;padding:2px 9px}
.erx-ship-note{display:block;font:600 12px/1.4 Manrope,sans-serif;color:#1E5540}
.erx-ship-free{color:#0E6B3F}

/* free-shipping progress */
.erx-fship{background:#F2FAF6;border:1px solid #D7EFE2;border-radius:14px;padding:12px 16px;font-family:Manrope,sans-serif}
.erx-fship p{margin:0 0 8px;font-size:14px;font-weight:600;color:#111C17}
.erx-fship__bar{height:8px;background:#DDEDE4;border-radius:999px;overflow:hidden}
.erx-fship__bar span{display:block;height:100%;background:#1E5540;border-radius:999px;transition:width .3s}
.erx-fship.is-done{background:#DDF5E6}
.erx-fship.is-done .erx-fship__bar span{background:#0E6B3F}

/* cart: hide the heading row when the cart is empty (the empty-cart template has its own) */
.erx-co-cart .erx-cart-head:has(.erx-cc[hidden]){display:none}

/* totals, full-width buttons, theme extras not in the design */
.erx-co-wrap .order-total .woocommerce-Price-amount,.erx-co-wrap .order-total .woocommerce-Price-amount bdi{font-size:22px!important;font-weight:800!important}
.erx-co-wrap .wc-proceed-to-checkout .checkout-button,.erx-co-wrap #place_order{width:100%!important;display:flex!important;justify-content:center;align-items:center;gap:8px}
.erx-co-wrap tr.coupon-form,.erx-co-wrap .textwidget:has(img[src*="trust-symbols"]){display:none!important}
.erx-co-wrap #shipping_method li:only-child input[type=radio]{display:none!important}
.erx-co-wrap #shipping_method li:only-child label::before{display:none!important}

/* checkout: numbered section titles 1 Contact & delivery · 2 Payment method · 3 Medical information */
.erx-co-checkout .woocommerce-billing-fields > h3,.erx-co-checkout .erx-payment > h3,.erx-co-checkout #additional_wooccm0_field h3{display:flex;align-items:center;gap:12px}
.erx-co-checkout .woocommerce-billing-fields > h3::before,.erx-co-checkout .erx-payment > h3::before,.erx-co-checkout #additional_wooccm0_field h3::before{width:30px;height:30px;border-radius:50%;background:#0F3B2C;color:#fff;display:grid;place-items:center;font-size:14px;flex:none}
.erx-co-checkout .woocommerce-billing-fields > h3::before{content:"1"}
.erx-co-checkout .erx-payment > h3::before{content:"2"}
.erx-co-checkout #additional_wooccm0_field h3::before{content:"3"}
.erx-co-checkout #additional_wooccm0_field h3{font-size:20px;font-weight:800;color:#111C17;margin:0 0 6px}
.erx-co-checkout #additional_wooccm0_field h3::after{content:"All optional";margin-left:auto;font-size:12px;font-weight:700;color:#4A5650}
.erx-co-checkout .wooccm-additional-fields .optional{display:none}
/* terms + Place order card (right column), delivery notes below it */
.erx-co-checkout .erx-place-order{background:#fff;border:1px solid #E2E7E4;border-radius:16px;padding:20px!important;margin:16px 0 0!important;font-family:Manrope,sans-serif;float:none!important;width:auto!important}
/* payment shares the medical section's card: a dashed divider separates them */
.erx-co-checkout .erx-payment{background:none;border:0;border-bottom:1px dashed #E2E7E4;padding:0 0 22px;margin:0 0 22px;font-family:Manrope,sans-serif}
/* medical questions: No / Yes pill toggle, prescription upload as a drop box */
.erx-co-checkout .woocommerce-radio-wrapper{display:inline-flex;border:1.5px solid #E2E7E4;border-radius:999px;padding:3px;background:#fff;gap:2px}
.erx-co-checkout .woocommerce-radio-wrapper br{display:none}
.erx-co-checkout .woocommerce-radio-wrapper input[type=radio]{position:absolute;opacity:0;width:1px;height:1px}
.erx-co-checkout .woocommerce-radio-wrapper label{margin:0!important;padding:7px 16px!important;border-radius:999px;font-size:13px!important;font-weight:800!important;color:#4A5650;cursor:pointer;line-height:1.2}
.erx-co-checkout .woocommerce-radio-wrapper label::before,.erx-co-checkout .woocommerce-radio-wrapper label::after{display:none!important}
.erx-co-checkout .woocommerce-radio-wrapper input:checked + label{background:#0F3B2C!important;color:#fff!important}
.erx-co-checkout .woocommerce-radio-wrapper input:focus-visible + label{outline:3px solid #2563eb;outline-offset:2px}
.erx-co-checkout .wooccm-file-button{width:100%!important;display:flex!important;align-items:center;justify-content:flex-start!important;gap:12px;background:#F7FAF8!important;color:#111C17!important;border:1.5px dashed #B9C9C0!important;border-radius:12px!important;padding:12px 14px!important;font:800 14px/1.3 Manrope,sans-serif!important;text-align:left!important;text-transform:none!important;box-shadow:none!important}
.erx-co-checkout .wooccm-file-button::before{content:"📄";width:38px;height:38px;border-radius:10px;background:#E3F1EA;display:grid;place-items:center;font-size:18px;flex:none}
.erx-co-checkout .wooccm-file-button::after{content:"Photo or PDF";margin-left:auto;font-size:12px;font-weight:600;color:#4A5650}
.erx-co-checkout .wooccm-file-button:hover{border-color:#1E5540!important}
.erx-co-checkout .erx-payment > h3{margin:0 0 16px;font-size:20px;font-weight:800;color:#111C17}

/* payment methods as cards */
.erx-payment ul.payment_methods{list-style:none;margin:0!important;padding:0!important;border:0!important;display:grid;gap:10px;background:none!important}
.erx-payment li.wc_payment_method{border:1.5px solid #E2E7E4;border-radius:14px;background:#fff;margin:0!important;padding:0!important;transition:border-color .15s,background .15s}
.erx-payment li.wc_payment_method:has(input:checked){border-color:#1E5540;background:#F7FCF9}
.erx-payment li.wc_payment_method > label{display:flex!important;align-items:center;gap:12px;padding:14px 16px!important;margin:0!important;cursor:pointer;font-weight:800;font-size:15px;color:#111C17}
.erx-payment li.wc_payment_method > input{position:absolute;opacity:0;width:1px;height:1px}
.erx-payment li.wc_payment_method > label::before{content:""!important;position:static!important;width:20px!important;height:20px!important;border-radius:50%!important;border:2px solid #B9C4BF!important;background:#fff!important;flex:none;box-sizing:border-box;transition:border-color .15s,box-shadow .15s;margin:0!important;transform:none!important}
.erx-payment li.wc_payment_method > label::after{display:none!important}
.erx-payment li.wc_payment_method:has(input:checked) > label::before{border-color:#1E5540!important;box-shadow:inset 0 0 0 4px #fff;background:#1E5540!important}
.erx-payment li.wc_payment_method:has(input:focus-visible){outline:3px solid #2563eb;outline-offset:2px}
.erx-payment .payment_box{margin:0!important;padding:0 16px 14px 48px!important;background:none!important;font-size:13.5px;color:#3F4B45;line-height:1.55}
.erx-payment .payment_box::before{display:none!important}

/* phone bar: total + Checkout / Place order */
.erx-co-bar{display:none}
@media (max-width:767px){
  .erx-payment .payment_box{padding-left:16px!important}
  .erx-co-bar{display:flex;position:fixed;left:0;right:0;bottom:var(--erx-co-bar-bottom,0px);z-index:9990;background:#fff;border-top:1px solid #E2E7E4;box-shadow:0 -10px 24px rgba(0,0,0,.08);padding:10px 14px calc(10px + env(safe-area-inset-bottom));align-items:center;gap:12px;font-family:Manrope,sans-serif;transition:transform .25s,opacity .25s}
  .erx-co-bar[hidden]{display:none}
  .erx-co-bar.is-away{transform:translateY(20px);opacity:0;pointer-events:none}
  .erx-co-bar div{flex:1;min-width:0}
  .erx-co-bar small{display:block;font-size:12px;color:#4A5650;font-weight:700}
  .erx-co-bar b{font-size:20px;font-weight:800;color:#111C17}
  .erx-co-bar__btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:999px;background:#0F3B2C!important;color:#fff!important;font:800 15px/1 Manrope,sans-serif;padding:14px 22px;text-decoration:none!important;cursor:pointer}
  .erx-co-bar__btn::after{content:"→";color:#C6F36B}
  .erx-co-bar__btn--lock::after{content:none}
  .erx-co-bar__btn--lock::before{content:"🔒"}
  body:has(.erx-co-wrap){padding-bottom:84px}
}
