/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Keep the desktop header menu on one line when the cart total is visible. */
@media (min-width: 1200px) {
	.whb-header .whb-6kgdkbvf12frej4dofvj .wd-nav-main {
		flex-wrap: nowrap;
		column-gap: 14px;
	}
}

@media (min-width: 1250px) {
	.whb-header .whb-6kgdkbvf12frej4dofvj .wd-nav-main {
		column-gap: 24px;
	}
}

/* Clear packaging and delivery terms at the product purchase decision. */
body.single-product .vsf-purchase-clarity {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: 100%;
	margin: 0 0 15px;
	padding: 13px 0;
	border-top: 1px solid var(--brdcolor-gray-300, #e8e8e8);
	border-bottom: 1px solid var(--brdcolor-gray-300, #e8e8e8);
	color: var(--wd-text-color, #666);
}

body.single-product .vsf-purchase-clarity__item {
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: start;
	gap: 9px;
	min-width: 0;
	padding: 0 14px;
}

body.single-product .vsf-purchase-clarity__item:first-child {
	padding-left: 0;
}

body.single-product .vsf-purchase-clarity__item + .vsf-purchase-clarity__item {
	border-left: 1px solid var(--brdcolor-gray-300, #e8e8e8);
}

body.single-product .vsf-purchase-clarity__icon {
	display: block;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	fill: none;
	stroke: var(--wd-title-color, #242424);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

body.single-product .vsf-purchase-clarity__copy,
body.single-product .vsf-purchase-clarity__copy > span,
body.single-product .vsf-purchase-clarity__copy > strong {
	display: block;
}

body.single-product .vsf-purchase-clarity__copy > strong {
	margin: 0 0 2px;
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

body.single-product .vsf-purchase-clarity__copy > span {
	font-size: 11.5px;
	line-height: 1.45;
}

/* Optional, brand-matched presentation boxes in the cart flow. */
.vsf-box-addon {
	margin: 14px 0 3px;
	padding: 15px 0 0;
	border-top: 1px solid var(--brdcolor-gray-300, #e4e4e4);
	color: var(--wd-text-color, #666);
}

.vsf-box-addon--cart {
	margin: 0 0 28px;
	padding: 22px;
	border: 1px solid var(--brdcolor-gray-300, #e4e4e4);
	border-radius: 2px;
	background: #fafafa;
}

.vsf-box-addon__header {
	margin: 0 0 14px;
}

.vsf-box-addon__eyebrow {
	display: block;
	margin: 0 0 2px;
	color: #6a6a6a;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: uppercase;
}

.vsf-box-addon__title {
	margin: 0 0 4px;
	color: var(--wd-title-color, #242424);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
}

.vsf-box-addon--cart .vsf-box-addon__title {
	font-size: 18px;
}

.vsf-box-addon__description {
	max-width: 720px;
	margin: 0;
	color: var(--wd-text-color, #666);
	font-size: 11.5px;
	line-height: 1.5;
}

.vsf-box-addon--cart .vsf-box-addon__description {
	font-size: 13px;
}

.vsf-box-addon__groups {
	display: grid;
	gap: 14px;
}

.vsf-box-addon__group-heading {
	margin: 0 0 8px;
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.vsf-box-addon__list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vsf-box-addon--cart .vsf-box-addon__list {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 12px;
}

.vsf-box-addon__item {
	display: grid;
	grid-template-columns: 54px minmax(0, 1fr) auto;
	align-items: center;
	gap: 9px;
	min-width: 0;
	padding: 8px;
	border: 1px solid var(--brdcolor-gray-300, #e7e7e7);
	border-radius: 2px;
	background: #fafafa;
}

.vsf-box-addon--cart .vsf-box-addon__item {
	grid-template-columns: 68px minmax(0, 1fr) auto;
	gap: 12px;
	min-height: 90px;
	padding: 10px;
	background: #fff;
}

.vsf-box-addon__image {
	display: block;
	width: 54px;
	height: 54px;
	overflow: hidden;
	border: 1px solid var(--brdcolor-gray-300, #e4e4e4);
	border-radius: 2px;
	background: #fff;
}

.vsf-box-addon--cart .vsf-box-addon__image {
	width: 68px;
	height: 68px;
}

.vsf-box-addon__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vsf-box-addon__details {
	min-width: 0;
}

.vsf-box-addon__name {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 4px;
	color: var(--wd-title-color, #242424);
	font-size: 11.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.vsf-box-addon--cart .vsf-box-addon__name {
	font-size: 13px;
}

.vsf-box-addon__price {
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
}

.vsf-box-addon__price del {
	opacity: .55;
}

.vsf-box-addon__button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 78px;
	min-height: 42px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid #242424 !important;
	border-radius: 2px;
	background: #fff !important;
	color: #242424 !important;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.vsf-box-addon__button.button:hover {
	border-color: #111 !important;
	background: #242424 !important;
	color: #fff !important;
}

.vsf-box-addon__button.button:focus-visible {
	outline: 2px solid #0000ff;
	outline-offset: 2px;
}

.vsf-box-addon__button.button.loading {
	opacity: .55;
	pointer-events: none;
}

.vsf-box-addon .added_to_cart {
	display: none;
}

.vsf-checkout-packaging-row th,
.vsf-checkout-packaging-row td {
	vertical-align: top;
}

.vsf-checkout-packaging-row__status,
.vsf-checkout-packaging-row__detail {
	display: block;
}

.vsf-checkout-packaging-row__status {
	color: var(--wd-title-color, #242424);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.vsf-checkout-packaging-row__detail {
	max-width: 280px;
	margin: 2px 0 0 auto;
	color: var(--wd-text-color, #666);
	font-size: 11.5px;
	line-height: 1.45;
}

@media (max-width: 640px) {
	body.single-product .vsf-purchase-clarity {
		grid-template-columns: minmax(0, 1fr);
		padding: 11px 0;
	}

	body.single-product .vsf-purchase-clarity__item {
		padding: 0;
	}

	body.single-product .vsf-purchase-clarity__item + .vsf-purchase-clarity__item {
		margin-top: 10px;
		padding-top: 10px;
		border-top: 1px solid var(--brdcolor-gray-300, #e8e8e8);
		border-left: 0;
	}

	.vsf-box-addon--cart {
		padding: 16px;
	}

	.vsf-box-addon--cart .vsf-box-addon__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.vsf-box-addon__button.button {
		min-height: 44px;
	}
}

@media (max-width: 380px) {
	.vsf-box-addon__item,
	.vsf-box-addon--cart .vsf-box-addon__item {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		gap: 8px;
		padding: 8px;
	}

	.vsf-box-addon__image,
	.vsf-box-addon--cart .vsf-box-addon__image {
		width: 52px;
		height: 52px;
	}

	.vsf-box-addon__button.button {
		min-width: 72px;
		padding-inline: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsf-box-addon__button.button {
		transition: none;
	}
}

/* Purchase actions in WoodMart "Single product layout Accessories" (layout 873). */
body.single-product #wd-1e069946 form.cart {
	align-items: stretch;
	flex-wrap: wrap;
	gap: 10px;
}

body.single-product #wd-1e069946 form.cart > .quantity {
	flex: 0 0 auto;
	margin: 0;
}

body.single-product #wd-1e069946 form.cart > .single_add_to_cart_button,
body.single-product #wd-1e069946 form.cart > .wd-buy-now-btn {
	flex: 1 1 0;
	min-width: 0;
	min-height: 42px;
	margin: 0;
}

body.single-product #wd-1e069946 form.cart > .wd-buy-now-btn {
	--btn-accented-bgcolor: #242424;
	--btn-accented-bgcolor-hover: #111111;
	--btn-accented-color: #fff;
	--btn-accented-color-hover: #fff;
	border-color: #242424 !important;
	background-color: #242424 !important;
	color: #fff !important;
}

body.single-product #wd-1e069946 form.cart > .wd-buy-now-btn:hover,
body.single-product #wd-1e069946 form.cart > .wd-buy-now-btn:focus-visible {
	border-color: #111 !important;
	background-color: #111 !important;
	color: #fff !important;
}

body.single-product #wd-1e069946 .vsf-product-whatsapp-cta {
	display: inline-flex;
	flex: 0 0 100%;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid #25d366;
	border-radius: var(--btn-accented-brd-radius, 0);
	background: #25d366;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none !important;
	text-transform: uppercase;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.single-product #wd-1e069946 .vsf-product-whatsapp-cta:hover {
	border-color: #1fbd5a;
	background: #1fbd5a;
	color: #fff !important;
}

body.single-product #wd-1e069946 .vsf-product-whatsapp-cta:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

body.single-product #wd-1e069946 .vsf-product-whatsapp-cta svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: currentColor;
	flex: 0 0 auto;
}

@media (max-width: 640px) {
	body.single-product #wd-1e069946 form.cart > .single_add_to_cart_button,
	body.single-product #wd-1e069946 form.cart > .wd-buy-now-btn {
		min-height: 48px;
		padding-inline: 8px;
		font-size: 12px;
	}
}

@media (max-width: 360px) {
	body.single-product #wd-1e069946 form.cart {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.single-product #wd-1e069946 form.cart > .quantity,
	body.single-product #wd-1e069946 .vsf-product-whatsapp-cta {
		grid-column: 1 / -1;
		width: 100%;
	}

	body.single-product #wd-1e069946 form.cart > .quantity .qty {
		flex: 1 1 auto;
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product #wd-1e069946 .vsf-product-whatsapp-cta {
		transition: none;
	}
}


/* VSF guaranteed safe checkout payment methods */
body.single-product .vsf-guaranteed-safe-checkout-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 10px 0 0;
}
body.single-product .vsf-guaranteed-safe-checkout-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
@media (max-width: 640px) {
    body.single-product .vsf-guaranteed-safe-checkout-image { margin-top: 8px; }
}

/* Rolex collection: concise product facts and an explicit details action. */
.vsf-rolex-card-facts,
.vsf-rolex-card-cta {
	display: none;
}

body.term-rolex .product-grid-item .wd-entities-title {
	display: -webkit-box;
	min-height: 58.8px;
	max-height: 58.8px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.term-rolex .product-grid-item .vsf-rolex-card-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 3px 7px;
	min-height: 15px;
	margin: 6px 0 7px;
	color: var(--wd-text-color, #666);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: 0;
}

body.term-rolex .product-grid-item .vsf-rolex-card-facts span + span::before {
	margin-right: 7px;
	color: var(--color-gray-300, #b7b7b7);
	content: "\00b7";
}

body.term-rolex .product-grid-item .wd-product-cats {
	display: none;
}

body.term-rolex .product-grid-item .product-rating-price {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 10px;
}

body.term-rolex .product-grid-item .vsf-rolex-card-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid #242424;
	border-radius: 2px;
	background: #242424;
	color: #fff !important;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

body.term-rolex .product-grid-item .vsf-rolex-card-cta:hover {
	border-color: #111;
	background: #111;
	color: #fff !important;
}

body.term-rolex .product-grid-item .vsf-rolex-card-cta:focus-visible {
	outline: 2px solid #0000ff;
	outline-offset: 2px;
}

@media (max-width: 640px) {
	body.term-rolex .product-grid-item .wd-entities-title {
		min-height: 52.92px;
		max-height: 52.92px;
	}

	body.term-rolex .product-grid-item .vsf-rolex-card-facts {
		align-content: flex-start;
		gap: 2px 5px;
		min-height: 31px;
		margin-block: 5px 7px;
		font-size: 10px;
	}

	body.term-rolex .product-grid-item .vsf-rolex-card-facts span + span::before {
		margin-right: 5px;
	}

	body.term-rolex .product-grid-item .vsf-rolex-card-cta {
		min-height: 44px;
		padding-inline: 8px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.term-rolex .product-grid-item .vsf-rolex-card-cta {
		transition: none;
	}
}

/* Restore the core Gutenberg table containment used by upstream posts. */
.single-post .wp-block-table {
	overflow-x: auto;
}

.single-post .wp-block-table table.has-fixed-layout {
	width: 100%;
	table-layout: fixed;
}

.single-post .wp-block-table th,
.single-post .wp-block-table td {
	word-break: break-word;
}

/* WoodMart Promo Popup: the theme owns the shell; HTML Block 8507 owns content. */
.mfp-wrap.wd-promo-popup-wrap .wd-popup.wd-promo-popup {
	box-sizing: border-box;
	width: min(var(--wd-popup-width, 500px), calc(100vw - 30px));
	max-width: calc(100vw - 30px);
	padding: 0 !important;
	border: 1px solid rgba(212, 177, 106, 0.35);
	border-radius: 8px;
	background: #111;
	color: #fff;
	overflow: hidden;
}

.mfp-wrap.wd-promo-popup-wrap .wd-popup.wd-promo-popup .wd-popup-inner {
	width: 100%;
	max-height: inherit;
	padding: 0;
	overflow: hidden auto;
}

.mfp-wrap.wd-promo-popup-wrap .wd-popup-close {
	top: 8px;
	inset-inline-end: 8px;
}

.mfp-wrap.wd-promo-popup-wrap .wd-popup-close a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: #aaa;
}

.mfp-wrap.wd-promo-popup-wrap .wd-popup-close a:hover,
.mfp-wrap.wd-promo-popup-wrap .wd-popup-close a:focus-visible {
	color: #fff;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup {
	box-sizing: border-box;
	width: 100%;
	padding: 42px;
	text-align: center;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-name {
	margin: 0;
	color: #d4b16a;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-tag {
	margin: 12px 0 24px;
	color: #aaa;
	font-size: 10px;
	line-height: 1.4;
	letter-spacing: 0;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-line {
	width: 55px;
	height: 1px;
	margin: 0 auto 28px;
	border: 0;
	background: #d4b16a;
	opacity: 0.75;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .subtitle {
	margin: 0 0 18px;
	color: #fff;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: 0;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .description {
	margin: 0 0 26px;
	color: #c6c6c6;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .highlight {
	color: #fff;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .actions {
	display: grid;
	gap: 10px;
	margin: 0;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .whatsapp-btn,
.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .continue-btn {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 18px;
	border-radius: 3px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	cursor: pointer;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .whatsapp-btn {
	border: 1px solid #d4b16a;
	background: transparent;
	color: #d4b16a !important;
	text-decoration: none !important;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .whatsapp-btn:hover,
.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .whatsapp-btn:focus-visible {
	background: #d4b16a;
	color: #111 !important;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .continue-btn {
	border: 1px solid transparent;
	background: transparent;
	color: #aaa;
}

.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .continue-btn:hover,
.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .continue-btn:focus-visible {
	border-color: #555;
	background: transparent;
	color: #fff;
}

@media (max-width: 600px) {
	.mfp-wrap.wd-promo-popup-wrap {
		--wd-popup-mt: max(14px, env(safe-area-inset-top));
		--wd-popup-mr: max(14px, env(safe-area-inset-right));
		--wd-popup-mb: max(14px, env(safe-area-inset-bottom));
		--wd-popup-ml: max(14px, env(safe-area-inset-left));
	}

	.mfp-wrap.wd-promo-popup-wrap .wd-popup.wd-promo-popup {
		width: min(var(--wd-popup-width, 500px), calc(100vw - 28px));
		max-width: calc(100vw - 28px);
		max-height: calc(100dvh - 28px) !important;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup {
		padding: 36px 22px 28px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-name {
		font-size: 31px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-tag {
		font-size: 9px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .subtitle {
		font-size: 23px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .description {
		font-size: 13px;
		line-height: 1.65;
	}
}

@media (max-width: 360px) {
	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup {
		padding: 52px 18px 24px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .brand-name {
		font-size: 28px;
	}

	.mfp-wrap.wd-promo-popup-wrap .vsf-welcome-popup .subtitle {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mfp-wrap.wd-promo-popup-wrap .wd-popup-wrap {
		transition: none;
	}
}
