/* 3DBooster - winkelwagen en afrekenen (WooCommerce classic). Gebruikt de kleuren van het thema. */

.woocommerce-cart .page-hero,
.woocommerce-checkout .page-hero { padding-bottom: 96px; }
.woocommerce-cart .page-hero > h1,
.woocommerce-checkout .page-hero > h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 28px; }

/* Meldingen */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 22px; padding: 16px 20px; border: 1px solid var(--line); border-left: 4px solid var(--orange);
	border-radius: 14px; background: var(--white); color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.woocommerce-error { border-left-color: #c0392b; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; }
.woocommerce-info a, .woocommerce-message a:not(.button) { color: var(--orange-dark); font-weight: 700; }

/* Waardebon */
.woocommerce-form-coupon-toggle .woocommerce-info { background: transparent; border-style: dashed; border-left-width: 1px; font-size: .95rem; }
form.checkout_coupon { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 18px 20px; margin: 0 0 22px; }
form.checkout_coupon .form-row { float: none; width: auto; display: inline-block; margin: 0 8px 0 0; padding: 0; }

/* Twee kolommen: gegevens links, overzicht rechts */
form.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 0 36px; align-items: start; }
form.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; }
form.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; }
form.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
form.woocommerce-checkout .col2-set { width: auto; float: none; }
form.woocommerce-checkout .col2-set .col-1,
form.woocommerce-checkout .col2-set .col-2 { float: none; width: auto; max-width: none; }
form.woocommerce-checkout .woocommerce-additional-fields { display: none; }

/* Kaarten */
.woocommerce-billing-fields,
#order_review {
	background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px 30px 26px;
	box-shadow: 0 18px 50px rgba(23, 25, 28, .06);
}
#order_review { background: var(--cream); position: sticky; top: 24px; }
.woocommerce-billing-fields > h3,
#order_review_heading { font-size: 1.35rem; margin: 0 0 20px; letter-spacing: -.02em; }
#order_review_heading { display: none; }
#order_review::before { content: "Jouw bestelling"; display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; }

/* Velden */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { display: block; font-weight: 700; font-size: .9rem; margin: 0 0 6px; color: var(--ink); line-height: 1.3; }
.woocommerce form .form-row .required { color: var(--orange-dark); text-decoration: none; }
.woocommerce form .form-row .optional { color: var(--muted); font-weight: 400; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
	background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0; line-height: 1.2; color: var(--ink); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus,
.woocommerce form .form-row textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 124, 11, .18); }
.woocommerce form .form-row input.input-text::placeholder { color: #a3a6ab; }
.woocommerce form .form-row .description { display: block; margin-top: 6px; font-size: .85rem; color: var(--muted); }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #c0392b; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); }
.woocommerce form .form-row-first { float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide, .woocommerce form .clear { clear: both; }
.woocommerce-billing-fields__field-wrapper::after { content: ""; display: table; clear: both; }

/* Overzicht */
.woocommerce table.shop_table { border: 0; border-radius: 0; margin: 0 0 18px; border-collapse: collapse; width: 100%; background: transparent; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; text-align: left; background: transparent; vertical-align: top; }
.woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tfoot th { font-weight: 600; }
.woocommerce table.shop_table tfoot .order-total th, .woocommerce table.shop_table tfoot .order-total td { border-bottom: 0; font-size: 1.15rem; font-weight: 800; padding-top: 16px; }
.woocommerce table.shop_table td:last-child, .woocommerce table.shop_table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table .product-name { font-weight: 700; }
.woocommerce-checkout-review-order-table .product-quantity { color: var(--muted); font-weight: 400; }
.includes_tax, .includes_tax .amount { font-size: .82rem; color: var(--muted); font-weight: 400; }

/* Betalen */
#payment { background: transparent; border-radius: 0; }
#payment ul.payment_methods { list-style: none; margin: 0 0 18px; padding: 0; border: 0; }
#payment ul.payment_methods li { margin: 0 0 8px; padding: 12px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; line-height: 1.4; }
#payment ul.payment_methods li label { display: inline; font-weight: 700; cursor: pointer; }
#payment ul.payment_methods li img { max-height: 24px; margin-left: 8px; vertical-align: middle; }
#payment div.payment_box { background: transparent; color: var(--muted); padding: 8px 0 0; margin: 0; font-size: .9rem; }
#payment div.payment_box::before { display: none; }
#payment input[type="radio"] { accent-color: var(--orange); margin-right: 8px; }
.woocommerce-privacy-policy-text { font-size: .85rem; color: var(--muted); margin: 0 0 14px; }

/* Vinkjes voor voorwaarden en directe start */
.tdb-consent { margin: 4px 0 18px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.tdb-consent .form-row { margin: 0 0 12px; }
.tdb-consent .form-row:last-child { margin: 0; }
.tdb-consent label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; line-height: 1.45; }
.tdb-consent input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--orange); }
.tdb-consent a { color: var(--orange-dark); font-weight: 700; }

