/* Winkelwagen v2 (SMUK, 24 okt 2026). Alleen actief met body.smuk-ww (zie inc/smuk-cart.php). */
body.smuk-ww { --ww-ink: #0d0905; --ww-muted: #5c5650; --ww-line: #e8e0d6; --ww-room: #fbf8f4; --ww-mint: #e9f4ee; --ww-groen: #2f6b4f; }
body.smuk-ww #page-container { overflow-x: clip !important; overflow-y: visible !important; }
body.smuk-ww #main-content .container { width: auto !important; max-width: 1180px !important; padding: 28px 20px 56px !important; }
body.smuk-ww #main-content .container::before { display: none !important; }
body.smuk-ww #left-area { width: 100% !important; padding: 0 !important; float: none !important; }
body.smuk-ww #sidebar { display: none !important; }
body.smuk-ww article.page { padding: 0 !important; margin: 0 !important; }
body.smuk-ww .main_title, body.smuk-ww h1.entry-title { margin: 0 0 18px !important; padding: 0 !important; font-size: 30px !important; font-weight: 600 !important; color: var(--ww-ink) !important; }

/* Indeling: links werken + aanbevelingen, rechts sticky overzicht */
body.smuk-ww .entry-content > .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 40px; align-items: start; }
body.smuk-ww .entry-content > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
body.smuk-ww .entry-content > .woocommerce > form.woocommerce-cart-form { grid-column: 1; grid-row: 2; }
body.smuk-ww .cart-collaterals { display: contents !important; }
body.smuk-ww .cart-collaterals .cross-sells { grid-column: 1; grid-row: 3; width: 100% !important; float: none !important; margin-top: 28px; }
body.smuk-ww .cart-collaterals .cart_totals { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 110px; width: 100% !important; float: none !important; padding: 20px; border-radius: 14px; background: var(--ww-room); }

