/* SGW mini-cart release 2026-11-25. Only the native WoodMart drawer; no checkout or global CSS changes. */
body .cart-widget-side {
  --sgw-drawer-accent: #fd6208;
  --sgw-drawer-ink: #242424;
  --sgw-drawer-border: #e5e9ee;
  font-family: Manrope, Arial, Helvetica, sans-serif;
  max-width: 100vw;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}
body .cart-widget-side .widget-heading {
  flex: 0 0 auto; padding: 14px 16px; border-bottom: 1px solid var(--sgw-drawer-border);
}
body .cart-widget-side .widget-title {font: 800 20px/1.3 Manrope,Arial,sans-serif; color:var(--sgw-drawer-ink);}
body .cart-widget-side .widget_shopping_cart,
body .cart-widget-side .widget_shopping_cart_content {
  display:flex; flex-direction:column; flex:1 1 auto; min-height:0; min-width:0;
}
body .cart-widget-side .shopping-cart-widget-body {
  flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior-y:contain;
}
body .cart-widget-side .shopping-cart-widget-body .wd-scroll-content {
  min-height:0;
}
/* Alternate native markup without a dedicated scrolling body. */
body .cart-widget-side .widget_shopping_cart_content > ul.woocommerce-mini-cart {
  flex:1 1 auto; min-height:0; overflow-y:auto; overscroll-behavior-y:contain;
}
body .cart-widget-side .woocommerce-mini-cart {margin:0; padding-inline:0;}
body .cart-widget-side .woocommerce-mini-cart-item {
  position:relative; min-width:0; padding:10px 30px 10px 0; margin:0; border-bottom:1px solid var(--sgw-drawer-border);
  display:flex; align-items:flex-start; gap:10px;
}
body .cart-widget-side .woocommerce-mini-cart-item :is(.cart-item-image,.product-image,.wd-cart-item-image) {
  flex:0 0 72px; width:72px; max-width:72px; margin:0;
}
body .cart-widget-side .woocommerce-mini-cart-item img {
  width:72px; height:72px; max-width:72px; object-fit:contain; border-radius:5px;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info {
  flex:1 1 0; min-width:0; overflow-wrap:anywhere;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info :is(.wd-entities-title, .cart-item-title, a:not(.remove):not(.remove_from_cart_button)) {
  font-size:clamp(14px,1.2vw,16px); line-height:1.36; font-weight:650; color:var(--sgw-drawer-ink);
  overflow-wrap:anywhere; margin-block:0 4px;
}
/* Full product title stays in native link; no text replacement, no hard clipping. */
body .cart-widget-side .woocommerce-mini-cart-item .cart-info :is(.sku,.product-sku,.wd-product-sku,.sku_wrapper,.cart-item-sku) {
  font-size:11px; font-weight:400; line-height:1.25; color:#646b75; overflow-wrap:anywhere; margin-block:2px;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity {font-size:13px; margin-block:4px;}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus,button,input.qty) {
  min-height:36px; min-width:32px; color:var(--sgw-drawer-ink); background:#fff; border:1px solid var(--sgw-drawer-border); font:600 14px/1.2 Manrope,Arial,sans-serif;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity input.qty {width:40px; text-align:center;}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus):hover {background:#f3f4f6;}
body .cart-widget-side .woocommerce-mini-cart-item .amount {font-size:14px; font-weight:750; color:#c64d06;}
body .cart-widget-side .woocommerce-mini-cart-item :is(.remove,.remove_from_cart_button) {
  position:absolute; inset-inline-end:0; top:8px; width:28px; min-height:32px; display:flex; align-items:center; justify-content:center;
}
body .cart-widget-side .shopping-cart-widget-footer {
  flex:0 0 auto; position:relative; inset:auto; background:#fff; padding:12px 0 0; z-index:auto;
}
body .cart-widget-side .woocommerce-mini-cart__total {
  flex:0 0 auto; padding:12px 0; margin:0; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px; font-size:15px; color:var(--sgw-drawer-ink); border-top:1px solid var(--sgw-drawer-border);
}
body .cart-widget-side .woocommerce-mini-cart__total .amount {font-weight:800; font-size:18px; white-space:nowrap;}
body .cart-widget-side .woocommerce-mini-cart__buttons {
  flex:0 0 auto; display:grid; grid-template-columns:1fr; gap:8px; margin:0; padding-bottom:max(12px,env(safe-area-inset-bottom));
}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward {
  display:flex; align-items:center; justify-content:center; min-height:44px; padding:9px 12px; margin:0; border:1px solid var(--sgw-drawer-accent); border-radius:7px; font:750 14px/1.35 Manrope,Arial,sans-serif; text-align:center;
}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {background:#fff;color:#c64d06;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout {background:var(--sgw-drawer-accent);color:#fff;}
body .cart-widget-side .woocommerce-mini-cart__empty-message {padding:20px 12px; line-height:1.5;}
body .cart-widget-side :is(a,button,input):focus-visible {outline:2px solid #242424;outline-offset:2px;}
@media(max-width:480px) {
  body .cart-widget-side .widget-heading {padding:12px 14px;}
  body .cart-widget-side .woocommerce-mini-cart-item {gap:8px;padding-block:8px;}
  body .cart-widget-side .woocommerce-mini-cart-item :is(.cart-item-image,.product-image,.wd-cart-item-image) {flex-basis:64px;width:64px;max-width:64px;}
  body .cart-widget-side .woocommerce-mini-cart-item img {width:64px;height:64px;max-width:64px;}
}
@media(pointer:coarse) {
  body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus,button,input.qty) {min-height:44px;min-width:40px;}
  body .cart-widget-side .woocommerce-mini-cart-item :is(.remove,.remove_from_cart_button) {min-height:44px;width:40px;}
  body .cart-widget-side .woocommerce-mini-cart-item {padding-inline-end:42px;}
}

/* Regression: darken action surface only; white 14px text now exceeds 4.5:1. */
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout {background:#c64d06;border-color:#c64d06;color:#fff;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout:hover {background:#c64d06;border-color:#c64d06;}

/* Production drawer polish. Retain native buttons, prices, AJAX and accessibility. */
body .cart-widget-side {
  background:#fff;
  flex-direction:column;
  box-sizing:border-box;
}
body .cart-widget-side .widget-heading {
  min-height:60px; padding:14px 18px; gap:10px;
}
body .cart-widget-side .widget_shopping_cart,
body .cart-widget-side .widget_shopping_cart_content {overflow:hidden;}
body .cart-widget-side .shopping-cart-widget-body {overflow-y:auto;overflow-x:hidden;}
body .cart-widget-side .shopping-cart-widget-body .wd-scroll-content {max-height:100%;overflow-x:hidden;}
body .cart-widget-side .woocommerce-mini-cart-item {
  padding:13px 34px 13px 12px; gap:12px;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info {
  font-size:12px; line-height:1.45;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info :is(.wd-entities-title,.cart-item-title,a:not(.remove):not(.remove_from_cart_button)) {
  font-size:14px!important; line-height:1.45!important; font-weight:650!important;
  overflow-wrap:anywhere; white-space:normal; color:#242424;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info :is(.sku,.product-sku,.wd-product-sku,.sku_wrapper,.cart-item-sku) {
  font-size:11px!important; color:#596574!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity {
  display:inline-flex; flex-wrap:nowrap; align-items:center; border:1px solid #dce1e6;
  border-radius:7px; overflow:hidden; max-width:100%;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus,input.qty) {
  box-sizing:border-box; height:36px; margin:0!important; border:0!important; border-radius:0!important;
  padding:0!important; min-width:32px; background:#fbfaf8!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity input.qty {
  background:#fff!important; width:36px!important; min-width:36px!important; color:#242424!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus):hover {background:#fff0e7!important;color:#c64d06!important;}
body .cart-widget-side .woocommerce-mini-cart-item .amount {white-space:nowrap;font-variant-numeric:tabular-nums;}
body .cart-widget-side .shopping-cart-widget-footer {padding:12px 16px 0;box-shadow:0 -5px 18px rgba(39,52,67,.06);}
body .cart-widget-side .woocommerce-mini-cart__total {padding:12px 0; border-top:0; gap:8px;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward {min-height:46px;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {
  background:#fbfaf8!important;color:#242424!important;border-color:#e5e9ee!important;
}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout {
  background:#c64d06!important;border-color:#c64d06!important;color:#fff!important;
}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout:hover {background:#c64d06!important;}
@media(max-width:480px){
  body .cart-widget-side .woocommerce-mini-cart-item {padding:10px 36px 10px 10px;gap:9px;}
  body .cart-widget-side .shopping-cart-widget-footer {padding-inline:12px;}
}
@media(pointer:coarse){
  body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.minus,.plus,input.qty){height:44px;min-height:44px;}
  body .cart-widget-side .woocommerce-mini-cart-item {padding-inline-end:44px;}
}

/* Visual review of the 390px screenshot: compact controls, not full-width boxes. */
body .cart-widget-side .woocommerce-mini-cart-item .quantity {
  width:max-content!important; max-width:100%; align-self:flex-start; flex:0 0 auto;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info a:not(.remove):not(.remove_from_cart_button),
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward {text-decoration:none!important;}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info a:not(.remove):not(.remove_from_cart_button):hover {text-decoration:underline!important;}
body .cart-widget-side .woocommerce-mini-cart__total .amount {color:#c64d06!important;}

/* Brand alignment for the drawer. */
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout{background:#fd6208!important;border-color:#fd6208!important;color:#242424!important;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout:hover{background:#c64d06!important;color:white!important;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout){background:white!important;color:#242424!important;border-color:#e5e5e5!important;}
body .cart-widget-side .shopping-cart-widget-footer{background:#fbfaf8;}
/* Shoper-inspired layout, original SklepGrzewczy palette. Native drawer and fragment markup. */
body .cart-widget-side {
  --wd-side-hidden-width:500px;
  width:min(500px,100vw); max-width:100vw;
}
body .cart-widget-side .widget-heading {padding-inline:20px;}
body .cart-widget-side .woocommerce-mini-cart-item {padding:14px 32px 14px 16px;gap:14px;}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info {
  display:flex;flex-direction:column;align-items:flex-start;gap:3px;
}
body .cart-widget-side .woocommerce-mini-cart-item .cart-info :is(.wd-entities-title,.cart-item-title) {
  font-weight:600!important; font-size:14px!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity:not(:has(input.qty)) {
  display:block!important;border:0!important;border-radius:0!important;background:none!important;
  overflow:visible!important;width:auto!important;max-width:100%;padding:0!important;
  line-height:1.5!important;color:#444444!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity:has(input.qty) {
  display:inline-flex!important; width:max-content!important;
}
body .cart-widget-side .woocommerce-mini-cart-item .quantity:not(:has(input.qty)) .amount {
  display:inline-block;white-space:nowrap;border:0!important;
}
body .cart-widget-side .shopping-cart-widget-footer {
  padding:14px 20px 0;background:#fbfaf8;
  border-top:1px solid #e5e5e5;box-shadow:none;
}
body .cart-widget-side .woocommerce-mini-cart__total {font-size:15px;align-items:center;}
body .cart-widget-side .sgw-mini-delivery-hint {font-size:12px;color:#444444;margin:0 0 12px;line-height:1.5;}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward {
  border-radius:7px; font-weight:700; text-transform:none!important;
}
body .cart-widget-side .woocommerce-mini-cart__buttons a.wc-forward:not(.checkout) {font-weight:600;}
@media(max-width:480px){
  body .cart-widget-side {--wd-side-hidden-width:100vw;width:100vw;}
  body .cart-widget-side .widget-heading {padding-inline:14px;}
  body .cart-widget-side .woocommerce-mini-cart-item {padding:12px 36px 12px 12px;gap:10px;}
  body .cart-widget-side .shopping-cart-widget-footer {padding-inline:14px;}
}
@media(min-width:783px) {
  body.admin-bar .cart-widget-side {top:32px;max-height:calc(100dvh - 32px);}
}

/* v2: enforce consistent side gutters on actual WoodMart markup, including
   direct footer siblings, nested scroll bodies, and theme important resets. */
body .cart-widget-side {
  --sgw-drawer-gutter:24px;
  --sgw-drawer-remove:30px;
}
@media(max-width:600px){
  body .cart-widget-side {--sgw-drawer-gutter:18px;}
}
@media(max-width:360px){
  body .cart-widget-side {--sgw-drawer-gutter:14px;}
}
body .cart-widget-side .widget-heading {
  padding-inline:var(--sgw-drawer-gutter)!important;
  box-sizing:border-box!important;
}
body .cart-widget-side .widget_shopping_cart .widget_shopping_cart_content,
body .cart-widget-side .widget_shopping_cart_content .shopping-cart-widget-body,
body .cart-widget-side .widget_shopping_cart_content .wd-scroll-content {
  padding-inline:0!important;
  margin-inline:0!important;
  box-sizing:border-box!important;
}
body .cart-widget-side .widget_shopping_cart_content :is(ul.woocommerce-mini-cart,ul.cart_list) {
  padding-inline:var(--sgw-drawer-gutter)!important;
  margin-inline:0!important;
  box-sizing:border-box!important;
  width:100%!important;
}
body .cart-widget-side .widget_shopping_cart_content :is(ul.woocommerce-mini-cart,ul.cart_list) > li.woocommerce-mini-cart-item {
  padding:14px var(--sgw-drawer-remove) 14px 0!important;
  margin-inline:0!important;
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart-item :is(.cart-item-image,.product-image,.wd-cart-item-image) {
  margin-inline:0!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart-item :is(.remove,.remove_from_cart_button) {
  inset-inline-end:0!important;
  width:var(--sgw-drawer-remove)!important;
}
body .cart-widget-side .widget_shopping_cart_content .shopping-cart-widget-footer {
  padding:12px 0 0!important;
  margin-inline:0!important;
  box-sizing:border-box!important;
  background:#fbfaf8!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__total,
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__buttons,
body .cart-widget-side .widget_shopping_cart_content .sgw-mini-delivery-hint {
  margin-inline:var(--sgw-drawer-gutter)!important;
  padding-inline:0!important;
  width:auto!important;
  max-width:none!important;
  align-self:stretch!important;
  box-sizing:border-box!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__total {
  padding-block:12px!important;
  gap:8px!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__buttons {
  display:flex!important;flex-direction:column!important;
  gap:10px!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__buttons a.checkout {order:-1;}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__buttons a.wc-forward {
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
body .cart-widget-side .widget_shopping_cart_content .woocommerce-mini-cart__empty-message {
  padding-inline:var(--sgw-drawer-gutter)!important;
}
@media(pointer:coarse){
  body .cart-widget-side {--sgw-drawer-remove:44px;}
}

body .cart-widget-side{--wd-side-hidden-width:560px!important;width:min(560px,100vw)!important;max-width:100vw!important}
@media(max-width:560px){body .cart-widget-side{--wd-side-hidden-width:100vw!important;width:100vw!important}}

body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout{background:#e45506!important;border-color:#e45506!important;color:#fff!important}
body .cart-widget-side .woocommerce-mini-cart__buttons a.checkout:hover{background:#d04b05!important;border-color:#d04b05!important;color:#fff!important}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.plus,.minus,button,input[type=button]){background:#f5f6f7!important;color:#242424!important;box-shadow:none!important}
body .cart-widget-side .woocommerce-mini-cart-item .quantity :is(.plus,.minus,button,input[type=button]):hover{background:#e9ecef!important;color:#242424!important}
