/* Cart page + checkout: like the live site (Elementor Woo Cart / Checkout widgets + Custom Code 127241, 127247, 127250).
   Markup is the standard WooCommerce shortcode markup. Prefix bmk- for theme-only wrappers. */

.bmk-main { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; box-sizing: border-box; color: #333; }
.bmk-checkout { max-width: 1400px; }
.bmk-main .woocommerce { direction: rtl; }
.bmk-main a { color: #6b21a8; }

/* ---------- shared buttons (Elementor kit styled every button purple/round on the live site) ---------- */
.bmk-main .button, .bmk-main button.button {
	background: #fff;
	color: #000;
	border: 2px solid #3b3b3b;
	border-radius: 3px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: none;
	cursor: pointer;
}
.bmk-main .button:hover, .bmk-main button.button:hover { background: #3b3b3b; color: #fff; }
.bmk-main .button:disabled, .bmk-main .button[disabled] { opacity: .5; cursor: default; }

/* ---------- cart: two boxes side by side ---------- */
.bmk-cart .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
	gap: 24px;
	align-items: start;
}
.bmk-cart .woocommerce > .woocommerce-notices-wrapper,
.bmk-cart .woocommerce > .wc-empty-cart-message,
.bmk-cart .woocommerce > .cart-empty,
.bmk-cart .woocommerce > .return-to-shop,
.bmk-cart .woocommerce > .woocommerce-message,
.bmk-cart .woocommerce > .woocommerce-info,
.bmk-cart .woocommerce > .woocommerce-error { grid-column: 1 / -1; }
.bmk-cart .woocommerce-cart-form { grid-column: 1; }
.bmk-cart .cart-collaterals { grid-column: 2; width: auto; }
.bmk-cart .cart-collaterals .cart_totals { width: 100%; float: none; }

.bmk-cart .woocommerce-cart-form,
.bmk-cart .cart-collaterals {
	border: 1px solid #d5d8dc;
	border-radius: 3px;
	padding: 16px 24px;
	background: #fff;
	box-sizing: border-box;
}

.bmk-cart table.shop_table { width: 100%; border: 0; border-collapse: collapse; margin: 0; font-size: 14.4px; }
.bmk-cart table.shop_table th { font-size: 14px; font-weight: 700; color: #000; padding: 0 0 8px 20px; border: 0; text-align: right; background: none; }
.bmk-cart table.shop_table td { padding: 20px 0; border: 0; border-top: 1px solid #d5d8dc; vertical-align: middle; background: none; }
.bmk-cart table.shop_table tr:first-child td { border-top: 0; }
.bmk-main table.shop_table_responsive tr td, .bmk-main table.shop_table tr:nth-child(2n) td { background: transparent !important; } /* WooCommerce zebra stripes on phones */
.bmk-cart td.product-thumbnail { width: 100px; }
.bmk-cart td.product-thumbnail img { width: 90px !important; max-width: 90px !important; height: auto !important; border-radius: 8px; display: block; }
.bmk-cart td.product-name a { color: #212121; text-decoration: none; }
.bmk-cart td.product-name a:hover { color: #6b21a8; }
.bmk-cart td.product-name dl.variation { margin: 4px 0 0; font-size: 13px; color: #555; }
.bmk-cart td.product-subtotal, .bmk-cart th.product-subtotal { white-space: nowrap; }
.bmk-cart td.product-remove a.remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: 20px;
	font-weight: 700;
	color: #000 !important;
	text-decoration: none;
	border-radius: 50%;
	background: none;
}
.bmk-cart td.product-remove a.remove:hover { background: #111; color: #fff !important; }
.bmk-main .quantity .qty { width: 48px; min-height: 32px; text-align: center; border: 1px solid #ccc; border-radius: 3px; }

/* actions row: "עדכן עגלה" + coupon behind a link (live: "יש לך קוד קופון? לחצו כאן") */
.bmk-cart td.actions { padding-top: 16px; text-align: left; }
.bmk-cart td.actions .coupon { display: flex; gap: 8px; align-items: center; float: right; flex-wrap: wrap; }
.bmk-cart td.actions .coupon label { display: none; }
.bmk-cart td.actions .coupon .input-text { width: 170px; min-height: 44px; padding: 7px 10px; border: 1px solid rgba(32, 7, 7, .8); border-radius: 4px; font-size: 14px; }
.bmk-cart td.actions .coupon.bmk-cp-hidden { display: none; }
.bmk-main .bmk-cp-toggle {
	display: block;
	background: none;
	border: 0;
	padding: 4px 0;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: #6b21a8;
	text-decoration: underline;
	cursor: pointer;
	box-shadow: none;
	min-height: 0;
	float: right;
	clear: both;
}
.bmk-main .bmk-cp-toggle:hover { background: none; color: #1f1530; }
.bmk-cart td.actions button[name="update_cart"] { float: left; }

/* totals box */
.bmk-cart .cart_totals h2 { font-size: 14px; font-weight: 700; color: #000; margin: 0 0 16px; padding: 0; }
/* rows: label right, amount left; shipping: label on top, options full width (like the live widget) */
.bmk-cart .cart_totals table.shop_table, .bmk-cart .cart_totals table.shop_table tbody { display: block; }
.bmk-cart .cart_totals table.shop_table tr { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-top: 1px solid #eee; }
.bmk-cart .cart_totals table.shop_table tr:first-child { border-top: 0; }
.bmk-cart .cart_totals table.shop_table th { display: block; width: auto; padding: 10px 0; border: 0; }
.bmk-cart .cart_totals table.shop_table td { display: block; width: auto; padding: 10px 0; border: 0; text-align: left; }
.bmk-cart .cart_totals table.shop_table td::before { display: none; }
.bmk-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals { display: block; }
.bmk-cart .cart_totals table.shop_table tr.woocommerce-shipping-totals td { text-align: right; padding-top: 0; }
.bmk-cart .cart_totals .order-total .amount { font-size: 16px; font-weight: 800; color: #1f1530; }
.bmk-cart tr.fee th, .bmk-cart tr.fee td { color: #be185d; }

/* shipping methods + notes (live: 127250) */
.bmk-main ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.bmk-main ul#shipping_method li { margin: 0 0 8px; line-height: 1.4; }
.bmk-main ul#shipping_method li label { font-weight: 600; color: #1f1530; }
.bmk-main .bm-ship-note { display: block; font-size: 12px; line-height: 1.4; color: #69727d; margin: 2px 22px 0 0; }
.bmk-main .woocommerce-shipping-destination { font-size: 13px; color: #69727d; }

/* checkout button + payment chips + Google reviews (live: 127241 + snippet 44 black button) */
.bmk-cart .wc-proceed-to-checkout { padding: 16px 0 0; }
.bmk-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	min-height: 56px;
	padding: 12px 16px;
	margin: 0;
	background: #111;
	color: #fff !important;
	border: 0;
	border-radius: 10px;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(255, 107, 0, .25);
}
.bmk-cart .wc-proceed-to-checkout a.checkout-button:hover { background: #333; }
.bm-cart-pay { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: #555; }
.bm-cart-pay .bm-pay-t { flex: 0 0 100%; text-align: center; margin: 0 0 2px; }
.bm-cart-pay b { font-size: 11px; font-weight: 700; color: #222; background: #fff; border: 1px solid #ddd; border-radius: 6px; padding: 3px 7px; }
.bm-cart-trust { background: #faf7fe; border: 1px solid #e4d7f3; border-radius: 12px; padding: 12px; margin: 12px 0 0; text-align: center; font-size: 14px; color: #1f1530; }
.bm-ct-score { font-size: 15px; font-weight: 800; color: #6b21a8; }
.bm-ct-stars { color: #f5a623; }
.bm-ct-q { margin: 8px 0 0; }
.bm-ct-q span { display: block; font-size: 12px; color: #666; }

/* "משלימים את הלוק 👇" (live: 127241, before the totals) */
.bm-cart-upsell { background: #f6f0fc; border-radius: 12px; padding: 14px 12px; margin: 0 0 20px; text-align: center; }
.bm-cart-upsell h3 { font-size: 17px; font-weight: 800; color: #6b21a8; margin: 0 0 10px; }
.bm-cu-row { display: flex; justify-content: center; gap: 10px; }
.bm-cu-row a { flex: 0 1 72px; display: flex; flex-direction: column; align-items: center; font-size: 13px; font-weight: 700; color: #1f1530 !important; text-decoration: none; }
.bm-cu-row img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid #fff; object-fit: cover; margin: 0 0 6px; background: #fff; box-shadow: 0 2px 8px rgba(107, 33, 168, .15); }
.bm-cu-row a:hover img { border-color: #6b21a8; }

/* empty cart */
.bmk-cart .cart-empty { font-size: 18px; text-align: center; padding: 30px 0 10px; border: 0; background: none; }
.bmk-cart .return-to-shop { text-align: center; }
.bmk-cart .return-to-shop .button { background: #111; color: #fff; border: 0; border-radius: 12px; padding: 14px 28px; font-weight: 800; }

/* ---------- checkout ---------- */
.checkout-timer-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: baseline;
	gap: 2px 6px;
	text-align: center;
	background: #f6f0fc;
	border: 1px solid #e4d7f3;
	border-radius: 12px;
	padding: 10px 12px;
	margin: 0 0 14px;
	color: #6b21a8;
}
.checkout-timer-container .timer-label { font-size: 15px; font-weight: 700; }
.checkout-timer-container #timer-countdown-display { font-size: 19px; font-weight: 800; letter-spacing: 1px; color: #6b21a8; }
.checkout-timer-container .timer-note { flex: 0 0 100%; font-size: 13px; color: #555; }

.bmk-checkout .woocommerce-form-coupon-toggle .woocommerce-info,
.bmk-checkout .checkout_coupon {
	border: 1px solid #d5d8dc;
	border-radius: 3px;
	background: #fff;
	padding: 14px 24px;
	margin: 0 0 16px;
	color: #69727d;
	font-size: 14px;
	list-style: none;
}
.bmk-checkout .woocommerce-form-coupon-toggle .woocommerce-info::before { display: none; }
.bmk-checkout .checkout_coupon p:first-child { margin: 0 0 8px; }
.bmk-checkout .checkout_coupon .form-row { display: inline-block; margin: 0 0 0 8px; }

.bmk-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.33fr) minmax(0, 1fr);
	gap: 0 24px;
	align-items: start;
}
.bmk-checkout form.checkout > .woocommerce-NoticeGroup,
.bmk-checkout form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.bmk-checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; }
.bmk-checkout #order_review_heading { grid-column: 2; grid-row: 2; }
.bmk-checkout #order_review { grid-column: 2; grid-row: 3; }
.bmk-checkout #customer_details .col-1,
.bmk-checkout #customer_details .col-2 { width: 100%; float: none; max-width: none; }

.bmk-checkout .woocommerce-billing-fields,
.bmk-checkout .woocommerce-shipping-fields:not(:empty),
.bmk-checkout .woocommerce-additional-fields {
	border: 1px solid #d5d8dc;
	border-radius: 3px;
	padding: 16px 30px 24px;
	margin: 0 0 24px;
	background: #fff;
}
.bmk-checkout .woocommerce-shipping-fields:has(> h3 > #ship-to-different-address) { padding-bottom: 10px; }
.bmk-checkout h3 { font-size: 14px; font-weight: 700; color: #000; margin: 0 0 24px; }
.bmk-checkout #order_review_heading {
	border: 1px solid #d5d8dc;
	border-bottom: 0;
	border-radius: 3px 3px 0 0;
	padding: 16px 30px 0;
	margin: 0;
	background: #fff;
}
.bmk-checkout .woocommerce-checkout-review-order-table {
	width: 100%;
	border: 1px solid #d5d8dc;
	border-top: 0;
	border-radius: 0 0 3px 3px;
	border-collapse: separate;
	border-spacing: 0;
	padding: 0 30px 16px;
	margin: 0 0 24px;
	background: #fff;
	box-sizing: border-box;
	font-size: 14px;
}
.bmk-checkout .woocommerce-checkout-review-order-table th { font-weight: 800; color: #6b21a8; padding: 10px 6px; text-align: right; border: 0; border-top: 1px solid #eee; background: none; }
.bmk-checkout .woocommerce-checkout-review-order-table td { color: #000; padding: 10px 6px; border: 0; border-top: 1px solid #eee; background: none; }
.bmk-checkout .woocommerce-checkout-review-order-table thead th { border-top: 0; }
.bmk-checkout .woocommerce-checkout-review-order-table .product-total,
.bmk-checkout .woocommerce-checkout-review-order-table tfoot td { text-align: left; }
.bmk-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { text-align: right; }
.bmk-checkout .woocommerce-checkout-review-order-table .order-total .amount { font-size: 18px; font-weight: 900; color: #1f1530; }
.bmk-checkout .woocommerce-checkout-review-order-table tr.fee th,
.bmk-checkout .woocommerce-checkout-review-order-table tr.fee td { color: #be185d; }

.bmk-checkout .form-row { margin: 0 0 14px; padding: 0; }
.bmk-checkout .form-row label { display: block; font-size: 14px; color: #69727d; margin: 0 0 3px; line-height: 1.6; }
.bmk-checkout .form-row label.checkbox, .bmk-checkout .form-row label.woocommerce-form__label-for-checkbox { display: flex; gap: 8px; align-items: flex-start; }
.bmk-checkout .form-row .required { color: #e02b27; text-decoration: none; }
.bmk-checkout .form-row-first, .bmk-checkout .form-row-last { width: calc(50% - 8px); float: right; }
.bmk-checkout .form-row-last { float: left; }
.bmk-checkout .form-row-wide, .bmk-checkout .notes { clear: both; }
.bmk-checkout .woocommerce-billing-fields__field-wrapper::after,
.bmk-checkout .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.bmk-checkout input.input-text,
.bmk-checkout textarea,
.bmk-checkout select,
.bmk-checkout .select2-container .select2-selection--single {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	font-size: 14px;
	color: #333;
	background: #f9fafa;
	border: 0;
	border-radius: 0;
	box-sizing: border-box;
}
.bmk-checkout textarea { min-height: 90px; }
.bmk-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 24px; padding: 0; }
.bmk-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; left: 8px; right: auto; }
.bmk-checkout input.input-text:focus, .bmk-checkout textarea:focus { outline: 2px solid #6b21a8; outline-offset: 0; }
.bmk-checkout .woocommerce-invalid input.input-text { box-shadow: inset 0 0 0 1px #e02b27; }

/* payment box */
.bmk-checkout #payment {
	background: #fff;
	border: 1px solid #d5d8dc;
	border-radius: 3px;
	padding: 16px 30px;
	margin: 0 0 24px;
	font-size: 14px;
	color: #69727d;
}
.bmk-checkout #payment ul.payment_methods { list-style: none; margin: 0; padding: 0 0 12px; border: 0; }
.bmk-checkout #payment ul.payment_methods li { margin: 0 0 8px; }
.bmk-checkout #payment ul.payment_methods li > label { font-weight: 700; color: #1f1530; }
.bmk-checkout #payment ul.payment_methods li img { max-height: 28px; vertical-align: middle; margin: 0 8px; display: inline-block; }
.bmk-checkout #payment div.payment_box { background: #f9fafa; color: #555; padding: 12px 16px; margin: 10px 0 0; border-radius: 3px; font-size: 13px; }
.bmk-checkout #payment div.payment_box::before { display: none; }
.bmk-checkout .woocommerce-terms-and-conditions-wrapper { margin: 0 0 12px; }
.bmk-checkout #payment .place-order { padding: 0; margin: 0; }
.bmk-checkout #place_order {
	display: block;
	width: 100%;
	min-height: 54px;
	padding: 14px 18px;
	background: #ff6b00;
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 800;
	box-shadow: 0 4px 14px rgba(255, 107, 0, .3);
	cursor: pointer;
	float: none;
}
.bmk-checkout #place_order:hover, .bmk-checkout #place_order:focus-visible { background: #e65f00; color: #fff; }

/* black self-pickup bar under the form (live: Elementor heading) */
.bmk-pickup {
	background: #000;
	color: #fff;
	border-radius: 20px;
	padding: 10px 20px;
	margin: 0 0 24px;
	text-align: center;
	font-size: 15px;
	clear: both;
}
@media (min-width: 768px) {
	.bmk-pickup { width: calc((100% - 24px) * 1.33 / 2.33); margin-right: 0; margin-left: auto; box-sizing: border-box; }
}

/* thank you page */
.bmk-checkout .woocommerce-order { max-width: 760px; margin: 0 auto; }
.bmk-checkout .woocommerce-thankyou-order-received { font-size: 20px; font-weight: 800; color: #15803d; text-align: center; margin: 10px 0 20px; }
.bmk-checkout ul.woocommerce-order-overview { list-style: none; padding: 16px; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; border: 1px solid #d5d8dc; border-radius: 3px; }
.bmk-checkout ul.woocommerce-order-overview li { font-size: 13px; color: #69727d; }
.bmk-checkout ul.woocommerce-order-overview li strong { display: block; font-size: 15px; color: #1f1530; }
.bmk-checkout .woocommerce-order-details table, .bmk-checkout .woocommerce-customer-details address { width: 100%; border: 1px solid #d5d8dc; border-radius: 3px; padding: 12px; box-sizing: border-box; }

/* ---------- phone ---------- */
@media (max-width: 767px) {
	.bmk-main { padding: 16px 12px 32px; }
	.bmk-cart .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.bmk-cart .woocommerce-cart-form, .bmk-cart .cart-collaterals { grid-column: 1; padding: 14px 12px; }

	.bmk-cart table.shop_table thead { display: none; }
	.bmk-cart table.shop_table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 80px minmax(0, 1fr) auto;
		grid-template-areas: "img name rm" "img price price" "img qty sub";
		gap: 6px 12px;
		padding: 16px 0;
		border-top: 1px solid #d5d8dc;
		align-items: center;
	}
	.bmk-cart table.shop_table.cart tr.cart_item:first-child { border-top: 0; padding-top: 4px; }
	.bmk-cart table.shop_table.cart tr.cart_item td { display: block; padding: 0; border: 0; text-align: right !important; }
	.bmk-cart table.shop_table.cart tr.cart_item td::before { display: none; }
	.bmk-cart tr.cart_item td.product-thumbnail { grid-area: img; width: auto; display: block !important; }
	.bmk-cart tr.cart_item td.product-thumbnail img { width: 80px !important; max-width: 80px !important; }
	.bmk-cart tr.cart_item td.product-name { grid-area: name; font-weight: 700; font-size: 14px; }
	.bmk-cart tr.cart_item td.product-remove { grid-area: rm; align-self: start; }
	.bmk-cart tr.cart_item td.product-price { grid-area: price; font-size: 14px; }
	.bmk-cart tr.cart_item td.product-quantity { grid-area: qty; }
	.bmk-cart tr.cart_item td.product-subtotal { grid-area: sub; font-size: 14px; text-align: left !important; }
	.bmk-cart table.shop_table.cart tr:not(.cart_item) { display: block; }
	.bmk-cart table.shop_table.cart tr:not(.cart_item) td { display: block; border-top: 1px solid #d5d8dc; }
	.bmk-cart td.actions .coupon { float: none; width: 100%; margin: 0 0 10px; }
	.bmk-cart td.actions .coupon .input-text { flex: 1; width: auto; }
	.bmk-cart td.actions button[name="update_cart"] { float: none; width: 100%; }
	.bmk-main .bmk-cp-toggle { float: none; }

	.bmk-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.bmk-checkout #customer_details, .bmk-checkout #order_review_heading, .bmk-checkout #order_review { grid-column: 1; grid-row: auto; }
	.bmk-checkout .woocommerce-billing-fields, .bmk-checkout .woocommerce-shipping-fields:not(:empty), .bmk-checkout .woocommerce-additional-fields { padding: 14px 14px 18px; }
	.bmk-checkout #order_review_heading { padding: 14px 14px 0; }
	.bmk-checkout .woocommerce-checkout-review-order-table { padding: 0 14px 12px; }
	.bmk-checkout #payment { padding: 14px; }
	.bmk-checkout .form-row-first, .bmk-checkout .form-row-last { width: 100%; float: none; }
}

/* ---------- Cart page − / + (assets/js/qty.js, replaces Qty Increment Buttons) - Tolik 21.10 ---------- */
.woocommerce-cart-form .qib-container { display: inline-flex; align-items: center; height: 40px; border: 1.5px solid #DDD; border-radius: 10px; overflow: hidden; background: #fff; direction: ltr; }
.woocommerce-cart-form .qib-container .quantity { margin: 0; }
.woocommerce-cart-form .qib-container .quantity input.qty { width: 40px; height: 38px; border: 0; padding: 0; text-align: center; font-weight: 700; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.woocommerce-cart-form .qib-container .quantity input.qty::-webkit-outer-spin-button,
.woocommerce-cart-form .qib-container .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.woocommerce-cart-form .qib-container .qib-button { width: 34px; height: 38px; border: 0; padding: 0; background: #F6F0FC; color: #6B21A8; font-size: 18px; font-weight: 700; line-height: 1; cursor: pointer; }
.woocommerce-cart-form .qib-container .qib-button:hover { background: #EDE3F8; }