/* Werken als kaarten */
body.smuk-ww table.shop_table.cart { border: 0 !important; margin: 0 !important; border-collapse: separate; border-spacing: 0; width: 100%; }
body.smuk-ww table.shop_table.cart thead { display: none; }
body.smuk-ww table.shop_table.cart tr.cart_item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; grid-template-areas: "img naam aantal prijs"; gap: 0 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--ww-line); }
body.smuk-ww table.shop_table.cart tr.cart_item td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
body.smuk-ww table.shop_table.cart tr.cart_item td::before { display: none !important; }
body.smuk-ww table.shop_table.cart td.product-remove, body.smuk-ww table.shop_table.cart td.product-price { display: none !important; }
body.smuk-ww table.shop_table.cart td.product-thumbnail { grid-area: img; }
body.smuk-ww table.shop_table.cart td.product-thumbnail img { display: block; width: 96px !important; height: 96px !important; max-width: none; object-fit: cover; border-radius: 8px; background: var(--ww-room); }
body.smuk-ww table.shop_table.cart td.product-name { grid-area: naam; min-width: 0; }
body.smuk-ww table.shop_table.cart td.product-name > a { font-size: 16px; font-weight: 600; color: var(--ww-ink) !important; }
body.smuk-ww table.shop_table.cart td.product-name dl.variation { margin: 6px 0 0 !important; font-size: 13px; line-height: 1.5; color: var(--ww-muted); }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dt, body.smuk-ww table.shop_table.cart td.product-name dl.variation dd { display: inline; float: none; margin: 0 !important; padding: 0 !important; font-weight: 400; }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dd::after { content: ''; display: block; }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dd p { display: inline; margin: 0 !important; padding: 0 !important; }
body.smuk-ww table.shop_table.cart td.product-name a.remove { display: inline-block; width: auto !important; height: auto !important; margin-top: 8px; border-radius: 0; background: none !important; color: var(--ww-muted) !important; font-size: 13px !important; font-weight: 400 !important; line-height: 1.4 !important; text-decoration: underline; }
body.smuk-ww table.shop_table.cart td.product-name a.remove:hover { color: var(--ww-ink) !important; }
body.smuk-ww table.shop_table.cart td.product-quantity { grid-area: aantal; }
body.smuk-ww table.shop_table.cart td.product-subtotal { grid-area: prijs; min-width: 80px; text-align: right !important; font-size: 16px; font-weight: 600; color: var(--ww-ink); }
body.smuk-ww .quantity { display: inline-flex; align-items: center; border: 1px solid #d8cfc4; border-radius: 8px; overflow: hidden; background: #fff; }
body.smuk-ww .quantity input.qty { width: 40px !important; height: 38px; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; text-align: center; font-size: 15px !important; color: var(--ww-ink) !important; -moz-appearance: textfield; }
body.smuk-ww .quantity input.qty::-webkit-inner-spin-button, body.smuk-ww .quantity input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.smuk-ww-stap { width: 34px; height: 38px; padding: 0; border: 0; background: none; font-size: 18px; color: var(--ww-ink); cursor: pointer; }
.smuk-ww-stap:hover { background: var(--ww-room); }

/* Kortingscode-rij */
body.smuk-ww table.shop_table.cart td.actions { display: block; padding: 14px 0 0 !important; border: 0 !important; background: none !important; text-align: left !important; }
body.smuk-ww table.shop_table.cart td.actions > button[name="update_cart"] { display: none !important; }
body.smuk-ww td.actions .coupon { float: none !important; gap: 8px; max-width: 420px; }
body.smuk-ww td.actions .coupon input.input-text { flex: 1; width: auto !important; min-height: 42px; padding: 10px 12px !important; border: 1px solid #d8cfc4 !important; border-radius: 8px !important; font-size: 15px !important; }
body.smuk-ww td.actions .coupon button.button { min-height: 42px; padding: 10px 16px !important; border: 0 !important; border-radius: 8px !important; background: var(--ww-ink) !important; color: #fff !important; font-size: 14px !important; }
body.smuk-ww td.actions .coupon button.button::after { display: none !important; }
.smuk-ww-link { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ww-ink); text-decoration: underline; cursor: pointer; }

/* Overzicht */
body.smuk-ww .cart_totals h2 { margin: 0 0 10px !important; padding: 0 !important; font-size: 18px !important; font-weight: 600 !important; color: var(--ww-ink) !important; }
body.smuk-ww .cart_totals table.shop_table { margin: 0 !important; border: 0 !important; font-size: 14px; }
body.smuk-ww .cart_totals table.shop_table th, body.smuk-ww .cart_totals table.shop_table td { display: table-cell; padding: 8px 0 !important; border: 0 !important; background: none !important; color: var(--ww-ink); font-weight: 400; vertical-align: top; }
body.smuk-ww .cart_totals table.shop_table td { text-align: right !important; }
body.smuk-ww .cart_totals table.shop_table td::before { display: none !important; }
body.smuk-ww .cart_totals tr.woocommerce-shipping-totals th { display: none; }
body.smuk-ww .cart_totals tr.woocommerce-shipping-totals td { display: block; padding: 4px 0 8px !important; text-align: left !important; }
body.smuk-ww .cart_totals ul#shipping_method { margin: 0 !important; padding: 0 !important; list-style: none !important; }
body.smuk-ww .cart_totals ul#shipping_method li { position: relative; margin: 0 0 8px !important; padding: 0 !important; list-style: none !important; }
body.smuk-ww .cart_totals ul#shipping_method li label { display: block; margin: 0; padding: 10px 12px; border: 1px solid #d8cfc4; border-radius: 10px; background: #fff; cursor: pointer; }
body.smuk-ww .cart_totals ul#shipping_method li input[type=radio] { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); margin: 0; accent-color: var(--ww-ink); }
body.smuk-ww .cart_totals ul#shipping_method li input[type=radio] + label { padding-left: 34px; }
body.smuk-ww .cart_totals ul#shipping_method li input[type=radio]:checked + label, body.smuk-ww .cart_totals ul#shipping_method li input[type=hidden] + label { border-color: var(--ww-ink); box-shadow: 0 0 0 1px var(--ww-ink); }
body.smuk-ww .cart_totals .woocommerce-shipping-destination, body.smuk-ww .cart_totals .woocommerce-shipping-calculator { display: none !important; }
body.smuk-ww tr.smuk-ww-hint td { display: block; padding: 10px 12px !important; border-radius: 8px; background: var(--ww-mint) !important; color: var(--ww-groen) !important; text-align: left !important; font-size: 13.5px; }
.smuk-ww-hint__bar { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background: rgba(47, 107, 79, .18); overflow: hidden; }
.smuk-ww-hint__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ww-groen); }
body.smuk-ww .cart_totals tr.order-total th, body.smuk-ww .cart_totals tr.order-total td { padding-top: 12px !important; border-top: 1px solid var(--ww-line) !important; font-size: 18px; font-weight: 700 !important; }
body.smuk-ww .cart_totals tr.order-total small.includes_tax { display: block; font-size: 12px; font-weight: 400; color: var(--ww-muted); }
body.smuk-ww .wc-proceed-to-checkout { padding: 12px 0 0 !important; }
body.smuk-ww .wc-proceed-to-checkout a.checkout-button { display: block; margin: 0 !important; padding: 15px 18px !important; border: 0 !important; border-radius: 10px !important; background: var(--ww-groen) !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important; text-align: center; text-transform: none !important; letter-spacing: 0 !important; }
body.smuk-ww .wc-proceed-to-checkout a.checkout-button:hover { background: #24553e !important; }
body.smuk-ww .wc-proceed-to-checkout a.checkout-button::after { display: none !important; }
.smuk-ww-zeker { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 14px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid var(--ww-line); list-style: none !important; font-size: 12.5px; color: var(--ww-ink); }
.smuk-ww-zeker li { position: relative; margin: 0 !important; padding: 0 0 0 18px !important; list-style: none !important; }
.smuk-ww-zeker li::before { content: ''; position: absolute; left: 0; top: 3px; width: 11px; height: 6px; border-left: 2px solid var(--ww-groen); border-bottom: 2px solid var(--ww-groen); transform: rotate(-45deg); }
.smuk-ww-betaal { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.smuk-ww-betaal img { display: block; height: 22px !important; width: auto !important; padding: 2px 4px; border: 1px solid var(--ww-line); border-radius: 4px; background: #fff; box-sizing: content-box; }

/* Aanbevelingen */
body.smuk-ww .cross-sells > h2 { margin: 0 0 14px !important; padding: 0 !important; font-size: 20px !important; font-weight: 600 !important; color: var(--ww-ink) !important; }
body.smuk-ww .cross-sells ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 !important; }
body.smuk-ww .cross-sells ul.products::before, body.smuk-ww .cross-sells ul.products::after { display: none !important; }
body.smuk-ww .cross-sells ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }

/* Lege winkelwagen */
body.smuk-ww .cart-empty { margin: 0 0 16px !important; padding: 18px !important; border: 0 !important; border-radius: 12px; background: var(--ww-room) !important; color: var(--ww-ink) !important; }
body.smuk-ww .cart-empty::before { display: none !important; }
body.smuk-ww .return-to-shop a.button { padding: 12px 20px !important; border: 0 !important; border-radius: 8px !important; background: var(--ww-ink) !important; color: #fff !important; }

@media (max-width: 980px) {
	body.smuk-ww #main-content .container { padding: 18px 16px 40px !important; }
	body.smuk-ww .main_title, body.smuk-ww h1.entry-title { font-size: 24px !important; }
	body.smuk-ww .entry-content > .woocommerce { display: block; }
	body.smuk-ww .cart-collaterals .cart_totals { position: static; margin-top: 20px; }
	body.smuk-ww table.shop_table.cart tr.cart_item { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "img naam prijs" "img aantal aantal"; gap: 8px 12px; }
	body.smuk-ww table.shop_table.cart td.product-thumbnail img { width: 76px !important; height: 76px !important; }
	body.smuk-ww table.shop_table.cart td.product-quantity { justify-self: start; }
	body.smuk-ww table.shop_table.cart td.product-subtotal { min-width: 0; }
	body.smuk-ww .cross-sells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Bezorgkaart (gedeeld door checkout en winkelwagen) */
.smuk-ship { display: flex; align-items: center; gap: 12px; width: 100%; }
.smuk-ship__ico { flex: none; width: 34px; height: 34px; border-radius: 8px; background: #e9f4ee; position: relative; }
.smuk-ship__ico::before { content: ''; position: absolute; inset: 7px; background: #2f6b4f; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h11v9H3zM14 9.5h3.8l3.2 3.2v2.8h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.2' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.5h11v9H3zM14 9.5h3.8l3.2 3.2v2.8h-7z'/%3E%3Ccircle cx='7' cy='17.5' r='1.8'/%3E%3Ccircle cx='17.2' cy='17.5' r='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }
.smuk-ship__tekst { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; text-align: left; }
.smuk-ship__naam { font-size: 14.5px; font-weight: 600; color: #0d0905; line-height: 1.3; }
.smuk-ship__sub { font-size: 12.5px; font-weight: 400; color: #5c5650; line-height: 1.35; }
.smuk-ship__prijs { flex: none; font-size: 14.5px; font-weight: 600; color: #0d0905; white-space: nowrap; }
.smuk-ship__prijs.is-gratis { padding: 3px 9px; border-radius: 999px; background: #e9f4ee; color: #2f6b4f; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }

/* Ronde 2: overzicht als flex-rijen (volle breedte bezorgkaart), geen hoofdletters, geen gat boven de aanbevelingen */
body.smuk-ww .entry-content > .woocommerce { grid-template-rows: auto auto 1fr; }
body.smuk-ww .cart_totals table.shop_table, body.smuk-ww .cart_totals table.shop_table tbody { display: block; width: 100%; }
body.smuk-ww .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
body.smuk-ww .cart_totals table.shop_table th, body.smuk-ww .cart_totals table.shop_table td { display: block; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px; color: var(--ww-ink) !important; }
body.smuk-ww .cart_totals tr.woocommerce-shipping-totals td, body.smuk-ww .cart_totals tr.smuk-ww-hint td { flex: 1; width: 100%; }
body.smuk-ww .cart_totals tr.order-total { align-items: flex-start; }
body.smuk-ww .cart_totals tr.order-total th, body.smuk-ww .cart_totals tr.order-total td { font-size: 18px !important; }
body.smuk-ww .cart_totals tr.order-total td { flex: 1; }
body.smuk-ww .cart_totals ul#shipping_method li label, body.smuk-ww .cart_totals ul#shipping_method li label * { text-transform: none !important; letter-spacing: 0 !important; }
body.smuk-ww .cart_totals ul#shipping_method li label { font-weight: 400 !important; }
body.smuk-ww .wc-proceed-to-checkout #wc-stripe-express-checkout-element { margin-top: 10px !important; }
body.smuk-ww .cart_totals tr.woocommerce-shipping-totals th { display: none !important; }
body.smuk-ww .cart_totals tr.woocommerce-shipping-totals td { padding: 6px 0 10px !important; }
body.smuk-ww .cart_totals tr.order-total { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--ww-line); }
body.smuk-ww .cart_totals tr.order-total th, body.smuk-ww .cart_totals tr.order-total td { padding-top: 0 !important; border-top: 0 !important; }

/* Ronde 3: snel bijwerken (laadtoestand), opties als nette lijst */
body.smuk-ww .cart_totals { transition: opacity .15s ease; }
body.smuk-ww .cart_totals.smuk-laden { opacity: .55; pointer-events: none; }
body.smuk-ww td.product-subtotal.smuk-laden { opacity: .55; }
body.smuk-ww table.shop_table.cart td.product-name dl.variation { display: grid; grid-template-columns: auto 1fr; gap: 1px 6px; }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dt { color: var(--ww-muted); }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dd { color: var(--ww-ink); }
body.smuk-ww table.shop_table.cart td.product-name dl.variation dd::after { display: none !important; }
body.smuk-ww .cart_totals tr.cart-subtotal th { color: var(--ww-muted) !important; }
body.smuk-ww .wc-proceed-to-checkout a.checkout-button { padding: 18px 20px !important; font-size: 17px !important; border-radius: 12px !important; }
.smuk-ww-zeker { grid-template-columns: 1fr; gap: 6px; }

/* Kortingsknop: rustig, één regel */
.smuk-co-coupon button.button, body.smuk-ww td.actions .coupon button.button { text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; font-weight: 600 !important; padding: 10px 16px !important; }
/* Mobiel: overzicht + afrekenknop direct onder de werken, aanbevelingen daarna */
@media (max-width: 980px) {
	body.smuk-ww .entry-content > .woocommerce { display: flex; flex-direction: column; }
	body.smuk-ww .entry-content > .woocommerce > .woocommerce-notices-wrapper { order: 0; }
	body.smuk-ww .entry-content > .woocommerce > form.woocommerce-cart-form { order: 1; }
	body.smuk-ww .cart-collaterals .cart_totals { order: 2; }
	body.smuk-ww .cart-collaterals .cross-sells { order: 3; }
}
/* Bezorgkaart in de winkelwagen: zelfde mint bij de gekozen optie */
body.smuk-ww .cart_totals ul#shipping_method li label { border-color: #e2d9ce !important; box-shadow: none !important; }
body.smuk-ww .cart_totals ul#shipping_method li input[type=radio]:checked + label, body.smuk-ww .cart_totals ul#shipping_method li input[type=hidden] + label { background: #eef6f1 !important; border-color: #9cc5ad !important; box-shadow: none !important; }
body.smuk-ww .cart_totals ul#shipping_method li input[type=radio]:checked + label .smuk-ship__ico, body.smuk-ww .cart_totals ul#shipping_method li input[type=hidden] + label .smuk-ship__ico { background: #fff; }
body.smuk-ww td.actions .coupon[style*="flex"] { padding: 10px; border-radius: 10px; background: #f6efe6; }
