/* ==========================================================================
   Side Cart WooCommerce (Drawer & Footer buttons)
   ========================================================================== */
a.xoo-wsc-ft-btn-checkout .amount:before {
    content: none;
}

a.xoo-wsc-ft-btn-checkout .amount:after {
    content: "-";
    margin: 0 8px;
    font-weight: bold;
}
a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-checkout .amount {
    direction: ltr;
}

a.xoo-wsc-ft-btn, a.xoo-wsc-ft-btn:hover, .xoo-wsc-container .xoo-wsc-btn, .xoo-wsc-container .xoo-wsc-btn:hover {
    text-decoration: none;
}
a.xoo-wsc-ft-btn, .xoo-wsc-container .xoo-wsc-btn {
    display: flex
;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    justify-self: center;
    padding: 5px;
    width: 100%;
}
.xoo-wsc-footer, .xoo-wsc-footer a, .xoo-wsc-footer .amount {
    font-size: 17px;
}
.xoo-wsc-markup a {
    text-decoration: none;
}
.xoo-wsc-modal * {
    box-sizing: border-box;
}
.xoo-wsc-ft-buttons-cont {
    display: grid
;
    text-align: center;
    grid-column-gap: 5px;
    grid-row-gap: 5px;
}
.xoo-wsc-footer {
    background-color: #ffffff;
    color: #000000;
    padding: 10px 20px;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.05);
}
.xoo-wsc-markup *::-webkit-scrollbar {
    width: 8px;
}
.xoo-wsc-markup *::-webkit-scrollbar-thumb {
    border-radius: 50px;
    background: #d1d1d1;
}
a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-cart, 
a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-checkout, 
a.xoo-wsc-ft-btn.xoo-wsc-ft-btn-continue {
    background: var(--ps-color-primary);
	color: #ffffff;
}

/* ==========================================================================
   WPC Smart Quick View Modal Styling
   ========================================================================== */
.woosq-popup,
#woosq-popup {
	max-width: 980px !important;
	width: 92% !important;
	max-height: 90vh !important;
	min-height: 560px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25) !important;
	direction: rtl !important;
	text-align: right !important;
}

.woosq-product > .product {
	display: flex !important;
	height: 100% !important;
}


/* ==========================================================================
   WooCommerce Blocks Select & Form Padding Isolation
   ========================================================================== */
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-select .wc-block-components-select__select,
.wc-block-components-country-input select,
.wc-blocks-components-country-input select {
	padding: 16px 9px 0 !important;
}

/* ==========================================================================
   Hide the country field on checkout — store only sells/ships within
   Israel (woocommerce_allowed_countries=specific, IL only). WooCommerce
   Blocks has no supported API to actually remove this core field (their own
   code explicitly rejects hidden=>true for it), so it's hidden via CSS;
   the single allowed country still submits correctly since IL is the only
   option in the underlying select.
   ========================================================================== */
.wc-block-components-address-form__country {
	display: none !important;
}

.wc-block-checkout .wc-block-components-checkout-step__description {
	margin-bottom: 0 !important;
}

.wc-block-checkout .wc-block-components-checkout-step__heading-container {
	gap: 0 !important;
}

.wc-block-checkout .wc-block-components-title.wc-block-components-checkout-step__title {
	margin-bottom: 8px !important;
}

.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before  {
	background: var(--ps-color-primary);
}

.wc-block-components-radio-control-accordion-option.wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control__option.wc-block-components-radio-control__option-checked.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--ps-color-primary);
}

/* ==========================================================================
   Checkout address field order — matches the old Magento field order.
   WooCommerce Blocks fixes the DOM/registration order of built-in fields and
   always appends custom fields after them (see checkout-fields.php), so the
   real markup order doesn't match what we want. All address fields share one
   flex container (.wc-block-components-address-form), so `order` reorders
   them purely visually without touching field registration/validation.
   ========================================================================== */
.wc-block-components-address-form__first_name { order: 1; }
.wc-block-components-address-form__last_name { order: 2; }
.wc-block-components-address-form__city { order: 3; }
.wc-block-components-address-form__address_1 { order: 4; }
.wc-block-components-address-form__presentsimple-house-number { order: 5; }
.wc-block-components-address-form__address_2 { order: 6; }
.wc-block-components-address-form__presentsimple-floor { order: 7; }
.wc-block-components-address-form__presentsimple-entrance { order: 8; }
.wc-block-components-address-form__postcode { order: 9; }
.wc-block-components-address-form__phone { order: 10; }
.wc-block-components-address-form__presentsimple-company-invoice-name { order: 11; }

