/* ---- Buy Now button -----------------------------------------------------
   Sits right next to the (relabelled) Add to Cart button, inside the same
   form. Given the theme's own "organ_btn" class (in the PHP that outputs
   it) so it always inherits the exact same pill shape/size/height as the
   theme's real Add to Cart button - only colour is overridden here, so
   this can't fall out of sync if the theme's own button styling changes.
   Visually distinct (outlined, brand green) so the two read as two
   different actions, not a single confusing button. If it wraps onto its
   own line at narrower widths, the top margin keeps it from sitting flush
   against Add to Cart. */
.dg-buy-now-btn{margin-left:10px;margin-top:10px;background:#fff !important;color:#1E8A7A !important;border:2px solid #1E8A7A !important;}
.dg-buy-now-btn:hover{background:#1E8A7A !important;color:#fff !important;}

/* ---- Big, hard-to-miss cart bar ------------------------------------------
   Deliberately NOT a small icon tucked into the header - a large fixed
   pill, bottom-left, with item count and running subtotal always visible
   once anything is in the cart. Hidden on the Bulk Order page itself (see
   dg_store_ux_should_show_cart_bar()), which already has its own big fixed
   summary bar - and hidden here too when the cart is empty, so it never
   shows as an inviting-looking button with nothing behind it. */
.dg-cart-bar{position:fixed;left:16px;bottom:16px;z-index:99980;font-family:inherit;transition:opacity 0.2s ease,transform 0.2s ease;}
.dg-cart-bar.dg-cart-bar-hidden{opacity:0;pointer-events:none;transform:translateY(8px);}
.dg-cart-bar-link{display:flex;align-items:center;gap:12px;background:#1E8A7A;color:#fff;text-decoration:none;padding:12px 22px 12px 18px;border-radius:999px;box-shadow:0 8px 24px rgba(0,0,0,0.25);font-size:16px;font-weight:700;}
.dg-cart-bar-link:hover{background:#166b5e;color:#fff;}
.dg-cart-bar-icon{font-size:22px;line-height:1;}
.dg-cart-bar-count{background:#fff;color:#1E8A7A;border-radius:50%;min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;padding:0 4px;}
.dg-cart-bar-text{display:flex;flex-direction:column;line-height:1.2;}
.dg-cart-bar-label{font-size:15px;}
.dg-cart-bar-total{font-size:13px;font-weight:600;opacity:0.9;}
@media (max-width:480px){
	.dg-cart-bar{left:10px;bottom:10px;}
	.dg-cart-bar-link{padding:10px 16px 10px 14px;gap:9px;}
	.dg-cart-bar-label{font-size:14px;}
}

/* ---- Cart Totals / Checkout safety net --------------------------------
   Renders as a clean, self-contained card so it reads as an intentional
   part of the page rather than a foreign injected box, regardless of the
   surrounding theme's own styling. Uses WooCommerce's own real markup/
   classes underneath (.cart_totals, .checkout-button etc.) so shipping
   calc, coupon field, and the Proceed to Checkout link all behave exactly
   as they do anywhere else on a standard WooCommerce site. */
.dg-cart-totals-safetynet{max-width:480px;margin:24px auto 40px;}
.dg-cart-totals-safetynet[hidden]{display:none !important;}
.dg-safetynet-collaterals{background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:20px 24px 24px;box-shadow:0 2px 10px rgba(0,0,0,0.06);}
.dg-safetynet-totals h2{margin:0 0 14px;font-size:19px;color:#2b2b2b;}
.dg-safetynet-totals table.shop_table{width:100%;border-collapse:collapse;margin-bottom:14px;}
.dg-safetynet-totals table.shop_table th,
.dg-safetynet-totals table.shop_table td{padding:10px 4px;border-bottom:1px solid #eee;text-align:left;color:#262626;}
.dg-safetynet-totals table.shop_table th{font-weight:600;}
.dg-safetynet-totals table.shop_table td{text-align:right;}
.dg-safetynet-totals .order-total th,
.dg-safetynet-totals .order-total td{font-weight:800;font-size:17px;border-bottom:none;}
.dg-safetynet-totals .wc-proceed-to-checkout{margin-top:6px;}
.dg-safetynet-totals a.checkout-button{display:block;width:100%;text-align:center;padding:14px;background:#1E8A7A;color:#fff !important;border-radius:8px;font-size:16px;font-weight:700;text-decoration:none;box-sizing:border-box;}
.dg-safetynet-totals a.checkout-button:hover{background:#166b5e;}
.dg-safetynet-totals .woocommerce-shipping-calculator{margin-top:10px;font-size:13px;}
.dg-safetynet-totals .woocommerce-shipping-calculator a{color:#1E8A7A;}
