/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Match the opened desktop category menu to the home slider height. */
@media (min-width: 1025px) {
	body.home .whb-wjlcubfdmlq3d7jvmt23 .wd-dropdown-cats {
		height: 495px;
	}

	body.home .whb-wjlcubfdmlq3d7jvmt23 .wd-nav-vertical {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	body.home .whb-wjlcubfdmlq3d7jvmt23 .wd-nav-vertical > li {
		flex: 1 1 0;
	}

	body.home .whb-wjlcubfdmlq3d7jvmt23 .wd-nav-vertical > li > a {
		height: 100%;
	}
}

/* Match the floating controls and keep them in one evenly spaced column. */
.scrollToTop {
	inset-inline-end: auto !important;
	right: 20px !important;
	bottom: 20px !important;
	width: 54px !important;
	height: 54px !important;
	background: #1972f5 !important;
	box-shadow: 0 4px 14px rgba(25, 114, 245, .28) !important;
	color: #fff !important;
}

.scrollToTop:hover {
	background: #0f61d7 !important;
	color: #fff !important;
}

@media (max-width: 1024px) {
	.scrollToTop {
		right: 20px !important;
		bottom: 70px !important;
		width: 54px !important;
		height: 54px !important;
	}
}

/* Floating inquiry button and slide-over form. */
.loveliwood-inquiry-trigger {
	position: fixed;
	bottom: var(--inquiry-offset-desktop);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1972f5;
	box-shadow: 0 4px 14px rgba(25, 114, 245, .28);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.loveliwood-inquiry-trigger.is-right {
	right: 20px;
}

.loveliwood-inquiry-trigger.is-left {
	left: 20px;
}

.loveliwood-inquiry-trigger:hover {
	background: #0f61d7;
	color: #fff;
	transform: translateY(-2px);
}

.loveliwood-inquiry-trigger::before {
	position: absolute;
	right: calc(100% + 10px);
	padding: 7px 10px;
	border-radius: 4px;
	background: #222;
	color: #fff;
	content: attr(data-label);
	font-size: 12px;
	line-height: 1;
	opacity: 0;
	pointer-events: none;
	transform: translateX(4px);
	transition: opacity .2s ease, transform .2s ease;
	white-space: nowrap;
}

.loveliwood-inquiry-trigger.is-left::before {
	right: auto;
	left: calc(100% + 10px);
}

.loveliwood-inquiry-trigger:hover::before,
.loveliwood-inquiry-trigger:focus-visible::before {
	opacity: 1;
	transform: none;
}

.loveliwood-inquiry-drawer {
	position: fixed;
	inset: 0;
	z-index: 1000002;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s ease, visibility .25s ease;
}

.loveliwood-inquiry-drawer.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.loveliwood-inquiry-backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, .34);
	cursor: default;
}

.loveliwood-inquiry-panel {
	position: absolute;
	top: 50%;
	right: 24px;
	bottom: auto;
	width: min(390px, calc(100% - 48px));
	height: auto;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	border: 1px solid rgba(15, 23, 42, .08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
	opacity: 0;
	transform: translate(32px, -50%) scale(.98);
	transition: opacity .25s ease, transform .3s ease;
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	scrollbar-width: none;
}

.loveliwood-inquiry-panel::-webkit-scrollbar {
	display: none;
}

.loveliwood-inquiry-drawer.is-open .loveliwood-inquiry-panel {
	opacity: 1;
	transform: translate(0, -50%) scale(1);
}

.loveliwood-inquiry-header {
	position: sticky;
	top: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	padding: 7px 18px;
	border-bottom: 1px solid #e7e7e7;
	border-radius: 16px 16px 0 0;
	background: #f8fafc;
}

.loveliwood-inquiry-header h2 {
	margin: 0;
	color: #172033;
	font-size: 18px;
}

.loveliwood-inquiry-close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eef2f7;
	color: #666;
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}

.loveliwood-inquiry-close:hover {
	background: #e2e8f0;
	color: #172033;
}

.loveliwood-inquiry-content {
	padding: 16px 18px;
}

.loveliwood-inquiry-content .inquiry-field {
	min-width: 0;
	margin-bottom: 10px;
}

