/* Checkout layout + free-shipping bar. The form fields themselves are styled by the theme's woocommerce.css. */
.dm-checkout h3, .dm-checkout .dm-checkout-title { margin: 0 0 20px; color: #242424; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.dm-checkout .col2-set { display: block; }
.dm-checkout .col2-set .col-1, .dm-checkout .col2-set .col-2 { inline-size: 100%; float: none; }
.dm-checkout-box { margin-block-end: 20px; }
.woocommerce-checkout-review-order-table { inline-size: 100%; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 10px 0; border-block-end: 1px solid var(--dm-line, rgba(129, 129, 129, .2)); text-align: start; font-size: 14px; }
.woocommerce-checkout-review-order-table tfoot th { color: #242424; font-weight: 600; }
.woocommerce-checkout-review-order-table .order-total td, .woocommerce-checkout-review-order-table .order-total th { font-size: 16px; font-weight: 700; border-block-end: 0; }
.woocommerce-checkout-review-order-table .product-name { color: #333; }
.dm-checkout-payment .wc_payment_methods { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.dm-checkout-payment .wc_payment_method { padding: 12px 15px; border: 1px solid var(--dm-line, rgba(129, 129, 129, .2)); border-radius: 12px; background: #fff; }
.dm-checkout-payment .wc_payment_method > label { font-weight: 600; color: #242424; cursor: pointer; }
.dm-checkout-payment .payment_box { margin-block-start: 10px; padding: 10px; border-radius: 8px; background: #f7f7f7; font-size: 13px; color: #555; }
.dm-checkout-payment #place_order { inline-size: 100%; min-block-size: 48px; margin-block-start: 6px; }
.woocommerce-terms-and-conditions-wrapper { margin-block-end: 15px; font-size: 13px; }

.dm-ship-bar { margin-block-end: 20px; padding: 14px 16px; border-radius: 12px; background: #fcfcfc; }
.dm-ship-bar__msg { margin-block-end: 10px; color: #333; font-size: 14px; font-weight: 600; line-height: 1.5; }
.dm-ship-bar__track { block-size: 6px; border-radius: 6px; background: #eee; overflow: hidden; }
.dm-ship-bar__fill { display: block; block-size: 100%; border-radius: inherit; background: var(--dm-orange, #fd8d1f); transition: inline-size .4s ease; }
.dm-ship-bar.is-complete .dm-ship-bar__fill { background: #4aa25a; }

/* ------------------------------------------------------------------ review lines: thumbnail + stepper + remove */
.woocommerce-checkout-review-order-table .product-name { padding-inline-end: 12px; font-size: 0; line-height: 0; } /* the template prints a stray nbsp next to the line */
.dm-co-item { display: flex; align-items: center; gap: 12px; }
.dm-co-item__thumb { flex: none; display: block; inline-size: 64px; block-size: 64px; border-radius: var(--dm-r-md, 12px); background: #f4f4f4; overflow: hidden; }
.dm-co-item__thumb img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dm-co-item__body { display: grid; gap: 8px; min-inline-size: 0; }
.dm-co-item__name { color: #242424; font-size: 14px; font-weight: 600; line-height: 1.6; }
.dm-co-item__tools { display: flex; align-items: center; gap: 10px; transition: opacity .2s ease; }
.dm-co-item__tools.is-busy, .dm-co-qty.is-busy { opacity: .5; pointer-events: none; }
.dm-co-qty { display: inline-flex; align-items: stretch; block-size: 32px; border: 1px solid var(--dm-line, rgba(129, 129, 129, .2)); border-radius: var(--dm-r-pill, 35px); background: #fff; overflow: hidden; }
.dm-co-qty__btn { inline-size: 30px; padding: 0; border: 0; background: transparent; color: #767676; font-size: 16px; line-height: 1; cursor: pointer; }
.dm-co-qty__btn:hover { color: var(--dm-orange, #fd8d1f); }
.dm-co-qty__input { inline-size: 36px; padding: 0; border: 0; background: transparent; color: #242424; font-size: 13px; font-weight: 600; text-align: center; appearance: textfield; -moz-appearance: textfield; box-shadow: none; block-size: auto; }
.dm-co-qty__input::-webkit-outer-spin-button, .dm-co-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dm-co-qty-fixed { color: #767676; font-size: 13px; }
.dm-co-remove { display: grid; place-items: center; inline-size: 30px; block-size: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #9e9e9e; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.dm-co-remove:hover { background: #fdecec; color: #d9534f; }
.woocommerce-checkout-review-order-table td.product-total { white-space: nowrap; font-weight: 600; vertical-align: middle; }
.woocommerce-checkout-review-order-table thead th { padding-block: 0 12px; color: #767676; font-size: 13px; font-weight: 600; }
@media (max-width: 480px) { .dm-co-item__thumb { inline-size: 54px; block-size: 54px; } }
.woocommerce-checkout-review-order-table td.product-total { inline-size: 1%; }
.woocommerce-checkout-review-order-table tfoot td { text-align: end; }

/* ------------------------------------------------------------------ cart page (wd_cart_table + wd_cart_totals) */
.dm-cart { padding-block: 10px 40px; }
.woocommerce table.shop_table.woocommerce-cart-form__contents { inline-size: 100%; border: 0; border-radius: 0; border-collapse: collapse; overflow: visible; }
.woocommerce table.shop_table.woocommerce-cart-form__contents thead th { background: transparent; }
.woocommerce .dm-cart-totals table.shop_table { border: 0; border-radius: 0; overflow: visible; }
.woocommerce table.shop_table.woocommerce-cart-form__contents th { padding: 15px 10px; border-block-end: 2px solid rgba(0, 0, 0, .075); color: #242424; font-family: var(--dm-font-strong); font-size: 16px; font-weight: 600; line-height: 1.4; text-align: start; }
.woocommerce table.shop_table.woocommerce-cart-form__contents td { padding: 15px 10px; border-block-end: 1px solid rgba(0, 0, 0, .106); color: #767676; font-size: 16px; line-height: 1.4; vertical-align: middle; }
.woocommerce-cart-form__contents td.product-name { text-align: start; }
.woocommerce-cart-form__contents td.product-name a { color: #333; font-weight: 500; }
.woocommerce-cart-form__contents td.product-name a:hover { color: var(--dm-orange, #fd8d1f); }
.woocommerce-cart-form__contents td.product-subtotal { text-align: end; }
.woocommerce-cart-form__contents td.product-subtotal .amount { color: var(--dm-orange, #fd8d1f); font-weight: 600; }
.woocommerce-cart-form__contents .product-remove { inline-size: 40px; padding-inline: 0 !important; text-align: center; }
.woocommerce-cart-form__contents .product-remove a.remove { display: inline-flex; align-items: center; justify-content: center; inline-size: 30px; block-size: 30px; border-radius: 50%; color: #333; font-size: 22px; line-height: 1; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.woocommerce-cart-form__contents .product-remove a.remove:hover { background: #fdecec; color: #d9534f; }
.woocommerce-cart-form__contents .product-thumbnail { inline-size: 100px; }
.woocommerce-cart-form__contents .product-thumbnail img { display: block; inline-size: 80px; block-size: 80px; border-radius: 13px; object-fit: cover; }
.woocommerce-cart-form__contents td.actions { padding-inline: 0; border-block-end: 0; }
.woocommerce-cart-form__contents .quantity { display: inline-flex; align-items: stretch; block-size: 42px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 30px; overflow: hidden; }
.woocommerce-cart-form__contents .quantity .btn { inline-size: 28px; padding: 0 5px; border: 0; background: transparent; color: #767676; font-size: 14px; cursor: pointer; }
.woocommerce-cart-form__contents .quantity .btn:hover { color: var(--dm-orange, #fd8d1f); }
.woocommerce-cart-form__contents .quantity input.qty { inline-size: 36px; block-size: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: #333; font-size: 14px; text-align: center; box-shadow: none; appearance: textfield; -moz-appearance: textfield; }
.woocommerce-cart-form__contents .quantity input.qty::-webkit-outer-spin-button, .woocommerce-cart-form__contents .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cart-actions .coupon { display: flex; flex-wrap: wrap; gap: 10px; }
.cart-actions .coupon .input-text { inline-size: 230px; block-size: 42px; padding: 0 15px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 30px; background: transparent; font-size: 14px; }
.cart-actions .coupon .button, .dm-cart-update { min-block-size: 42px; padding: 5px 20px; }
.dm-cart-update[disabled] { display: none; }
.dm-cart-totals .cart_totals h2 { margin: 0 0 15px; color: #242424; font-family: var(--dm-font-strong); font-size: 22px; font-weight: 600; line-height: 1.4; }
.dm-cart-totals.text-left .cart_totals h2 { text-align: left; }
.dm-cart-totals.text-center .cart_totals h2 { text-align: center; }
.dm-cart-totals.text-right .cart_totals h2 { text-align: right; }
.dm-cart-totals .shop_table { inline-size: 100%; margin: 0 0 15px; border: 0; border-collapse: collapse; }
.dm-cart-totals .shop_table tr { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding-block: 12px; border-block-end: 1px solid var(--dm-line, rgba(129, 129, 129, .2)); }
.dm-cart-totals .shop_table tr:last-child { border-block-end: 0; }
.woocommerce .dm-cart-totals table.shop_table th, .woocommerce .dm-cart-totals table.shop_table td { display: block; padding: 0; border: 0; background: transparent; font-size: 16px; line-height: 1.4; }
.dm-cart-totals .shop_table th { color: #242424; font-family: var(--dm-font-strong); font-weight: 600; text-align: start; }
.dm-cart-totals .shop_table td { color: #767676; text-align: end; }
.dm-cart-totals .shop_table tr.shipping td, .dm-cart-totals .shop_table tr.woocommerce-shipping-totals td { flex: 1 1 100%; text-align: start; }
.dm-cart-totals .shop_table tr.order-total td .amount { color: var(--dm-orange, #fd8d1f); font-size: 20.8px; font-weight: 600; }
.dm-cart-totals .shop_table tr.order-total td small { display: block; color: #767676; font-size: 12px; }
.dm-cart-totals .wc-proceed-to-checkout { display: block; margin-block-start: 6px; }
.dm-cart-totals .wc-proceed-to-checkout .checkout-button { display: flex; align-items: center; justify-content: center; inline-size: 100%; min-block-size: 46px; padding: 5px 24px; margin: 0; text-align: center; box-sizing: border-box; }
.dm-cart-totals .wc-proceed-to-checkout .checkout-button br { display: none; }
.dm-cart-placeholder { padding: 24px; border: 1px dashed var(--dm-line, rgba(129, 129, 129, .4)); border-radius: var(--dm-r-md, 12px); color: #767676; text-align: center; }
.dm-cart .cart-empty { padding: 40px 20px 10px; color: #242424; font-size: 18px; font-weight: 600; text-align: center; }
.dm-cart .return-to-shop { text-align: center; }

@media (max-width: 767px) {
	.woocommerce table.shop_table.woocommerce-cart-form__contents, .woocommerce table.shop_table.woocommerce-cart-form__contents tbody { display: block; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents thead { display: none; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: 16px 0; border-block-end: 1px solid rgba(0, 0, 0, .106); }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td { display: block; padding: 0; border: 0; text-align: start; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-thumbnail { grid-column: 1; grid-row: 1 / span 3; inline-size: auto; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-name { grid-column: 2; padding-inline-end: 34px; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-quantity { grid-column: 2; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-subtotal { grid-column: 2; text-align: start; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-price { display: none; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.cart_item td.product-remove { position: absolute; inset-block-start: 10px; inset-inline-end: 0; inline-size: auto; }
	.woocommerce table.shop_table.woocommerce-cart-form__contents tr.dm-cart-action-row, .woocommerce table.shop_table.woocommerce-cart-form__contents tr.dm-cart-action-row td { display: block; padding-inline: 0; }
	.cart-actions .coupon { flex: 1 1 100%; flex-wrap: nowrap; }
	.cart-actions .coupon .input-text { flex: 1 1 auto; min-inline-size: 0; inline-size: auto; }
}

/* review table on narrow screens: stacked rows so nothing is wider than the column */
.dm-co-item__tools { flex-wrap: wrap; }
@media (max-width: 520px) {
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table, .woocommerce-checkout-review-order-table thead, .woocommerce-checkout-review-order-table tbody, .woocommerce-checkout-review-order-table tfoot { display: block; inline-size: 100%; }
	.woocommerce-checkout-review-order-table thead { display: none; }
	.woocommerce-checkout-review-order-table tbody tr, .woocommerce-checkout-review-order-table tfoot tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 12px; padding: 10px 14px; border-block-end: 1px solid var(--dm-line, rgba(129, 129, 129, .2)); }
	.woocommerce table.shop_table.woocommerce-checkout-review-order-table th, .woocommerce table.shop_table.woocommerce-checkout-review-order-table td { display: block; inline-size: auto; padding: 0; border: 0; text-align: start; }
	.woocommerce-checkout-review-order-table tfoot td { text-align: end; }
	.woocommerce-checkout-review-order-table tfoot tr.shipping td, .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td { grid-column: 1 / -1; text-align: start; }
	.woocommerce-checkout-review-order-table td.product-total { inline-size: auto; }
	.woocommerce-checkout-review-order-table tfoot tr:last-child { border-block-end: 0; }
}
