/* The WooCommerce wrapper remains unmodified; only EIDIM's inner layouts use grids. */
body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{width:min(1200px,calc(100% - 48px));max-width:none;margin:0 auto;padding:42px 0 80px;color:#111}body.woocommerce-cart .woocommerce>h2:first-child,body.woocommerce-checkout .woocommerce>h2:first-child{display:none}.eidim-cart-page-heading{display:flex;justify-content:space-between;gap:32px;align-items:flex-start;margin:0 0 26px;padding-bottom:20px;border-bottom:1px solid #d7dde4}.eidim-cart-page-heading nav{color:#40516a;font-size:10px;font-weight:800;letter-spacing:.04em}.eidim-cart-page-heading nav span{margin:0 8px}.eidim-cart-page-heading h1{margin:8px 0 0;color:#111;font-size:34px;font-weight:900;letter-spacing:-.04em;line-height:1;text-transform:uppercase}.eidim-checkout-progress{display:flex;min-width:340px;justify-content:space-between;gap:25px;padding-top:2px}.eidim-checkout-progress span{position:relative;display:grid;gap:5px;place-items:center;min-width:72px;color:#9aa5b2}.eidim-checkout-progress span:not(:last-child)::after{position:absolute;top:11px;left:calc(50% + 17px);width:calc(100% - 4px);height:1px;background:#c9d1da;content:""}.eidim-checkout-progress b{position:relative;z-index:1;display:grid;width:22px;height:22px;place-items:center;border-radius:50%;color:#fff;background:#adb6c0;font-size:10px}.eidim-checkout-progress em{font-size:9px;font-style:normal;font-weight:800;text-transform:uppercase}.eidim-checkout-progress .is-complete b{background:#111}.eidim-checkout-progress .is-current b{background:#ff4d22}
.eidim-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:32px;align-items:start}.eidim-cart-form{min-width:0}.eidim-cart-form table.shop_table{width:100%;border:1px solid #d5dce4;border-radius:3px;border-collapse:separate;border-spacing:0}.eidim-cart-form th{padding:13px 10px;border:0;color:#111;font-size:10px;font-weight:800;text-transform:uppercase}.eidim-cart-form td{padding:16px 10px;vertical-align:middle;border-top:1px solid #e6ebef}.eidim-cart-form .product-remove{width:28px}.eidim-cart-form .product-thumbnail{width:105px}.eidim-cart-form .product-thumbnail img{display:block;width:90px;height:68px;object-fit:contain}.eidim-cart-form .product-name{min-width:220px}.eidim-cart-form .product-name a{color:#172238;font-size:12px;font-weight:800;text-decoration:none}.eidim-cart-form .product-price,.eidim-cart-form .product-subtotal{white-space:nowrap;font-size:12px}.eidim-cart-form .product-remove a{color:#ef4825!important}.eidim-cart-sku{display:block;margin-top:4px;color:#748091;font-size:10px}.eidim-cart-form .quantity .qty{width:64px;min-height:34px;border:1px solid #ccd5de}.eidim-cart-form .actions{padding:14px 0 0;border:0}.eidim-cart-form .coupon{display:inline-flex;gap:8px}.eidim-cart-form .coupon .input-text{min-width:150px;min-height:38px;border:1px solid #cfd8e1}.eidim-cart-form .button{min-height:38px;padding:0 14px;color:#fff!important;background:#ff4d22!important;border-radius:3px!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase}.eidim-cart-summary .cart_totals{width:100%!important;float:none!important;padding:24px;border:1px solid #d5dce4;border-radius:3px}.eidim-cart-summary h2{margin:0 0 16px;color:#111;font-size:17px;text-transform:uppercase}.eidim-cart-summary .shop_table{border:0}.eidim-cart-summary th,.eidim-cart-summary td{padding:13px 0!important;border-top:0!important;font-size:13px}.eidim-cart-summary .order-total{border-top:1px solid #d7dde4}.eidim-cart-summary .order-total th,.eidim-cart-summary .order-total td{padding-top:19px!important;font-size:18px}.wc-proceed-to-checkout{padding-bottom:0!important}.wc-proceed-to-checkout .checkout-button{margin:16px 0 10px!important;color:#fff!important;background:#ff4d22!important;border-radius:3px!important;font-size:11px!important;font-weight:800!important;text-transform:uppercase}.eidim-cart-quote-link{display:flex;min-height:40px;align-items:center;justify-content:center;color:#172238;border:1px solid #172238;font-size:10px;font-weight:800;text-decoration:none;text-transform:uppercase}
body.woocommerce-checkout .eidim-checkout-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.85fr);gap:32px;align-items:start}.eidim-checkout-details{min-width:0}.eidim-checkout-section{padding:24px;border:1px solid #d5dce4;border-radius:3px}.eidim-checkout-section>h2{margin:0 0 18px;color:#111;font-size:15px;text-transform:uppercase}.eidim-checkout-section>h2 b{display:inline-grid;width:18px;height:18px;margin-right:7px;place-items:center;border-radius:50%;color:#fff;background:#111;font-size:10px}.eidim-checkout-section .woocommerce-billing-fields>h3{display:none}.eidim-checkout-section .form-row{margin-bottom:12px!important}.eidim-checkout-section label{color:#29384c;font-size:11px;font-weight:800}.eidim-checkout-section .input-text,.eidim-checkout-section select{min-height:40px;border:1px solid #cfd8e1;border-radius:2px}.eidim-order-summary{padding:24px;border:1px solid #d5dce4;border-radius:3px}.eidim-order-summary>h2{margin:0 0 16px;color:#111;font-size:17px;text-transform:uppercase}.eidim-order-summary .checkout_coupon{display:flex;gap:8px;margin:0 0 18px;padding:0 0 18px;border:0;border-bottom:1px solid #d7dde4}.eidim-order-summary .checkout_coupon p:first-child{display:none}.eidim-order-summary .checkout_coupon p.form-row-first{flex:1}.eidim-order-summary .checkout_coupon p.form-row-last,.eidim-order-summary .checkout_coupon p.form-row-first{float:none;width:auto;margin:0}.eidim-order-summary .checkout_coupon .input-text{width:100%;min-height:38px;border:1px solid #cfd8e1}.eidim-order-summary .checkout_coupon .button{min-height:38px;color:#172238;background:#fff;border:1px solid #172238;font-size:10px;font-weight:800;text-transform:uppercase}.eidim-order-summary #order_review{padding:0;border:0}.eidim-order-summary .woocommerce-checkout-review-order-table{border:0!important}.eidim-order-summary .woocommerce-checkout-review-order-table th,.eidim-order-summary .woocommerce-checkout-review-order-table td{padding:11px 0!important;font-size:12px}.eidim-order-summary #payment{background:transparent!important;border-radius:0}.eidim-order-summary #payment ul.payment_methods{padding:0!important;border-bottom:1px solid #d7dde4}.eidim-order-summary #payment div.payment_box{background:#f4f6f8}.eidim-order-summary #place_order{min-height:46px;color:#fff!important;background:#ff4d22!important;border-radius:3px;font-size:11px;font-weight:800;text-transform:uppercase}
@media(max-width:900px){body.woocommerce-cart .woocommerce,body.woocommerce-checkout .woocommerce{width:min(100% - 32px,720px);padding-top:28px}.eidim-cart-page-heading{display:block}.eidim-checkout-progress{margin-top:20px}.eidim-cart-layout,body.woocommerce-checkout .eidim-checkout-layout{grid-template-columns:1fr}.eidim-cart-summary,.eidim-order-summary{margin-top:24px}}@media(max-width:600px){.eidim-cart-form .product-thumbnail,.eidim-cart-form .product-price{display:none}.eidim-cart-form .coupon{display:grid;width:100%}.eidim-cart-form .coupon .input-text{width:100%}.eidim-cart-form .actions>.button{width:100%;margin-top:8px}.eidim-checkout-progress{min-width:0;gap:5px}.eidim-checkout-progress span{min-width:58px}.eidim-checkout-progress em{font-size:8px}}

/* Native WooCommerce Cart: the actual live renderer is a sibling form and
 * totals block, so align those direct children rather than nesting another grid. */
body.woocommerce-cart .eidim-commerce-shell > .woocommerce {
	display: grid !important;
	grid-template-columns: minmax(0, 1.65fr) 360px !important;
	gap: 30px !important;
	align-items: start !important;
}
body.woocommerce-cart .eidim-commerce-shell > .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-cart .eidim-commerce-shell > .woocommerce > .eidim-cart-page-heading { grid-column: 1 / -1 !important; }
body.woocommerce-cart .eidim-commerce-shell > .woocommerce > .woocommerce-cart-form { grid-column: 1 !important; min-width: 0 !important; }
body.woocommerce-cart .eidim-commerce-shell > .woocommerce > .cart-collaterals { grid-column: 2 !important; grid-row: 3 !important; width: 100% !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form__contents { width: 100% !important; table-layout: auto !important; border: 1px solid #d5dce4 !important; border-radius: 3px !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form__contents th,
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form__contents td { padding: 15px 12px !important; border-color: #e4e9ee !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form__product-thumbnail img { width: 94px !important; height: 62px !important; object-fit: contain !important; }
body.woocommerce-cart .eidim-commerce-shell .cart-collaterals .cart_totals { width: 100% !important; float: none !important; padding: 24px !important; border: 1px solid #d5dce4 !important; border-radius: 3px !important; }
body.woocommerce-cart .eidim-commerce-shell .cart-collaterals h2 { margin: 0 0 16px !important; font-size: 17px !important; text-transform: uppercase !important; }
body.woocommerce-cart .eidim-commerce-shell .cart-collaterals .shop_table { border: 0 !important; }
body.woocommerce-cart .eidim-commerce-shell .cart-collaterals th,
body.woocommerce-cart .eidim-commerce-shell .cart-collaterals td { padding: 13px 0 !important; border-top: 0 !important; }
body.woocommerce-cart .eidim-commerce-shell .wc-proceed-to-checkout .checkout-button { background: #ff4d22 !important; color: #fff !important; }

/* Checkout uses its native order review, but its visual structure is now
 * controlled by the EIDIM columns rather than the global Elementor styles. */
body.woocommerce-checkout .eidim-checkout-layout #customer_details { display: block !important; width: 100% !important; }
body.woocommerce-checkout .eidim-checkout-layout #customer_details > .col-1,
body.woocommerce-checkout .eidim-checkout-layout #customer_details > .col-2 { float: none !important; width: 100% !important; max-width: none !important; }
body.woocommerce-checkout .eidim-checkout-layout #customer_details > .col-2 { margin-top: 20px !important; }
body.woocommerce-checkout .eidim-checkout-layout input.input-text,
body.woocommerce-checkout .eidim-checkout-layout select,
body.woocommerce-checkout .eidim-checkout-layout textarea { color: #152238 !important; background: #fff !important; border: 1px solid #cfd8e1 !important; border-radius: 2px !important; box-shadow: none !important; }
body.woocommerce-checkout .eidim-checkout-layout .form-row label { display: block !important; margin-bottom: 6px !important; color: #29384c !important; font-size: 11px !important; font-weight: 800 !important; }
body.woocommerce-checkout .eidim-checkout-layout .woocommerce-shipping-fields,
body.woocommerce-checkout .eidim-checkout-layout .woocommerce-additional-fields { padding: 22px !important; border: 1px solid #d5dce4 !important; border-radius: 3px !important; }
body.woocommerce-checkout .eidim-checkout-layout .woocommerce-shipping-fields h3,
body.woocommerce-checkout .eidim-checkout-layout .woocommerce-additional-fields h3 { margin: 0 0 18px !important; color: #111 !important; font-size: 15px !important; text-transform: uppercase !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-form-coupon-toggle,
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon { margin: 0 0 18px !important; padding: 14px !important; border: 1px solid #d7dde4 !important; background: #f7f9fb !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-info { padding: 0 !important; border: 0 !important; background: transparent !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-checkout-review-order-table,
body.woocommerce-checkout .eidim-order-summary .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .eidim-order-summary .woocommerce-checkout-review-order-table td { border: 0 !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .eidim-order-summary .woocommerce-checkout-review-order-table td { padding: 12px 0 !important; }
body.woocommerce-checkout .eidim-order-summary #payment { margin-top: 16px !important; padding-top: 16px !important; border-top: 1px solid #d7dde4 !important; }
body.woocommerce-checkout .eidim-order-summary #place_order { width: 100% !important; background: #ff4d22 !important; color: #fff !important; }

@media(max-width:900px){body.woocommerce-cart .eidim-commerce-shell > .woocommerce{display:block!important}body.woocommerce-cart .eidim-commerce-shell > .woocommerce>.cart-collaterals{margin-top:24px!important}}

/* Keep the commerce flow clear of the sticky navigation and turn the
 * WooCommerce coupon notice into the compact order-summary coupon row. */
body.woocommerce-cart .eidim-commerce-shell,
body.woocommerce-checkout .eidim-commerce-shell { padding-top: 44px !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-form-coupon-toggle { display: none !important; }
body.woocommerce-checkout .eidim-order-summary .woocommerce-info::before,
body.woocommerce-checkout .eidim-order-summary .woocommerce-message::before { content: none !important; display: none !important; }
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon { display: flex !important; align-items: center !important; gap: 10px !important; margin: 0 0 18px !important; padding: 0 0 18px !important; border: 0 !important; border-bottom: 1px solid #d7dde4 !important; background: transparent !important; }
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon p { float: none !important; width: auto !important; margin: 0 !important; }
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon p.form-row-first { flex: 1 1 auto !important; }
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon .input-text { width: 100% !important; min-height: 38px !important; padding: 0 11px !important; }
body.woocommerce-checkout .eidim-order-summary form.checkout_coupon .button { min-height: 38px !important; padding: 0 15px !important; color: #172238 !important; background: #fff !important; border: 1px solid #172238 !important; border-radius: 2px !important; }

body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form .coupon { display: inline-flex !important; align-items: center !important; gap: 8px !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form .coupon label { display: none !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form .coupon .input-text { width: 160px !important; min-width: 160px !important; min-height: 38px !important; padding: 0 10px !important; }
body.woocommerce-cart .eidim-commerce-shell .woocommerce-cart-form .coupon .button { min-height: 38px !important; white-space: nowrap !important; }

body.woocommerce-checkout .eidim-order-summary #payment div.payment_box { margin: 10px 0 14px !important; padding: 15px !important; background: #f4f6f8 !important; border-radius: 0 !important; }
body.woocommerce-checkout .eidim-order-summary #payment div.payment_box::before { content: none !important; display: none !important; }

/* Checkout validation reloads can reapply WooCommerce's legacy float/width
 * rules. Keep the form and its notices on the same full-width grid. */
body.woocommerce-checkout .eidim-commerce-shell > .woocommerce { display: block !important; width: min(1200px, calc(100% - 48px)) !important; max-width: none !important; }
body.woocommerce-checkout .eidim-commerce-shell > .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-checkout .eidim-commerce-shell > .woocommerce > .woocommerce-error,
body.woocommerce-checkout .eidim-commerce-shell > .woocommerce > .woocommerce-message { display: block !important; width: 100% !important; float: none !important; clear: both !important; margin: 0 0 18px !important; }
body.woocommerce-checkout form.eidim-checkout-layout { display: grid !important; width: 100% !important; max-width: none !important; float: none !important; clear: both !important; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .85fr) !important; }
body.woocommerce-checkout form.eidim-checkout-layout .eidim-checkout-details,
body.woocommerce-checkout form.eidim-checkout-layout .eidim-order-summary { min-width: 0 !important; width: auto !important; }
body.woocommerce-checkout form.eidim-checkout-layout > .woocommerce-NoticeGroup,
body.woocommerce-checkout form.eidim-checkout-layout > .woocommerce-NoticeGroup-checkout,
body.woocommerce-checkout form.eidim-checkout-layout > .woocommerce-error,
body.woocommerce-checkout form.eidim-checkout-layout > .woocommerce-message { grid-column: 1 / -1 !important; width: 100% !important; margin: 0 0 18px !important; }
@media(max-width:900px){body.woocommerce-checkout .eidim-commerce-shell > .woocommerce{width:min(100% - 32px,720px)!important}body.woocommerce-checkout form.eidim-checkout-layout{display:block!important}body.woocommerce-checkout form.eidim-checkout-layout .eidim-order-summary{margin-top:24px!important}}

/* Commerce breadcrumb uses its own top row, matching the product pages. */
.eidim-cart-page-heading { display: block !important; }
.eidim-cart-page-heading .eidim-commerce-breadcrumb { display: block !important; margin: 0 0 16px !important; text-align: left !important; }
.eidim-cart-page-heading .eidim-commerce-breadcrumb a { color: inherit !important; text-decoration: none !important; }
.eidim-cart-page-heading .eidim-commerce-breadcrumb a:hover { color: #ff4d22 !important; text-decoration: underline !important; }
.eidim-commerce-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.eidim-commerce-title-row h1 { margin: 0 !important; }

@media (max-width: 900px) {
	.eidim-commerce-title-row { display: block; }
	.eidim-commerce-title-row .eidim-checkout-progress { margin-top: 20px; }
}


/* =========================================================
   CHECKOUT SELECT FIELD ALIGNMENT FIX
   Country / Region + State
   ========================================================= */
body.woocommerce-checkout .eidim-checkout-layout select,
body.woocommerce-checkout .eidim-checkout-layout .select2-container .select2-selection--single {
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 42px 0 14px !important;
  line-height: 48px !important;
  text-align: left !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

body.woocommerce-checkout .eidim-checkout-layout .select2-container {
  width: 100% !important;
}

body.woocommerce-checkout .eidim-checkout-layout .select2-container .select2-selection--single .select2-selection__rendered {
  display: flex !important;
  align-items: center !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: normal !important;
  text-align: left !important;
  color: #4b4b4b !important;
}

body.woocommerce-checkout .eidim-checkout-layout .select2-container .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  right: 10px !important;
  height: auto !important;
  transform: translateY(-50%) !important;
}

body.woocommerce-checkout .eidim-checkout-layout select {
  color: #4b4b4b !important;
  font-size: 16px !important;
  line-height: normal !important;
  text-align: left !important;
}


/* v3.1.19 — Cart product thumbnails: 80px across WooCommerce checkout/cart. */
#add_payment_method table.cart img,
.woocommerce-cart table.cart img,
.woocommerce-checkout table.cart img {
  width: 80px !important;
  max-width: 80px !important;
  height: auto;
  box-shadow: none !important;
}

/* v3.1.82 — native express wallets below the stable order-review fragment. */
.eidim-checkout-layout .eidim-online-payments { margin: 18px 0 0; border: 1px solid #dce2e9; border-radius: 7px; background: #fff; min-width: 0; }
.eidim-checkout-layout .eidim-online-payments[hidden] { display: none !important; }
.eidim-checkout-layout .eidim-online-payments summary { cursor: pointer; padding: 15px; color: #003a7f; font-size: 15px; font-weight: 700; list-style-position: inside; }
.eidim-checkout-layout .eidim-online-payments summary:focus-visible { outline: 2px solid #003a7f; outline-offset: 2px; }
.eidim-checkout-layout .eidim-online-payments-body { padding: 12px 15px 15px; border-top: 1px solid #e5e9ee; min-width: 0; }
.eidim-checkout-layout .eidim-online-payments #wcpay-express-checkout-button-separator { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; margin: 0 !important; }
body.woocommerce-checkout .eidim-order-summary #payment div.payment_box { border-radius: 6px !important; }
body.woocommerce-checkout .eidim-order-summary #payment .wc-payment-form { border: 0; padding: 0; margin: 0; min-width: 0; }

/* v3.1.84: visual ordering only. Native checkout fragment remains intact. */
body.woocommerce-checkout .eidim-payment-layout { display:flex; flex-direction:column; }
body.woocommerce-checkout .eidim-payment-layout #order_review,
body.woocommerce-checkout .eidim-payment-layout #payment { display:contents !important; }
body.woocommerce-checkout .eidim-payment-layout #payment > * { order:30; }
body.woocommerce-checkout .eidim-payment-layout #payment > ul.payment_methods { order:10; margin:16px 0 0 !important; padding:0 !important; border:0 !important; }
body.woocommerce-checkout .eidim-payment-layout .eidim-online-payments { order:20; margin:12px 0 18px !important; }
body.woocommerce-checkout .eidim-payment-layout #payment > .place-order { order:40; margin:0 !important; padding:16px 0 0 !important; border-top:1px solid #d7dde4; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments { border:1px solid #dce2e9; border-radius:7px; padding:0 !important; overflow:hidden; margin:0 !important; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments > label,
body.woocommerce-checkout .eidim-payment-layout .eidim-online-payments summary { display:flex !important; align-items:center; flex-wrap:wrap; gap:9px; cursor:pointer; padding:14px !important; margin:0 !important; color:#003a7f; font-weight:700; list-style:none; }
body.woocommerce-checkout .eidim-payment-layout .eidim-online-payments summary::-webkit-details-marker { display:none; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments > input[type=radio] { position:absolute !important; opacity:0; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments > label::before,
body.woocommerce-checkout .eidim-payment-layout .eidim-choice-dot { content:''; display:inline-block; flex:0 0 17px; height:17px; border:2px solid #8793a2; border-radius:50%; box-sizing:border-box; background:#fff; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments:not(.eidim-card-collapsed) > label::before,
body.woocommerce-checkout .eidim-payment-layout .eidim-online-payments[open] .eidim-choice-dot { border-color:#003a7f; box-shadow:inset 0 0 0 4px #003a7f; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments.eidim-card-collapsed > .payment_box { display:none !important; }
body.woocommerce-checkout .eidim-payment-layout li.payment_method_woocommerce_payments > input:focus-visible + label { outline:2px solid #003a7f; outline-offset:-2px; }
body.woocommerce-checkout .eidim-payment-layout .eidim-online-payments summary:focus-visible { outline-offset:-2px; }