.loveliwood-inquiry-content :is(.inquiry-field, .inquiry-consent, .inquiry-submit) p {
	margin: 0;
}

.loveliwood-inquiry-content .inquiry-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.loveliwood-inquiry-content label {
	display: block;
	margin-bottom: 4px;
	color: #555;
	font-size: 14px;
}

.loveliwood-inquiry-content :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #e1e6ee;
	border-radius: 8px;
	background: #f7f8fa;
	box-shadow: none;
}

.loveliwood-inquiry-content :is(input[type="text"], input[type="email"], input[type="tel"]) {
	height: 38px;
}

.loveliwood-inquiry-content :is(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
	border-color: #1972f5;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(25, 114, 245, .1);
}

.loveliwood-inquiry-content textarea {
	min-height: 72px;
	height: 72px;
	resize: vertical;
}

.loveliwood-inquiry-content .inquiry-consent {
	font-size: 11px;
	line-height: 1.45;
}

.loveliwood-inquiry-content .inquiry-submit {
	margin-top: 10px;
	text-align: right;
}

.loveliwood-inquiry-content .wpcf7-submit {
	min-width: 110px;
	min-height: 38px;
	border-radius: 7px;
	background: #1972f5;
	box-shadow: 0 5px 14px rgba(25, 114, 245, .22);
}

.loveliwood-inquiry-content .wpcf7-submit:hover {
	background: #0f61d7;
}

.loveliwood-inquiry-content .wpcf7-spinner {
	vertical-align: middle;
}

body.loveliwood-inquiry-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.loveliwood-inquiry-trigger {
		bottom: var(--inquiry-offset-mobile);
	}

	.loveliwood-inquiry-trigger.is-right {
		right: 20px;
	}

	.loveliwood-inquiry-trigger.is-left {
		left: 20px;
	}

	.loveliwood-inquiry-panel {
		top: 50%;
		right: auto;
		bottom: auto;
		left: 50%;
		width: min(420px, calc(100% - 20px));
		height: auto;
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
		border-radius: 12px;
		transform: translate(calc(-50% + 24px), -50%) scale(.98);
	}

	.loveliwood-inquiry-drawer.is-open .loveliwood-inquiry-panel {
		transform: translate(-50%, -50%) scale(1);
	}

	.loveliwood-inquiry-header {
		min-height: 50px;
		padding: 7px 14px;
		border-radius: 12px 12px 0 0;
	}

	.loveliwood-inquiry-content {
		padding: 14px;
	}

	.loveliwood-inquiry-content .inquiry-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.loveliwood-inquiry-content .inquiry-field {
		margin-bottom: 8px;
	}

	.loveliwood-inquiry-content textarea {
		min-height: 64px;
		height: 64px;
	}
}

/* Configurable company contact area immediately above the copyright bar. */
.loveliwood-contact-footer {
	border-top: 1px solid #ececec;
	background: #fff;
	color: #5b6472;
}

.loveliwood-contact-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	padding-block: 36px;
}

.loveliwood-contact-footer__grid.has-form {
	grid-template-columns: minmax(300px, .8fr) minmax(520px, 1.2fr);
	align-items: center;
	gap: clamp(40px, 5vw, 72px);
}

.loveliwood-contact-footer__details {
	min-width: 0;
}

.loveliwood-contact-footer__logo {
	display: inline-block;
	margin-bottom: 16px;
}

.loveliwood-contact-footer__logo img {
	display: block;
	width: auto;
	max-width: min(300px, 100%);
	max-height: 86px;
	object-fit: contain;
}

.loveliwood-contact-footer h2 {
	margin: 0 0 10px;
	color: #242424;
	font-size: clamp(24px, 2vw, 30px);
	line-height: 1.2;
}

.loveliwood-contact-footer__company {
	margin: 0 0 18px;
	color: #343a46;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
}

.loveliwood-contact-footer__list {
	display: grid;
	gap: 13px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.loveliwood-contact-footer__list li {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr);
	align-items: start;
	gap: 14px;
	margin: 0;
}