/* ==========================================================================
   Cart Page & Empty Cart Enhancements (Blissful Theme)
   ========================================================================== */
body.woocommerce-cart .entry-header,
.woocommerce-cart .ps-page-header,
.woocommerce-cart .entry-title {
	display: none !important;
}

/* Hide standard Gutenberg New in store and raw grids inside empty cart block */
.wp-block-woocommerce-empty-cart-block .wp-block-heading,
.wp-block-woocommerce-empty-cart-block .wc-block-grid,
.wp-block-woocommerce-empty-cart-block .wp-block-woocommerce-product-new,
.wp-block-woocommerce-empty-cart-block hr {
	display: none !important;
}

.wp-block-woocommerce-empty-cart-block {
	margin: 20px auto 40px !important;
	text-align: center !important;
}

/* Empty Cart Hero Header */
.ps-empty-cart-hero {
	text-align: center !important;
	max-width: 580px !important;
	margin: 25px auto 45px !important;
	padding: 0 15px !important;
	direction: rtl !important;
}
.ps-empty-cart-icon {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #fff7ed;
	color: var(--ps-color-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 18px;
}
.ps-empty-cart-title {
	font-family: var(--ps-font-heading, inherit) !important;
	font-size: 2em !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	margin: 0 0 12px !important;
	line-height: 1.3 !important;
	border: none !important;
	padding: 0 !important;
}
.ps-empty-cart-desc {
	font-size: 1.05em !important;
	color: #666666 !important;
	margin: 0 0 24px !important;
	line-height: 1.5 !important;
}
.ps-empty-cart-btn-wrap {
	margin-bottom: 10px !important;
}
.ps-cart-return-btn,
.wc-block-components-button,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button,
p.return-to-shop a.button {
	background-color: var(--ps-color-primary) !important;
	color: #ffffff !important;
	border-radius: 4px !important;
	border: none !important;
	font-weight: 600 !important;
	padding: 12px 36px !important;
	font-size: 1.05em !important;
	display: inline-block !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease !important;
}
.ps-cart-return-btn:hover,
.wp-block-woocommerce-empty-cart-block .wc-block-components-button:hover,
p.return-to-shop a.button:hover {
	background-color: var(--ps-color-primary-dark) !important;
	color: #ffffff !important;
	text-decoration: none !important;
	transform: translateY(-2px);
}

.ps-cart-empty-extras {
	border-top: 1px solid #eeeeee;
	padding-top: 20px;
	margin-top: 30px;
}

/* Remove Storefront content link underlines from product cards & categories */
.hentry .entry-content .ps-product-card a,
.hentry .entry-content .ps-product-card__title a,
.hentry .entry-content a.ps-product-card__title,
.hentry .entry-content .ps-home-categories a,
.hentry .entry-content .ps-home-products a,
.ps-product-card a,
.ps-product-card__title a,
.ps-home-categories a,
.ps-home-products a {
	text-decoration: none !important;
}
.hentry .entry-content .ps-product-card__title a:hover,
.hentry .entry-content a.ps-product-card__title:hover,
.ps-product-card__title a:hover {
	text-decoration: none !important;
	color: var(--ps-color-primary) !important;
}

/* ==========================================================================
   Checkout Page Layout (2-Columns Matching Original Magento Site)
   ========================================================================== */
body.woocommerce-checkout .entry-header,
.woocommerce-checkout .ps-page-header,
.woocommerce-checkout .entry-title {
	display: none !important;
}

/* Top Security Box & Login Button */
.ps-checkout-header-info {
	max-width: 1200px;
	margin: 15px auto 25px;
	direction: rtl;
	text-align: right;
	padding: 0 10px;
}
.ps-checkout-title {
	font-family: var(--ps-font-heading, inherit) !important;
	font-size: 2.3em !important;
	font-weight: 800 !important;
	color: #111111 !important;
	margin: 0 0 14px !important;
	line-height: 1.2 !important;
	border: none !important;
	padding: 0 !important;
}
.ps-checkout-security-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 16px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.ps-checkout-security-text {
	font-size: 0.95em;
	line-height: 1.55;
	color: #334155;
	flex: 1;
}
.ps-checkout-security-text strong {
	color: #0f172a;
	font-weight: 700;
}
.ps-checkout-login-wrap {
	flex-shrink: 0;
}
.ps-checkout-login-btn {
	background-color: #1e5ba8 !important;
	color: #ffffff !important;
	font-size: 0.95em !important;
	font-weight: 600 !important;
	padding: 9px 20px !important;
	border-radius: 4px !important;
	border: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: background-color 0.2s ease !important;
}
.ps-checkout-login-btn:hover {
	background-color: #164683 !important;
	color: #ffffff !important;
}
.ps-checkout-login-btn svg {
	width: 17px;
	height: 17px;
}

/* 3-Column Main Layout Container (RTL: Col 1 Address [Right], Col 2 Delivery & Payment [Center], Col 3 Order Summary [Left]) */
.storefront-align-wide .hentry .entry-content .alignwide.wp-block-woocommerce-checkout,
.storefront-align-wide .hentry .entry-content .wp-block-woocommerce-checkout,
.page-template-template-fullwidth-php .hentry .entry-content .alignwide.wp-block-woocommerce-checkout,
.storefront-full-width-content .hentry .entry-content .alignwide.wp-block-woocommerce-checkout,
.hentry .entry-content .alignwide.wp-block-woocommerce-checkout,
.hentry .entry-content .wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout.alignwide,
.wp-block-woocommerce-checkout,
.wc-block-checkout {
	padding-right: 0 !important;
	padding-left: 0 !important;
	padding-inline-start: 0 !important;
	padding-inline-end: 0 !important;
	padding-top: 10px !important;
	margin-right: auto !important;
	margin-left: auto !important;
	max-width: 1240px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.ps-checkout-header-info,
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
.wc-block-checkout.wc-block-components-sidebar-layout,
.ps-checkout-shipping-info {
	max-width: 1240px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

/* Outer block is a clean block wrapper */
.wp-block-woocommerce-checkout,
.wp-block-woocommerce-checkout.alignwide {
	display: block !important;
	width: 100% !important;
}

.wp-block-woocommerce-checkout > .with-scroll-to-top__scroll-point,
.wp-block-woocommerce-checkout > .wc-block-components-notices:empty {
	display: none !important;
}

/* Only the actual 2-column container inside is flex */
.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
.wc-block-checkout.wc-block-components-sidebar-layout,
.wc-block-components-sidebar-layout {
	display: flex !important;
	flex-direction: row !important;
	gap: 24px !important;
	align-items: flex-start !important;
	direction: rtl !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 auto !important;
}

/* Main Form Area (Houses Column 1 Address + Column 2 Shipping & Payment) */
.wc-block-components-main,
.wc-block-checkout__main {
	flex: 1 1 calc(100% - 374px) !important;
	max-width: calc(100% - 374px) !important;
	width: calc(100% - 374px) !important;
	margin-bottom: 30px !important;
	display: block !important;
	order: 1 !important;
	padding: 0 !important;
}

/* Multi-column flow inside Form: Col 1 Address (Right), Col 2 Shipping/Payment (Center) */
.wc-block-checkout__form,
form.wc-block-checkout__form {
	column-count: 2 !important;
	column-gap: 24px !important;
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* Keep each step block intact without page/column splitting */
.wc-block-components-checkout-step,
.wc-block-checkout__contact-fields,
.wc-block-checkout__shipping-fields,
.wc-block-checkout__billing-fields,
.wc-block-checkout__shipping-option,
.wc-block-checkout__shipping-methods,
.wc-block-checkout__shipping-method,
.wc-block-checkout__payment-method,
.wc-block-checkout__payment-options,
.wc-block-checkout__add-note,
.wc-block-checkout__terms {
	break-inside: avoid !important;
	page-break-inside: avoid !important;
	display: block !important;
	margin-bottom: 24px !important;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.wc-block-components-checkout-step__heading-container {
	margin-bottom: 0 !important;
}

/* Force Shipping & Payment to start at the top of Column 2 */
.wc-block-checkout__shipping-option,
.wc-block-checkout__shipping-methods,
.wc-block-checkout__shipping-method {
	break-before: column !important;
	page-break-before: column !important;
}

/* Col 3 (Left in RTL): Unified Order Summary Sidebar */
.wc-block-components-sidebar,
.wc-block-checkout__sidebar {
	flex: 0 0 350px !important;
	max-width: 350px !important;
	width: 350px !important;
	position: sticky !important;
	top: 24px !important;
	align-self: flex-start !important;
	display: block !important;
	order: 2 !important;
	background: #ffffff !important;
	border: 1px solid #cbd5e1 !important;
	border-radius: 6px !important;
	padding: 20px !important;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
	box-sizing: border-box !important;
}

/* Remove nested duplicate borders & paddings inside Sidebar */
.wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block,
.wc-block-checkout__sidebar .checkout-order-summary-block-fill,
.wc-block-checkout__sidebar .checkout-order-summary-block-fill-wrapper {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
}

/* Place Order Button inside Col 3 Sidebar Card */
.wc-block-checkout__sidebar .wc-block-checkout__actions,
.wc-block-checkout__actions {
	margin-top: 20px !important;
	padding-top: 16px !important;
	border-top: 1px solid #e2e8f0 !important;
	width: 100% !important;
}
/* Currency symbol (₪) on the LEFT of the number */
.wc-block-components-formatted-money-amount,
.wc-block-components-product-price__value,
.wc-block-components-totals-item__value,
.wp-block-woocommerce-checkout-order-summary-block .woocommerce-Price-amount,
.woocommerce-Price-amount,
.amount {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: baseline !important;
	gap: 2px !important;
	direction: ltr !important;
	unicode-bidi: isolate !important;
}

/* Hide duplicate total price in the header of Order Summary */
.wc-block-components-checkout-order-summary__title-price,
.wc-block-components-order-summary__title-price,
.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title-price {
	display: none !important;
}

/* Hide duplicate individual prices and description under product name */
.wc-block-components-order-summary .wc-block-components-product-metadata,
.wc-block-components-order-summary .wc-block-components-product-details,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary .wc-block-cart-item__prices,
.wc-block-components-order-summary-item__description p:not(.wc-block-components-product-name) {
	display: none !important;
}

/* Hide round badge on product image */
.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
	display: none !important;
}

/* Clean text quantity under product title */
.ps-order-item-qty-text {
	font-size: 0.9em;
	color: #475569;
	margin-top: 4px;
	font-weight: 500;
	direction: rtl;
	text-align: right;
}

.wc-block-checkout__actions {
    margin-bottom: 0;
}
.wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button,
.wc-block-checkout__sidebar .wc-block-components-button,
.wc-block-components-checkout-place-order-button {
	width: 100% !important;
	background-color: var(--ps-color-primary) !important; /* Original site dark blue */
	color: #ffffff !important;
	font-weight: 700 !important;
	font-size: 1.1em !important;
	padding: 14px 20px !important;
	border-radius: 4px !important;
	height: auto !important;
	min-height: 48px !important;
	border: none !important;
	cursor: pointer !important;
	text-decoration: none !important;
	box-shadow: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease !important;
}
.wc-block-checkout__sidebar .wc-block-components-checkout-place-order-button:hover,
.wc-block-checkout__sidebar .wc-block-components-button:hover,
.wc-block-components-checkout-place-order-button:hover {
	background-color: #1e3d6e !important;
	color: #ffffff !important;
}

.wc-block-components-checkout-place-order-button__text {
	justify-content: center;
    font-size: 22px;
}

/* Individual Radio Option Cards (Shipping & Payment Options only) */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control,
.wc-block-checkout__shipping-method-option {
	/* border: 1px solid #cbd5e1 !important; */
	border-radius: 4px !important;
	margin-bottom: 8px !important;
	background: #ffffff !important;
	transition: border-color 0.2s ease !important;
}
.wc-block-components-radio-control:hover,
.wc-block-components-radio-control-accordion-option:hover {
	border-color: #94a3b8 !important;
}
.wc-block-components-radio-control.is-selected,
.wc-block-components-radio-control__option-checked {
	border-color: #2b569a !important;
}

/* Bottom Delivery Info Footer */
.ps-checkout-shipping-info {
	max-width: 1280px;
	margin: 50px auto 30px;
	border-top: 2px solid #f1f5f9;
	padding-top: 40px;
	direction: rtl;
	text-align: right;
}
.ps-shipping-info-main-title {
	font-family: var(--ps-font-heading, inherit) !important;
	font-size: 1.7em !important;
	font-weight: 800 !important;
	text-align: center !important;
	color: #111111 !important;
	margin: 0 0 30px !important;
}
.ps-shipping-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
}
.ps-shipping-info-card {
	background: #fdfaf7;
	border: 1px solid #f2e7dd;
	border-radius: 6px;
	padding: 24px;
	line-height: 1.6;
}
.ps-shipping-card-title {
	font-size: 1.25em !important;
	font-weight: 700 !important;
	color: #1e293b !important;
	margin: 0 0 12px !important;
	border-bottom: 2px solid var(--ps-color-primary) !important;
	padding-bottom: 6px !important;
	display: inline-block !important;
}
.ps-shipping-highlight {
	color: #1e293b;
	margin-bottom: 6px;
}
.ps-shipping-contact {
	font-weight: 700;
	color: #1e5ba8;
	margin-top: 10px;
}
.ps-shipping-surcharge {
	color: #b91c1c;
	font-size: 0.95em;
	margin-top: 8px;
}

/* Responsive Styles for Checkout */
@media (max-width: 1024px) {
	.wp-block-woocommerce-checkout,
	.wp-block-woocommerce-checkout .wc-block-components-sidebar-layout,
	.wc-block-checkout.wc-block-components-sidebar-layout {
		flex-direction: column !important;
		gap: 24px !important;
	}
	.wc-block-components-main,
	.wc-block-checkout__main,
	.wc-block-components-sidebar,
	.wc-block-checkout__sidebar {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		position: static !important;
	}
	.wc-block-checkout__form,
	form.wc-block-checkout__form {
		column-gap: 20px !important;
	}
}

@media (max-width: 768px) {
	/* Switch checkout form from 2 columns to 1 clean vertical column on mobile */
	.wc-block-checkout__form,
	form.wc-block-checkout__form {
		column-count: 1 !important;
		column-gap: 0 !important;
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	/* Reset desktop column-break so shipping & payment flow naturally in a single column */
	.wc-block-checkout__shipping-option,
	.wc-block-checkout__shipping-methods,
	.wc-block-checkout__shipping-method {
		break-before: auto !important;
		page-break-before: auto !important;
	}

	/* Full width for all steps */
	.wc-block-components-checkout-step,
	.wc-block-checkout__contact-fields,
	.wc-block-checkout__shipping-fields,
	.wc-block-checkout__billing-fields,
	.wc-block-checkout__shipping-option,
	.wc-block-checkout__shipping-methods,
	.wc-block-checkout__shipping-method,
	.wc-block-checkout__payment-method,
	.wc-block-checkout__payment-options,
	.wc-block-checkout__add-note,
	.wc-block-checkout__terms {
		break-inside: auto !important;
		page-break-inside: auto !important;
		display: block !important;
		width: 100% !important;
		margin-bottom: 20px !important;
	}

	/* Company name field full width on mobile */
	.wc-block-components-address-form__presentsimple-company-invoice-name {
		flex: 0 0 100% !important;
		width: 100% !important;
	}

	/* Sidebar & Order summary full width on mobile */
	.wc-block-components-sidebar,
	.wc-block-checkout__sidebar {
		width: 100% !important;
		max-width: 100% !important;
		margin-top: 10px !important;
		padding: 16px !important;
		box-sizing: border-box !important;
	}

	.wc-block-components-checkout-place-order-button__text {
		font-size: 19px !important;
	}

	/* Mobile adjustments for security info box */
	.ps-checkout-header-info {
		padding: 0 2px !important;
		margin-bottom: 16px !important;
	}

	.ps-checkout-title {
		font-size: 1.8em !important;
		margin-bottom: 12px !important;
	}

	.ps-checkout-security-box {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 12px !important;
		padding: 12px 14px !important;
	}

	.ps-checkout-security-text {
		font-size: 0.9em !important;
		line-height: 1.5 !important;
	}

	.ps-checkout-login-btn {
		justify-content: center !important;
		width: 100% !important;
	}

	/* Bottom delivery info grid in 1 column */
	.ps-checkout-shipping-info {
		margin: 30px auto 20px !important;
		padding-top: 24px !important;
	}

	.ps-shipping-info-main-title {
		font-size: 1.4em !important;
		margin-bottom: 20px !important;
	}

	.ps-shipping-info-grid {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
	}

	.ps-shipping-info-card {
		padding: 16px !important;
	}
}