/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
Text Domain:  woodmart
*/

/* --- Cart totals: strakker --- */
.cart_totals .tp-cart-totals {
  padding: 0 !important; /* Geen padding */
}

/* Card-styling alleen op de buitenste cart-totals-inner (direct child) */
.cart-content-wrapper > .cart_totals > .cart-totals-inner:not(.tp-cart-totals) {
  padding: 20px !important;
  border: 1px solid #e5e7eb !important; /* subtiele border */
  background: #ffffff !important;
  border-radius: 12px !important;
}
/* Zorg dat de binnenste .tp-cart-totals geen border/padding krijgt via themeregel */
.cart-content-wrapper > .cart_totals .cart-totals-inner.tp-cart-totals {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.cart_totals .tp-cart-totals > h2 {
  margin: 0 0 14px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none; /* niet alles in caps */
  letter-spacing: 0;
}

/* Betaaliconen + veilig */
.tp-payments-wrap { margin: 8px 0 14px; }
.tp-payment-icons { display: block; max-width: 100%; height: auto; margin: 0 auto; }
.tp-secure { margin-top: 12px; color: #065F46; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; background: #ECFDF5; padding: 6px 12px; border-radius: 9999px; border: 1px solid #A7F3D0; font-weight: 600; }
.tp-payments-bottom { text-align: center; margin-top: 12px; }

/* Opmerkingen toggle */
.tp-note { margin: 12px 0; }
.tp-note-toggle { appearance: none; border: 1px solid #e5e7eb; background: #fff; padding: 8px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; width: 100%; text-align: left; position: relative; }
.tp-note-toggle:after { content: '+'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; }
.tp-note-toggle.is-open:after { content: '–'; }
.tp-note-body { margin-top: 10px; }
.tp-note-body textarea { width: 100%; max-width: 100%; resize: vertical; border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; }

.cart_totals .tp-cart-totals table.shop_table {
  border: 0;
}

.cart_totals .tp-cart-totals table.shop_table tr {
  border: 0;
}

.cart_totals .tp-cart-totals table.shop_table tr + tr th,
.cart_totals .tp-cart-totals table.shop_table tr + tr td {
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* Minder ruimte onder de tabel in het totalenblok */
.cart_totals .tp-cart-totals table.shop_table,
.cart_totals .tp-cart-totals .shop_table_responsive {
  margin-bottom: 12px !important;
}

.cart_totals .tp-cart-totals .cart-subtotal th,
.cart_totals .tp-cart-totals .cart-subtotal td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.cart_totals .tp-cart-totals .order-total th,
.cart_totals .tp-cart-totals .order-total td {
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}

.cart_totals .tp-cart-totals .wc-proceed-to-checkout .checkout-button {
  width: 100%;
}

/* WooCommerce Blocks (fallback styling indien cart blok wordt gebruikt) */
.wc-block-cart__totals {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  padding: 24px;
}

.wc-block-cart__totals .wc-block-components-title {
  margin: 0 0 14px 0;
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
}

/* --- Cart table: compacter en strakker --- */
.woocommerce-cart-form .shop_table.cart {
  border: 1px solid #e5e7eb;
  border-radius: 8px; /* kleine radius */
  background: #ffffff;
  overflow: hidden; /* rondingen zichtbaar */
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce-cart-form .shop_table.cart thead th {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #374151;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}



.woocommerce-cart-form .shop_table.cart tbody td {
  padding: 12px 16px;
  vertical-align: middle;
}

.woocommerce-cart-form .shop_table.cart tr + tr td,
.woocommerce-cart-form .shop_table.cart tr + tr th {
  border-top: 1px solid #f1f5f9 !important;
}

.woocommerce-cart-form .shop_table.cart td.product-name a {
  font-weight: 600;
}

.woocommerce-cart-form .shop_table.cart td.product-price .amount {
  color: #374151;
  font-weight: 500;
}

.woocommerce-cart-form .shop_table.cart td.product-subtotal .amount,
.woocommerce-cart-form .shop_table.cart tr.order-total td .amount {
  font-weight: 700;
}

.woocommerce-cart-form .shop_table.cart td.product-quantity .quantity .btn,
.woocommerce-cart-form .shop_table.cart td.product-quantity .quantity input.qty {
  height: 38px;
}

.woocommerce-cart-form .shop_table.cart td.product-quantity .quantity input.qty {
  min-width: 64px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.woocommerce-cart-form .shop_table.cart td.product-quantity .quantity .btn {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .woocommerce-cart-form .shop_table.cart tbody td {
    padding: 10px 12px;
  }
}

/* Verberg verwijder-kolom (kruisje) in cart */
.woocommerce-cart th.product-remove,
.woocommerce-cart td.product-remove,
.woocommerce-cart .product-remove a.remove,
/* Ook voor Woodmart/Elementor cart tabel en standaard Woo tabel */
.woocommerce-cart-form th.product-remove,
.woocommerce-cart-form td.product-remove,
.shop_table.cart th.product-remove,
.shop_table.cart td.product-remove,
.shop_table.cart .product-remove a.remove {
  display: none !important;
}

/* Verberg verwijder-link in mini-cart */
.widget_shopping_cart .remove_from_cart_button,
.wd-cart-widget .remove_from_cart_button {
  display: none !important;
}

/* WooCommerce Blocks: verberg verwijder-links in Cart/Mini Cart blocks */
.wc-block-cart-item__remove-link,
.wc-block-cart-items__row .wc-block-cart-item__remove,
.wc-block-mini-cart-items__remove,
.wc-block-components-product-name .wc-block-cart-item__remove-link {
  display: none !important;
}