.loveliwood-contact-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(131, 183, 53, .12);
	color: #77a92c;
}

.loveliwood-contact-footer__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.loveliwood-contact-footer__list strong {
	display: block;
	margin-bottom: 3px;
	color: #242424;
	font-size: 13px;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.loveliwood-contact-footer__list a,
.loveliwood-contact-footer__list address {
	color: #66707e;
	font-size: 15px;
	font-style: normal;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

.loveliwood-contact-footer__list a:hover {
	color: #77a92c;
}

.loveliwood-contact-footer__form {
	min-width: 0;
	padding: clamp(20px, 2.5vw, 28px);
	border: 1px solid #e7ebef;
	border-radius: 14px;
	background: #f8fafb;
	box-shadow: 0 14px 44px rgba(28, 39, 54, .07);
}

.loveliwood-contact-footer__intro {
	margin: -2px 0 14px;
	color: #697382;
	font-size: 14px;
	line-height: 1.6;
}

.loveliwood-contact-footer__form .inquiry-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.loveliwood-contact-footer__form .inquiry-field {
	min-width: 0;
	margin-bottom: 9px;
}

.loveliwood-contact-footer__form :is(.inquiry-field, .inquiry-consent, .inquiry-submit) p {
	margin: 0;
}

.loveliwood-contact-footer__form label {
	display: block;
	margin-bottom: 5px;
	color: #414a57;
	font-size: 13px;
	font-weight: 600;
}

.loveliwood-contact-footer__form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border: 1px solid #dfe4e9;
	border-radius: 7px;
	background: #fff;
	box-shadow: none;
}

.loveliwood-contact-footer__form :is(input[type="text"], input[type="email"], input[type="tel"]) {
	height: 36px;
}

.loveliwood-contact-footer__form textarea {
	height: 58px;
	min-height: 58px;
	resize: vertical;
}

.loveliwood-contact-footer__form :is(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
	border-color: #83b735;
	box-shadow: 0 0 0 3px rgba(131, 183, 53, .12);
}

.loveliwood-contact-footer__form .inquiry-consent {
	color: #737c88;
	font-size: 11px;
	line-height: 1.5;
}

.loveliwood-contact-footer__form .inquiry-submit {
	margin-top: 10px;
}

.loveliwood-contact-footer__form .wpcf7-submit {
	min-width: 150px;
	min-height: 38px;
	border-radius: 7px;
	background: #83b735;
	box-shadow: 0 6px 16px rgba(131, 183, 53, .24);
}

.loveliwood-contact-footer__form .wpcf7-submit:hover {
	background: #719f2f;
}

.loveliwood-contact-footer__form .wpcf7-spinner {
	vertical-align: middle;
}

.loveliwood-contact-footer__form .wpcf7-response-output {
	margin: 16px 0 0 !important;
}

@media (max-width: 1024px) {
	.loveliwood-contact-footer__grid.has-form {
		grid-template-columns: minmax(260px, .75fr) minmax(430px, 1.25fr);
		gap: 36px;
	}

	.loveliwood-contact-footer__form {
		padding: 22px;
	}
}

@media (max-width: 767px) {
	.loveliwood-contact-footer__grid,
	.loveliwood-contact-footer__grid.has-form {
		display: block;
		padding-block: 28px;
	}

	.loveliwood-contact-footer__form {
		display: none;
	}

	.loveliwood-contact-footer__logo {
		margin-bottom: 20px;
	}

	.loveliwood-contact-footer__logo img {
		max-width: min(250px, 85vw);
		max-height: 72px;
	}

	.loveliwood-contact-footer h2 {
		font-size: 24px;
	}

	.loveliwood-contact-footer__company {
		margin-bottom: 22px;
		font-size: 15px;
	}

	.loveliwood-contact-footer__list {
		gap: 16px;
	}

	.loveliwood-contact-footer__list li {
		grid-template-columns: 38px minmax(0, 1fr);
		gap: 12px;
	}

	.loveliwood-contact-footer__icon {
		width: 38px;
		height: 38px;
	}

	.loveliwood-contact-footer__list a,
	.loveliwood-contact-footer__list address {
		font-size: 14px;
	}
}
