/* Existing dark header stays intact. Cart and checkout content use a light local palette. */
html body:is(.woocommerce-cart, .woocommerce-checkout) #content {
  --qrg-shop-bg: #fff;
  --qrg-shop-panel: #fff;
  --qrg-shop-field: #fff;
  --qrg-shop-border: #e2dce0;
  --qrg-shop-text: #242629;
  --qrg-shop-muted: #625d65;
  --qrg-shop-pink: #b45e82;
  background: #fff !important;
  color: #242629 !important;
  color-scheme: light;
}
html body:is(.woocommerce-cart, .woocommerce-checkout) #content :is(.ast-container, .ast-article-single, .entry-content, .woocommerce, form.checkout) {
  background: #fff !important;
  color: #242629 !important;
}
html body:is(.woocommerce-cart, .woocommerce-checkout) #content :is(.shop_table thead, .shop_table thead th) {
  background: #faf5f7 !important;
  color: #242629 !important;
}
html body:is(.woocommerce-cart, .woocommerce-checkout) #content :is(.woocommerce-info, .woocommerce-message, .woocommerce-error, .cart_totals, #order_review, #payment, #payment .payment_box) {
  background: #fff !important;
  color: #242629 !important;
  border-color: #e2dce0 !important;
}
html body.woocommerce-checkout #content :is(.woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, #order_review_heading) {
  color: #242629 !important;
  border-color: #e2dce0 !important;
}
html body.woocommerce-checkout #payment .payment_box::before { border-bottom-color: #e2dce0 !important; }
html body.woocommerce-checkout #colophon,
html body.woocommerce-checkout #colophon :is(.site-above-footer-wrap, .site-primary-footer-wrap, .site-below-footer-wrap) {
  background: #fff !important;
  color: #242629 !important;
  border-color: #e2dce0 !important;
  color-scheme: light;
}
html body.woocommerce-checkout #colophon :is(p, a, li, h1, h2, h3, h4, h5, h6, .widget-title, .widgettitle, .ast-footer-copyright) { color: #242629 !important; }
html body.woocommerce-checkout #colophon a:hover { color: #b45e82 !important; }

/* The iframe has its own native WooCommerce/cart context and existing wallet scripts. */
#qrg-purchase #qrg-inline-cart {
  width: 100%;
  clear: both;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #e2dce0;
  background: #fff;
  color: #242629;
  color-scheme: light;
  scroll-margin-top: 32px;
}
#qrg-purchase #qrg-inline-cart > h2 { margin: 0 0 20px; font-size: 26px; color: #242629; }
#qrg-purchase #qrg-inline-cart .qrg-inline-cart__frame { display: block; width: 100%; border: 0; background: #fff; }
#qrg-purchase #qrg-inline-cart:is(.qrg-inline-cart--pending, .qrg-inline-cart--empty) {
  max-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  visibility: hidden;
}
#qrg-purchase #qrg-inline-cart .qrg-inline-cart__fallback { margin: 10px 0 0; font-size: 13px; }
#qrg-purchase #qrg-inline-cart .qrg-inline-cart__fallback { display: none; }
#qrg-purchase #qrg-inline-cart.qrg-inline-cart--failed .qrg-inline-cart__fallback { display: block; }
#qrg-purchase #product-3456 .qrg-purchase-notices,
#qrg-purchase #product-3456 .woocommerce-message { display: none !important; }
#qrg-purchase #qrg-inline-cart.qrg-inline-cart--failed .qrg-inline-cart__frame { display: none; }
html:has(body.qrg-inline-cart-frame) { margin: 0 !important; background: #fff !important; }
html body.qrg-inline-cart-frame { margin: 0 !important; padding: 0 !important; background: #fff !important; color: #242629; overflow-x: hidden; }
html body.qrg-inline-cart-frame #content { padding: 0 2px !important; }
html body.qrg-inline-cart-frame #qrg-inline-cart-content { display: flow-root; width: 100%; }
html body.qrg-inline-cart-frame #qrg-inline-cart-content :is(.woocommerce-cart-form, .cart-collaterals, .cart_totals) { float: none; width: 100%; margin: 0 0 20px; box-sizing: border-box; }
html body.qrg-inline-cart-frame #qrg-inline-cart-content .cart_totals { padding: 20px; }
html body.qrg-inline-cart-frame #qrg-inline-cart-content .cross-sells { display: none; }
html body.qrg-inline-cart-frame #qrg-inline-cart-content .checkout-button { display: block; width: 100%; box-sizing: border-box; margin-bottom: 14px; }
/* A narrow purchase column uses the same stacked layout as the mobile native cart. */
@media (max-width: 700px) {
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form table thead { display: none; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form :is(table, tbody, tr, td) { display: block; width: 100%; box-sizing: border-box; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form td { text-align: right !important; padding: 12px 14px; min-height: 44px; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form td[data-title]::before { content: attr(data-title) ': '; float: left; font-weight: 600; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form td.product-name { text-align: left !important; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form td.product-name::before { display: none; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form td.product-thumbnail { display: none; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form .coupon { float: none; display: flex; flex-wrap: wrap; gap: 8px; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form .coupon .input-text { flex: 1 1 120px; width: auto; min-width: 0; }
  html body.qrg-inline-cart-frame #qrg-inline-cart-content .woocommerce-cart-form .actions > .button { margin-top: 12px; width: 100%; }
}

/* Match cart and checkout action buttons to the existing Add to cart palette. */
html body.woocommerce-cart :is(#page #content, #content #qrg-inline-cart-content) :is(.woocommerce-cart-form button.button, .cart_totals a.checkout-button),
html body.woocommerce-checkout #content #place_order {
  background: #b76185 !important;
  border-color: #b76185 !important;
  color: #fff !important;
}
html body.woocommerce-checkout #content #order_review .woocommerce-checkout-review-order-table :is(thead, thead th) {
  background: #fff !important;
  border-color: #e2dce0 !important;
  color: #000 !important;
}
html body.woocommerce-cart :is(#page #content, #content #qrg-inline-cart-content) :is(.woocommerce-cart-form button.button, .cart_totals a.checkout-button):hover,
html body.woocommerce-checkout #content #place_order:hover {
  background: #b76185 !important;
  border-color: #b76185 !important;
  color: #fff !important;
}
