/* Offer blocks: "Posebna ponudba" in the side cart (li.sidecart-upsells) and "Dopolnite svoje naročilo" at checkout
   (.checkout-upsells) share one look. Layout comes from omni-deals style1 (title / price, button right); this only restyles it. */
.sidecart-upsells,
.checkout-upsells {
	--o-ink: #15253d;
	--o-muted: color-mix(in oklab, #15253d 70%, #fff);
	--o-accent: #2a5996;
	--o-line: #cfd9e6;
	--o-line-strong: color-mix(in oklab, #cfd9e6 55%, #15253d);
	--o-surface: #edf2f8;
}
.widget_shopping_cart ul.product_list_widget li.sidecart-upsells, ul.product_list_widget li.sidecart-upsells { min-height: 0; margin: 0; padding: 0; border: 0; list-style: none; overflow: visible; } /* Flatsome clips li (overflow:hidden), which hid the full-width panel edges */
/* Featured panel: tinted, rounded, white cards inside */
.sidecart-upsells .kw-omni-deals { margin: 24px -30px 8px; padding: 20px 30px; border-radius: 0; background: var(--o-surface); color: var(--o-ink); font-variant-numeric: tabular-nums; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; text-align: left; text-transform: none; color: var(--o-ink); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__badge { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--o-accent); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.5; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__sub { margin: 2px 0 12px; font-size: 13px; color: var(--o-muted); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__carousel-wrapper { display: flex; flex-direction: column; gap: 8px; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__slide { margin: 0 !important; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__pagination { display: none; }

/* Card: image, name, old + new price, outline button */
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 { gap: 12px; padding: 10px 12px 10px 10px; border: 1px solid transparent; border-radius: 8px; background: #fff; transition: border-color .15s ease-out; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1:hover { border-color: var(--o-line); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-image { width: 48px; height: 48px; border-radius: 4px; background: #fff; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-img { object-fit: contain; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 h3.kw-omni-deals__product-title { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--o-ink); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-price { gap: 0 6px; margin-top: 2px; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-price .original-price { order: 1; font-size: 12px; font-weight: 400; color: var(--o-muted); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-price .current-price { order: 2; font-size: 14px; font-weight: 800; color: var(--o-ink); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-price .price-percentage { display: none; } /* the subtitle already says −10 % */
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button { height: 36px; min-width: 72px; padding: 0 12px; border: 1px solid var(--o-accent); border-radius: 6px; background: #fff; color: var(--o-accent); font-size: 14px; font-weight: 700; transition: background-color .15s ease-out, color .15s ease-out; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button:hover { background: var(--o-accent); color: #fff; }
/* Loading: navy fill so the white spinner shows. Needs .button too, or line 32 (white fill) wins and the button is an empty white box while the request runs. */
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button.kw-omni-deals__add-btn--loading,
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn--loading { background: var(--o-accent); border-color: var(--o-accent); color: transparent !important; }
/* "V košarici": a state, not a button. Needs .button too (same reason as loading). */
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button.kw-omni-deals__add-btn--success,
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button.kw-omni-deals__add-btn--success:hover,
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn--success,
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn--success:hover { opacity: 1; cursor: default;  border-color: var(--o-surface); background: var(--o-surface); color: var(--o-accent); }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__add-btn:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }

/* First two, then "Pokaži še N" */
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals:not(.is-expanded) .kw-omni-deals__slide:nth-child(n+3) { display: none; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals.is-expanded .kw-omni-deals__more { display: none; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__more { display: block; width: 100%; min-height: 40px; margin: 8px 0 0; text-align: center; padding: 0; border: 0; background: none; color: var(--o-accent); font-size: 14px; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__more:hover { text-decoration: underline; text-underline-offset: 3px; }
:is(.sidecart-upsells, .checkout-upsells) .kw-omni-deals__more:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	:is(.sidecart-upsells, .checkout-upsells) * { transition: none !important; }
}


/* ---------- Checkout: "Dopolnite svoje naročilo" inside the order summary ---------- */
/* Same wash block as the side cart, framed as an inline panel (document radius) instead of full bleed. */
.checkout-upsells { margin: 0 0 24px; }
.checkout-upsells .kw-omni-deals { margin: 0; padding: 16px; border-radius: 10px; background: var(--o-surface); color: var(--o-ink); font-variant-numeric: tabular-nums; }
.checkout-upsells .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-image { width: 56px; height: 56px; }
.checkout-upsells .kw-omni-deals .kw-omni-deals__product--style1 h3.kw-omni-deals__product-title { font-size: 14px; }
.checkout-upsells .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__product-price .current-price { font-size: 15px; }
.checkout-upsells .kw-omni-deals .kw-omni-deals__product--style1 .kw-omni-deals__add-btn.button { height: 40px; min-width: 80px; }
@media (max-width: 549px) { .checkout-upsells .kw-omni-deals { padding: 12px; } }

/* ---------- Checkout: free-shipping status under "Pošiljka" ---------- */
.kw-checkout-freeship td { padding: 0 0 12px !important; border: 0 !important; }
.kw-checkout-freeship__inner { padding: 12px 14px; border-radius: 6px; background: #edf2f8; color: #15253d; }
.kw-checkout-freeship__text { margin: 0 0 8px; font-size: 13px; font-weight: 500; line-height: 1.45; text-align: left; color: #15253d; }
.kw-checkout-freeship__text strong, .kw-checkout-freeship__text .amount { font-weight: 800; color: #15253d; white-space: nowrap; }
.kw-checkout-freeship__track { display: block; height: 6px; border-radius: 3px; background: #fff; overflow: hidden; }
.kw-checkout-freeship__fill { display: block; height: 100%; border-radius: 3px; background: #2a5996; }

/* ---------- Side cart heading "Košarica (n izdelkov)" ---------- */
.mini-cart__head { margin: -12px -30px 0; padding: 0 60px 16px 30px; border-bottom: 1px solid #cfd9e6; font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; color: #15253d; }
.mini-cart__head span { font-weight: 600; color: color-mix(in oklab, #15253d 70%, #fff); }

/* ---------- Free shipping, side cart only (cart page keeps the default) ---------- */
/* Full width: cancel the drawer's 30px side padding (.inner-padding). */
.mini-cart__free-shipping { margin: 0 -30px 12px; padding: 0; background: none; }
.mini-cart__free-shipping .wc-shipping-bar-wrapper { display: block; margin: 0; padding: 14px 30px; border: 0; border-radius: 0; background: #edf2f8; color: #15253d; }
.mini-cart__free-shipping #wc-shipping-bar__remaining-amount { display: block; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.mini-cart__free-shipping #wc-shipping-bar__remaining-amount h3 { display: none; } /* no title in the side cart */
.mini-cart__free-shipping .wc-shipping-bar-wrapper .amount { font-weight: 800; color: #15253d; white-space: nowrap; }
.mini-cart__free-shipping .kw-free-shipping-achieved { font-weight: 700; color: #15253d; }
.mini-cart__free-shipping .wc-shipping-bar-wrapper .free-shipping__bar.free-shipping__bar--striped { position: static; display: block; width: 100%; height: 6px; margin-top: 10px; border-radius: 3px; background: #fff; overflow: hidden; }
.mini-cart__free-shipping .wc-shipping-bar-wrapper .free-shipping__bar-progress { height: 100%; border-radius: 3px !important; background: #2a5996; }

/* ---------- Side cart footer (Delni znesek + buttons): fixed to the bottom edge ---------- */
/* Flatsome's 20px bottom padding on the drawer left a gap under the sticky footer, so it moved at the end of the scroll. */
.cart-popup-inner.cart-popup-inner--sticky { padding-bottom: 0; }
.cart-popup-inner--sticky .ux-mini-cart-footer { bottom: 0; z-index: 2; margin: 0 -30px; padding: 16px 30px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #cfd9e6; }
/* No empty strip between the last block and the footer. */
.cart-popup-inner--sticky .woocommerce-mini-cart { margin-bottom: 0; }
.cart-popup-inner--sticky .woocommerce-mini-cart li.sidecart-upsells:last-child .kw-omni-deals { margin-bottom: 0; }