/* Knoppen */
.woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit, .woocommerce input.button,
.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
	min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--white);
	font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s, background .2s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--ink-soft); transform: translateY(-2px); color: var(--white); }
.woocommerce #payment #place_order { width: 100%; float: none; background: var(--orange); font-size: 1.05rem; min-height: 56px; }
.woocommerce #payment #place_order:hover { background: var(--orange-dark); }
#payment .place-order { padding: 0; margin: 0; }

/* Winkelwagen */
.woocommerce-cart .woocommerce-cart-form table.shop_table { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 10px 26px; box-shadow: 0 18px 50px rgba(23, 25, 28, .06); }
.woocommerce-cart table.cart img { width: 64px; border-radius: 10px; }
.woocommerce-cart table.cart td.product-remove a { color: var(--muted) !important; font-size: 1.4rem; }
.woocommerce-cart .cart-collaterals { margin-top: 28px; }
.woocommerce-cart .cart-collaterals .cart_totals { float: none; width: 100%; max-width: 420px; margin-left: auto; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.woocommerce-cart .cart-collaterals .cart_totals h2 { font-size: 1.35rem; margin: 0 0 14px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { display: flex; width: 100%; background: var(--orange); font-size: 1.05rem; min-height: 56px; margin: 0; padding: 0 22px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--orange-dark); }
.woocommerce-cart td.actions .coupon { display: flex; gap: 8px; }
.woocommerce-cart td.actions .coupon input.input-text { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--paper); }

@media (max-width: 860px) {
	form.woocommerce-checkout { display: block; }
	#order_review { position: static; margin-top: 24px; }
	.woocommerce-billing-fields, #order_review { padding: 22px 18px; border-radius: 18px; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { float: none; width: 100%; }
}

/* Correcties na eerste voorbeeld */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #payment #place_order { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; }
.woocommerce #payment #place_order { display: flex; }
.woocommerce .tdb-consent .form-row label, .tdb-consent label.checkbox { font-weight: 400; display: flex; }
.woocommerce .tdb-consent .form-row .required { display: inline; }
.woocommerce-checkout #payment, .woocommerce-checkout #payment ul.payment_methods { background: transparent; border: 0; padding: 0; }
.woocommerce-checkout #payment div.form-row { padding: 0; }
.includes_tax { display: block; margin-top: 2px; }
.woocommerce table.shop_table tfoot .order-total td { white-space: normal; }
.woocommerce form.checkout_coupon .button { margin-left: 4px; }
.woocommerce-form-coupon-toggle { margin-bottom: 8px; }

/* Winkelwagen: netter tabel, geen lege kolommen (pakket is per bestelling 1x) */
.woocommerce-cart .woocommerce-cart-form table.shop_table { box-sizing: border-box; width: 100%; }
.woocommerce-cart table.cart .product-thumbnail, .woocommerce-cart table.cart .product-quantity { display: none; }
.woocommerce-cart table.cart td.actions { padding: 16px 0 6px; border-bottom: 0; }
.woocommerce-cart td.actions .coupon { float: left; display: flex; gap: 8px; align-items: center; }
.woocommerce-cart td.actions .coupon input#coupon_code { width: 200px; }
.woocommerce-cart td.actions > .button { float: right; }
.woocommerce-cart table.cart td.product-remove { width: 36px; padding-right: 0; }
.woocommerce-cart .woocommerce-cart-form table.shop_table { padding: 0; overflow: hidden; }
.woocommerce-cart table.cart th:first-child, .woocommerce-cart table.cart td:first-child { padding-left: 24px; }
.woocommerce-cart table.cart th:last-child, .woocommerce-cart table.cart td:last-child { padding-right: 24px; }
.woocommerce-cart table.cart td.actions { padding: 16px 24px 18px; }
@media (max-width: 860px) { .woocommerce-cart td.actions .coupon, .woocommerce-cart td.actions > .button { float: none; width: 100%; } .woocommerce-cart td.actions > .button { margin-top: 10px; } }
