body.woocommerce-checkout {
    --bg_color_checkout: white;
    --text-color-checkout: 
  }

@media (prefers-color-scheme: dark) {
  body.woocommerce-checkout {
    --bg_color_checkout: #333333;
    --text-color-checkout: #ffffff;
  }
}

body.woocommerce-checkout  {
  position: relative;
  margin-top: -250px;
  z-index: 999;
}
body.woocommerce-checkout fieldset, body.woocommerce-checkout  .wc-block-checkout__add-note, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block {
  border: none !important;
  background: var(--bg_color_checkout) !important;
  padding: 10px !important;
  border-radius: 8px !important;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}
body.woocommerce-checkout fieldset input::-moz-placeholder, body.woocommerce-checkout  .wc-block-checkout__add-note input::-moz-placeholder, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block input::-moz-placeholder {
  color: var(--text-color-checkout) !important;
}
body.woocommerce-checkout fieldset input, body.woocommerce-checkout  fieldset textarea, body.woocommerce-checkout  fieldset select, body.woocommerce-checkout  fieldset option, body.woocommerce-checkout  fieldset input::placeholder, body.woocommerce-checkout  .wc-block-checkout__add-note input, body.woocommerce-checkout  .wc-block-checkout__add-note textarea, body.woocommerce-checkout  .wc-block-checkout__add-note select, body.woocommerce-checkout  .wc-block-checkout__add-note option, body.woocommerce-checkout  .wc-block-checkout__add-note input::placeholder, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block input, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block textarea, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block select, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block option, body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block input::placeholder {
  color: var(--text-color-checkout) !important;
}
body.woocommerce-checkout fieldset label:not(.wc-block-components-radio-control__option-checked), body.woocommerce-checkout  .wc-block-checkout__add-note label:not(.wc-block-components-radio-control__option-checked), body.woocommerce-checkout  .wp-block-woocommerce-checkout-order-summary-block label:not(.wc-block-components-radio-control__option-checked) {
  color: var(--text-color-checkout) !important;
  opacity: 0.5 !important;
}
body.woocommerce-checkout .wp-element-button {
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  background: linear-gradient(180deg, #2A7BFF 0%, #054BEE 100%) !important;
  font-size: 18px !important;
  outline: none !important;
  font-weight: 500 !important;
}
body.woocommerce-checkout .wp-element-button:hover {
  opacity: 0.9;
  background: linear-gradient(180deg, #054BEE 0%, #2A7BFF 100%) !important;
}
body.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components- {
  padding-right: unset !important;
}
body.woocommerce-checkout .wc-block-components-product-metadata__description {
  display: none !important;
}

.wc-block-components-form .wc-block-components-text-input input[type=email], .wc-block-components-form .wc-block-components-text-input input[type=number], .wc-block-components-form .wc-block-components-text-input input[type=password], .wc-block-components-form .wc-block-components-text-input input[type=tel], .wc-block-components-form .wc-block-components-text-input input[type=text], .wc-block-components-form .wc-block-components-text-input input[type=url], .wc-block-components-text-input input[type=email], .wc-block-components-text-input input[type=number], .wc-block-components-text-input input[type=password], .wc-block-components-text-input input[type=tel], .wc-block-components-text-input input[type=text], .wc-block-components-text-input input[type=url], .wc-blocks-components-select.wc-blocks-components-select__container{
  background: #ffffff17 !important;
  border-color: #ffffff2b !important;
}

.wc-blocks-components-select.wc-blocks-components-select__container{
    background: #ffffff17 !important;
    border-color: #ffffff2b !important;
}

.wc-block-components-address-form__country.wc-block-components-country-input{
    display: none !important;
}

.wc-block-components-address-card__address-section.wc-block-components-address-card__address-section--secondary{
    color: var(--text-color-checkout) !important;
}

/* Extend variables to thank you page too */
body.woocommerce-checkout,
body.woocommerce-order-received {
    --bg_color_checkout: white;
    --text-color_checkout: #000000;   /* explicit default for light mode */
}

@media (prefers-color-scheme: dark) {
    body.woocommerce-checkout,
    body.woocommerce-order-received {
        --bg_color_checkout: #333333;
        --text-color_checkout: #ffffff;
    }
}

/* Reset/remove unwanted nested backgrounds, borders, heavy padding on thank you page sections */
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-order-received section,
body.woocommerce-order-received .woocommerce-notice,
body.woocommerce-order-received address,
body.woocommerce-order-received .woocommerce-order-details__item-container,
body.woocommerce-order-received table.woocommerce-table--order-details.shop_table.order_details {
    background: var(--bg_color_checkout) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px !important;          /* slightly more breathing room than checkout's 10px */
    margin: 20px 0 !important;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Make sure the  order table and its cells inherit properly – no extra gray layers */
body.woocommerce-order-received table.woocommerce-table--order-details,
body.woocommerce-order-received table.shop_table th,
body.woocommerce-order-received table.shop_table td,
body.woocommerce-order-received .woocommerce-table__product-name,
body.woocommerce-order-received .woocommerce-table__product-total,
body.woocommerce-order-received .product-name,
body.woocommerce-order-received .product-total,
body.woocommerce-order-received ul li,
body.woocommerce-order-received .woocommerce-Price-amount,
body.woocommerce-order-received strong {
    background: transparent !important;
    color: var(--text-color_checkout) !important;
    border: none !important;
}

/* Headings and labels on thank you page */
body.woocommerce-order-received h2,
body.woocommerce-order-received h3,
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-order-overview strong,
body.woocommerce-order-received address strong {
    color: var(--text-color_checkout) !important;
    opacity: 1 !important;  /* override any faded look */
}

/* The success notice / thank you text at top */
body.woocommerce-order-received .woocommerce-notice.woocommerce-thankyou-order-received {
    background: var(--bg_color_checkout) !important;
    color: var(--text-color_checkout) !important;
    border: none !important;
    padding: 16px !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Product list items (the <ul> with swatches/colors) – make them clean */
body.woocommerce-order-received .product-name ul,
body.woocommerce-order-received .product-name li {
    background: transparent !important;
    color: var(--text-color_checkout) !important;
    list-style: none !important;   /* if you want to remove bullets, or keep disc if preferred */
    margin: 4px 0 !important;
    padding-left: 0 !important;
}

/* Fix quantity display */
body.woocommerce-order-received .product-quantity {
    color: var(--text-color_checkout) !important;
    font-weight: bold !important;
}

/* Footer totals / subtotals on thank you (if present) */
body.woocommerce-order-received tfoot th,
body.woocommerce-order-received tfoot td {
    background: transparent !important;
    color: var(--text-color_checkout) !important;
}

/* If your theme adds extra dark wrappers around sections, target higher up */
body.woocommerce-order-received .entry-content > div,
body.woocommerce-order-received .woocommerce,
body.woocommerce-order-received  {
    background: transparent !important;  /* prevent outer gray stacking */
}

/* Keep your button styles if any buttons appear (e.g. "My account", "Pay again") */
body.woocommerce-order-received .button,
body.woocommerce-order-received .wp-element-button {
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    background: linear-gradient(180deg, #2A7BFF 0%, #054BEE 100%) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

body.woocommerce-order-received .button:hover,
body.woocommerce-order-received .wp-element-button:hover {
    opacity: 0.9;
    background: linear-gradient(180deg, #054BEE 0%, #2A7BFF 100%) !important;
}

/* Cart Page Styling */
body.woocommerce-cart  {
    position: relative;
    margin-top: -250px;
    z-index: 999;
    /* Responsive adjustments */
  }
  body.woocommerce-cart  .woocommerce-cart-form {
    margin-bottom: 2rem;
  }
  body.woocommerce-cart  .woocommerce-cart-form__contents {
    border-spacing: 0 10px !important;
    border-collapse: separate !important;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item {
    border: none !important;
    background: var(--qty_bg_color);
    padding: 5px 10px;
    border-radius: 8px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    display: table-row;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item td {
    padding: 10px;
    vertical-align: middle;
    background: var(--qty_bg_color);
    border: none;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item .product-thumbnail {
    padding: 10px !important;
    float: unset !important;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item .product-thumbnail img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 8px;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item .product-remove {
    text-align: right;
  }
  body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item .quantity {
    margin: 0;
  }
  body.woocommerce-cart  .shop_table.cart {
    width: 100%;
    border-collapse: collapse;
  }
  body.woocommerce-cart  .cart-header {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 50px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 2px solid var(--border_color);
    font-weight: 600;
    color: var(--awb-text-color);
  }
  body.woocommerce-cart  .cart-item {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr 1fr 50px;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border_color);
    align-items: center;
  }
  body.woocommerce-cart  .product-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  body.woocommerce-cart  .product-name {
    font-weight: 500;
  }
  body.woocommerce-cart  .product-name a {
    color: var(--awb-text-color);
    text-decoration: none;
  }
  body.woocommerce-cart  .product-name a:hover {
    color: var(--link_color);
  }
  body.woocommerce-cart  .product-price, body.woocommerce-cart  .product-subtotal {
    font-weight: 500;
  }
  body.woocommerce-cart  .product-quantity {
    align-items: center;
  }
  body.woocommerce-cart  .product-remove .remove {
    color: #dc3545;
    font-size: 1.5rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    transition: all 0.3s ease;
  }
  body.woocommerce-cart  .product-remove .remove:hover {
    background: rgba(220, 53, 69, 0.2);
  }
  body.woocommerce-cart  .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-top: 1rem;
  }
  body.woocommerce-cart  .coupon {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--qty_bg_color);
    border-radius: 8px;
    border: none;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  }
  body.woocommerce-cart  .coupon input {
    padding: 0.5rem;
    border-radius: 2rem 0 0 2rem;
    margin: 0 !important;
  }
  body.woocommerce-cart  .cart_totals {
    background: var(--qty_bg_color);
    border-radius: 8px;
    border: none;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
  }
  body.woocommerce-cart  .button {
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  body.woocommerce-cart  .button.fusion-apply-coupon {
    border-radius: 0 2rem 2rem 0;
  }
  body.woocommerce-cart  .button:hover {
    opacity: 0.9;
  }
  body.woocommerce-cart  .fusion-update-cart {
    display: none;
  }
  @media (max-width: 768px) {
    body.woocommerce-cart  .cart-header {
      display: none;
    }
    body.woocommerce-cart  .cart-item {
      grid-template-columns: 1fr;
      gap: 0.5rem;
      padding: 1rem;
      position: relative;
    }
    body.woocommerce-cart  .product-thumbnail {
      width: 100px;
    }
    body.woocommerce-cart  .product-remove {
      position: absolute;
      top: 1rem;
      right: 1rem;
    }
    body.woocommerce-cart  .product-name, body.woocommerce-cart  .product-price, body.woocommerce-cart  .product-quantity, body.woocommerce-cart  .product-subtotal {
      padding: 0.5rem 0;
    }
    body.woocommerce-cart  .product-name::before, body.woocommerce-cart  .product-price::before, body.woocommerce-cart  .product-quantity::before, body.woocommerce-cart  .product-subtotal::before {
      content: attr(data-title);
      font-weight: 600;
      margin-right: 0.5rem;
    }
    body.woocommerce-cart  .actions {
      flex-direction: column;
      gap: 1rem;
    }
    body.woocommerce-cart  .coupon {
      flex-direction: column;
      width: 100%;
    }
    body.woocommerce-cart  .coupon input {
      width: 100%;
    }
    body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item {
      padding: 15px;
      height: auto;
    }
    body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item td {
      padding: 5px;
    }
    body.woocommerce-cart  .woocommerce-cart-form__cart-item.cart_item .product-thumbnail {
      width: 100px;
      height: 100px;
    }
  }

/* Extend variables to cart page too */
body.woocommerce-cart,
body.woocommerce-page.cart {
    --bg_color_checkout: white;
    --text-color_checkout: #000000;
}

@media (prefers-color-scheme: dark) {
    body.woocommerce-cart,
    body.woocommerce-page.cart {
        --bg_color_checkout: #333333;
        --text-color_checkout: #ffffff;
    }
}

/* Main cart wrapper – make it clean, no extra backgrounds */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wc-block-components-sidebar-layout {
    background: transparent !important;
    padding: 0 !important;
    max-width: 1200px; /* optional: center and constrain width like checkout */
    margin: 0 auto !important;
}

/* Cart items section (left/main area) – card style */
body.woocommerce-cart .wc-block-cart__main, body.woocommerce-cart .wp-block-woocommerce-cart-items-block {
    background: var(--bg_color_checkout) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Individual product rows – cleaner, no heavy dark bg per row */
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart tr.wc-block-cart-items__row {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important; /* subtle separator in dark mode */
    padding: 12px 0 !important;
}

body.woocommerce-cart .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart-item__wrap,
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .wc-block-components-product-price,
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details,
body.woocommerce-cart .wc-block-components-product-details li,
body.woocommerce-cart .pewc-cart-item-price,
body.woocommerce-cart .woocommerce-Price-amount {
    background: transparent !important;
    color: var(--text-color_checkout) !important;
}

/* Product image in cart */
body.woocommerce-cart .wc-block-cart-item__image img {
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

/* Quantity selector & remove button */
body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .wc-block-components-quantity-selector__input,
body.woocommerce-cart .wc-block-components-quantity-selector__button {
    background: rgba(255,255,255,0.1) !important;
    color: var(--text-color_checkout) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 6px !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
    color: #ff6b6b !important; /* red for remove */
    font-size: 0.95em !important;
}

/* Sidebar / totals section – card style, like checkout summary */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
    background: var(--bg_color_checkout) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden;
}

body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart h2,
body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-wrapper {
    color: var(--text-color_checkout) !important;
    background: transparent !important;
}

/* Coupon panel – make it fit the card look */
body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-cart .wc-block-components-panel__button {
    background: rgba(255,255,255,0.08) !important;
    border-radius: 6px !important;
    color: var(--text-color_checkout) !important;
}

/* Proceed to checkout button – match your gradient style */
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button,
body.woocommerce-cart .wp-element-button {
    color: white !important;
    border: none !important;
    padding: 14px 28px !important;
    border-radius: 50px !important;
    background: linear-gradient(180deg, #2A7BFF 0%, #054BEE 100%) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    width: 100% !important; /* full width like in your screenshot */
    margin-top: 16px !important;
    transition: all 0.2s ease !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wp-element-button:hover {
    opacity: 0.92 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(5,75,238,0.3) !important;
}

/* Payment icons (iDEAL etc.) */
body.woocommerce-cart .wc-block-components-payment-method-icon {
    filter: brightness(1.1) !important; /* better visibility in dark mode */
}

/* Hide or minimize unnecessary elements if wanted (optional) */
body.woocommerce-cart .wc-block-components-product-metadata__description {
    display: none !important;
}

.text-decoration-none{
    text-decoration: none !important;
}

body.woocommerce-cart td.wc-block-cart-item__image, body.woocommerce-cart th.wc-block-cart-items__header-product {
	display: none;
}
body.woocommerce-cart th.wc-block-cart-items__header-image{
  text-align: left !important;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image{display: none !important;}

/* Style the delivery date field to match other checkout fields */
body.woocommerce-checkout .wc-block-components-text-input input[type="date"],
body.woocommerce-checkout .wc-block-components-text-input input.delivery-date-picker,
body.woocommerce-checkout input[type="date"][id*="datum-aflevering"],
body.woocommerce-checkout input[type="date"][id*="datum_aflevering"],
body.woocommerce-checkout input[type="date"][name*="datum-aflevering"],
body.woocommerce-checkout input[type="date"][name*="datum_aflevering"] {
  background: #ffffff17 !important;
  border-color: #ffffff2b !important;
  color: var(--text-color-checkout) !important;
  width: 100% !important;
  padding: 18px 16px 0px !important;
  border-radius: 4px !important;
  border: 1px solid !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

/* Style the date picker container to match other field containers */
body.woocommerce-checkout .wc-block-components-text-input:has(input[type="date"][id*="datum-aflevering"]),
body.woocommerce-checkout .wc-block-components-text-input:has(input[type="date"][id*="datum_aflevering"]),
body.woocommerce-checkout .wc-block-components-text-input:has(input.delivery-date-picker) {
  width: 100% !important;
}

/* Fix label styling for delivery date field */
body.woocommerce-checkout label[for*="datum-aflevering"],
body.woocommerce-checkout label[for*="datum_aflevering"],
body.woocommerce-checkout .wc-block-components-text-input:has(input[type="date"][id*="datum-aflevering"]) label,
body.woocommerce-checkout .wc-block-components-text-input:has(input[type="date"][id*="datum_aflevering"]) label {
  color: var(--text-color-checkout) !important;
  opacity: 0.5 !important;
  display: block !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
  width: 100% !important;
}

/* Hide the "(optioneel)" text if it's appearing inside the input */
body.woocommerce-checkout input[type="date"][id*="datum-aflevering"]::placeholder,
body.woocommerce-checkout input[type="date"][id*="datum_aflevering"]::placeholder {
  color: transparent !important;
}

/* Style date picker calendar icon */
body.woocommerce-checkout input[type="date"][id*="datum-aflevering"]::-webkit-calendar-picker-indicator,
body.woocommerce-checkout input[type="date"][id*="datum_aflevering"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  body.woocommerce-checkout input[type="date"][id*="datum-aflevering"]::-webkit-calendar-picker-indicator,
  body.woocommerce-checkout input[type="date"][id*="datum_aflevering"]::-webkit-calendar-picker-indicator {
    filter: invert(0);
  }
}

/* Ensure the field wrapper matches other fields */
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-note-block .wc-block-components-text-input input[type="date"],
body.woocommerce-checkout .wp-block-woocommerce-checkout-order-information-block .wc-block-components-text-input input[type="date"] {
  background: #ffffff17 !important;
  border-color: #ffffff2b !important;
  color: var(--text-color-checkout) !important;
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 4px !important;
  border: 1px solid !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .wc-block-components-address-form__devani-datum-aflevering label{
  top: 6px;
	transform: scale(.82);
}