/* DrugsGeneral cart drawer critical CSS fallback.
 * Loaded on every front-end page so AJAX-rendered cart markup can never appear unstyled.
 */
#dg-cart-overlay,.dg-cart-overlay{position:fixed;inset:0;background:rgba(15,17,17,.42);z-index:9940;opacity:0;visibility:hidden;transition:opacity .25s ease,visibility .25s ease}
#dg-cart-overlay.open,.dg-cart-overlay.open{opacity:1;visibility:visible}
#dg-cart-drawer,.dg-cart-drawer{position:fixed;top:0;right:0;width:min(420px,100vw);height:100dvh;max-height:100vh;background:#fff;z-index:9950;transform:translateX(100%);transition:transform .3s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;box-shadow:-10px 0 35px rgba(0,0,0,.16);overflow:hidden}
#dg-cart-drawer.open,.dg-cart-drawer.open{transform:translateX(0)}
.dg-cart-drawer-head{background:var(--navy-deep,#005F6B);padding:0;flex-shrink:0;color:#fff}
.dg-cart-drawer-head-top{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 12px}
.dg-cart-drawer-title{display:flex;align-items:center;gap:9px;font-family:var(--font-head,Arial,sans-serif);font-size:15px;font-weight:700;color:#fff}
.dg-cart-count-inline{font-size:12px;font-weight:400;color:rgba(255,255,255,.65);margin-left:2px}
.dg-cart-drawer-close{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);color:rgba(255,255,255,.9);flex-shrink:0}
.dg-cart-trust-strip{display:flex;gap:12px;padding:10px 20px 16px;border-top:1px solid rgba(255,255,255,.1);overflow:hidden}
.dg-cart-trust-badge{display:flex;align-items:center;gap:5px;font-size:9px;color:rgba(255,255,255,.72);white-space:nowrap}
.dg-cart-drawer-body{flex:1;min-height:0;overflow-y:auto;background:#F7F8F8;scrollbar-width:thin}
.dg-cart-item{margin:14px 14px 0;background:#fff;border:1px solid #D5D9D9;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px rgba(17,29,82,.06)}
.dg-cart-item-top{display:flex;align-items:flex-start;gap:12px;padding:14px}
.dg-cart-item-img{width:68px;height:68px;border-radius:10px;flex:0 0 68px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;background:#EAEDED;border:1px solid #D5D9D9}
.dg-cart-item-img img{width:100%;height:100%;object-fit:cover;display:block}
.dg-cart-item-info{min-width:0;flex:1}
.dg-cart-item-header{display:flex;align-items:flex-start;gap:8px}
.dg-cart-item-name{font-size:13px;font-weight:600;color:#565959;line-height:1.35;flex:1;min-width:0}
.dg-cart-item-brand{font-size:10.5px;color:#8F9191;margin:3px 0 8px}
.dg-cart-item-price-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.dg-cart-item-price{font-family:var(--font-head,Arial,sans-serif);font-size:17px;font-weight:800;color:#005F6B;line-height:1}
.dg-cart-item-reg{font-size:11px;color:#8F9191;text-decoration:line-through}
.dg-cart-item-save-pill{font-size:10px;font-weight:700;color:#067D62;background:#E8F5EE;border-radius:5px;padding:2px 7px}
.dg-cart-item-remove{display:flex;align-items:center;justify-content:center;width:28px;height:28px;color:#8F9191;background:transparent;border:0;border-radius:6px;flex-shrink:0}
.dg-cart-item-bulk-price{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:8px;padding:7px 9px;background:#EDF7F9;border:1px solid #C8EBF0;border-radius:7px;color:#005F6B;font-size:10.5px;line-height:1.3}
.dg-cart-item-bulk-price strong{font-size:11.5px;color:#005F6B}
.dg-cart-item-bulk-price small{font-size:10px;color:#565959}
.dg-cart-item-meta-strip{display:flex;align-items:center;justify-content:space-between;padding:7px 12px 8px;border-top:1px solid #F0F1F1;background:#F7F8F8;gap:8px}
.dg-cart-item-meta{font-size:10.5px;color:#565959;display:flex;align-items:center;gap:5px;min-width:0}
.dg-qty-control{display:flex;align-items:center;border:1px solid #D5D9D9;border-radius:8px;overflow:hidden;background:#fff;flex-shrink:0}
.dg-qty-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:#005F6B;background:#fff;font-size:17px;line-height:1}
.dg-qty-val{min-width:28px;text-align:center;font-size:11.5px;font-weight:700;color:#0F1111}
.dg-cart-savings-bar{background:linear-gradient(90deg,#005F6B,#006D7E);padding:10px 20px;font-size:12.5px;font-weight:600;color:#fff;display:flex;align-items:center;gap:9px;flex-shrink:0}
.dg-cart-savings-bar strong{color:#fff;font-size:13.5px}
.dg-cart-ship-wrap{padding:10px 14px 0}
.dg-cart-ship-label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10.5px;color:#565959}
.dg-cart-ship-bar{height:5px;background:#EAEDED;border-radius:99px;overflow:hidden;margin-top:6px}
.dg-cart-ship-fill{height:100%;background:#067D62;border-radius:99px}
.dg-cart-coupon-row{padding:10px 14px 0}
.dg-cart-coupon-toggle{width:100%;display:flex;align-items:center;gap:9px;padding:10px 12px;background:#fff;border:1px solid #D5D9D9;border-radius:10px;text-align:left}
.dg-cart-coupon-toggle-text{display:flex;flex-direction:column;flex:1;min-width:0}
.dg-cart-coupon-toggle-label{font-size:12px;font-weight:700;color:#0F1111}
.dg-cart-coupon-toggle-sub{font-size:10px;color:#8F9191;margin-top:1px}
.dg-cart-drawer-foot{flex-shrink:0;background:#fff;border-top:1px solid #D5D9D9;padding:12px 14px calc(14px + env(safe-area-inset-bottom,0px));max-height:48vh;overflow-y:auto}
.dg-cart-price-rows{display:flex;flex-direction:column;gap:7px}
.dg-cart-price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;color:#565959}
.dg-cart-price-val{font-weight:700;color:#0F1111}
.dg-cart-price-val-green{color:#067D62}
.dg-cart-price-val-big{font-family:var(--font-head,Arial,sans-serif);font-size:20px;font-weight:800;color:#0F1111}
.dg-cart-checkout-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;margin-top:10px;background:#FFB800;color:#0F1111;border-radius:10px;font-size:13px;font-weight:800;text-decoration:none}
.dg-cart-browse-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:11px 14px;background:#005F6B;color:#fff;border-radius:9px;font-size:12px;font-weight:700}
.dg-cart-empty{text-align:center;padding:34px 22px;color:#565959}
.dg-cart-empty h3{margin:12px 0 5px;font-size:17px;color:#0F1111}
.dg-cart-empty p{font-size:12px;color:#8F9191;margin-bottom:18px}
.dg-cart-skeleton-item{display:flex;gap:12px;padding:14px}
.dg-cart-skeleton-img{width:68px;height:68px;border-radius:10px;background:#EAEDED}
.dg-cart-skeleton-lines{flex:1;padding-top:8px}
.dg-cart-skeleton-line{height:10px;border-radius:5px;background:#EAEDED}
@media(max-width:480px){#dg-cart-drawer,.dg-cart-drawer{width:100vw}.dg-cart-drawer-head-top{padding-left:16px;padding-right:16px}.dg-cart-trust-strip{padding-left:16px;padding-right:16px}.dg-cart-item{margin-left:10px;margin-right:10px}.dg-cart-drawer-foot{padding-left:10px;padding-right:10px}}
/* Emergency no-theme fallback: these rules deliberately avoid theme variables. */
#dg-cart-body,#dg-cart-body *{box-sizing:border-box}
#dg-cart-body .dg-cart-savings-bar{display:flex!important}
#dg-cart-body .dg-cart-item{display:block!important}
#dg-cart-body .dg-cart-item-top{display:flex!important}
#dg-cart-body .dg-cart-item-price-row{display:flex!important}
#dg-cart-body .dg-cart-item-meta-strip{display:flex!important}
#dg-cart-body .dg-qty-control{display:flex!important}
#dg-cart-body .dg-cart-ship-wrap,#dg-cart-body .dg-cart-coupon-row,#dg-cart-body .dg-cart-donation,#dg-cart-body .dg-cart-tip{display:block}
#dg-cart-body .dg-cart-coupon-toggle{display:flex!important}
#dg-cart-body .dg-cart-price-rows{display:flex!important;flex-direction:column!important}
#dg-cart-body .dg-cart-price-row{display:flex!important}
#dg-cart-foot .dg-cart-checkout-btn{display:flex!important}
/* Last-minute/cross-sell cards */
#dg-cart-body .dg-cart-cross-sell,#dg-cart-body .dg-last-minute,#dg-cart-body .dg-cart-upsell{display:block;background:#fff;border-top:1px solid #e5e7e7;padding:14px}
#dg-cart-body .dg-cart-cross-sell-grid,#dg-cart-body .dg-last-minute-grid,#dg-cart-body .dg-cart-upsell-grid{display:flex;gap:10px;overflow-x:auto}
#dg-cart-body .dg-cart-cross-sell-card,#dg-cart-body .dg-last-minute-card,#dg-cart-body .dg-cart-upsell-card{min-width:112px;max-width:140px;background:#fff;border:1px solid #d5d9d9;border-radius:10px;padding:8px;flex:0 0 auto}
#dg-cart-body .dg-cart-cross-sell-card img,#dg-cart-body .dg-last-minute-card img,#dg-cart-body .dg-cart-upsell-card img{width:100%;height:82px;object-fit:contain;display:block}
#dg-cart-body .dg-cart-cross-sell-card a,#dg-cart-body .dg-last-minute-card a,#dg-cart-body .dg-cart-upsell-card a{color:#0f1111;text-decoration:none}

/* HARD FALLBACK: cart is a component, not ordinary document text. */
#dg-cart-drawer,#dg-cart-drawer *{box-sizing:border-box}
#dg-cart-drawer{font-family:Inter,Arial,sans-serif!important;font-size:14px!important;line-height:1.5!important;text-align:left!important;color:#0F1111!important}
#dg-cart-drawer .dg-cart-drawer-body{display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;background:#F7F8F8!important;-webkit-overflow-scrolling:touch!important}
#dg-cart-drawer .dg-cart-item{display:block!important;background:#fff!important;border-bottom:1px solid #EAEDED!important;margin:0!important;padding:0!important}
#dg-cart-drawer .dg-cart-item-info{display:block!important;min-width:0!important;flex:1 1 auto!important}
#dg-cart-drawer .dg-cart-item-name{display:block!important;font-family:Outfit,Inter,Arial,sans-serif!important;font-size:13px!important;font-weight:700!important;line-height:1.35!important;color:#0F1111!important}
#dg-cart-drawer .dg-cart-item-brand{display:block!important;font-size:10.5px!important;color:#8F9191!important;margin-top:3px!important}
#dg-cart-drawer .dg-cart-item-price{font-weight:800!important;color:#008296!important}
#dg-cart-drawer .dg-cart-drawer-foot{display:block!important;flex:0 0 auto!important;background:#fff!important;border-top:1px solid #D5D9D9!important}
#dg-cart-drawer .dg-cart-checkout-btn{display:flex!important}
#dg-cart-drawer .dg-cart-render-error{padding:30px 20px!important;text-align:center!important;color:#565959!important;background:#fff!important}
#dg-cart-drawer .dg-cart-render-failed{background:#F7F8F8!important}
@media(max-width:767px){#dg-cart-drawer{width:100vw!important;max-width:100vw!important}#dg-cart-drawer .dg-cart-drawer-head-top{padding:15px 16px 10px!important}#dg-cart-drawer .dg-cart-trust-strip{padding:8px 16px 12px!important;gap:9px!important}}

/* ── Cart product image hardening ── */
#dg-cart-drawer .dg-cart-item-top {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 13px !important;
}
#dg-cart-drawer .dg-cart-item-img {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 68px !important;
    width: 68px !important;
    min-width: 68px !important;
    height: 68px !important;
    overflow: hidden !important;
    position: relative !important;
    border-radius: 10px !important;
    background: #fff !important;
    border: 1px solid #e1e4e4 !important;
}
#dg-cart-drawer .dg-cart-item-img img,
#dg-cart-drawer .dg-cart-product-image {
    display: block !important;
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    visibility: visible !important;
    opacity: 1 !important;
}
/* DG quantity control — one component across product + cart */
.dg-qty-input,
#dg-cart-drawer .dg-qty-control,
.dg-cart-item-meta-strip .dg-qty-control {
    display: inline-flex !important;
    align-items: stretch !important;
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    height: 34px !important;
    border: 1.5px solid var(--border, #D5D9D9) !important;
    border-radius: var(--radius-sm, 8px) !important;
    overflow: hidden !important;
    background: var(--white, #FFFFFF) !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.dg-qty-input button,
#dg-cart-drawer .dg-qty-control .dg-qty-btn,
.dg-cart-item-meta-strip .dg-qty-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 30px !important;
    width: 30px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: var(--bg2, #EAEDED) !important;
    color: var(--navy, #005F6B) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}
.dg-qty-input button:hover,
#dg-cart-drawer .dg-qty-control .dg-qty-btn:hover,
.dg-cart-item-meta-strip .dg-qty-btn:hover {
    background: var(--border, #D5D9D9) !important;
}
.dg-qty-input input,
.dg-qty-input .dg-qty-val,
#dg-cart-drawer .dg-qty-control .dg-qty-val,
.dg-cart-item-meta-strip .dg-qty-val {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-left: 1px solid var(--border, #D5D9D9) !important;
    border-right: 1px solid var(--border, #D5D9D9) !important;
    background: var(--white, #FFFFFF) !important;
    color: var(--ink, #0F1111) !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

/* ── Tip popular badge hardening ── */
#dg-cart-drawer .dg-tip-chips {
    overflow-y: visible !important;
    padding-top: 10px !important;
}
#dg-cart-drawer .dg-tip-chip {
    overflow: visible !important;
}
#dg-cart-drawer .dg-tip-wrap {
    overflow: visible !important;
}


/* Cart image badge intentionally removed in 101.0.7: the RX overlay could cover the active product image. */
#dg-cart-drawer .dg-cart-item-rx-badge{display:none!important;pointer-events:none!important;position:absolute!important;width:0!important;height:0!important;padding:0!important;margin:0!important;border:0!important;overflow:hidden!important}
