/* Hometex wholesale order form (HOMETEX-70). Loaded on the form page only. */
.htwo {
	--htwo-accent: var(--wd-primary-color, #bc4545);
	--htwo-ok: #2e7d4f; /* Filled quantities: green reads as "added", red read as an error. */
	--htwo-ok-bg: #eef7f1;
	--htwo-focus: #333;
	--htwo-line: #e6e6e6;
	--htwo-muted: #767676;
	font-size: 15px;
}
.htwo [hidden] {
	display: none !important;
}
/* The theme's title area is replaced by the hero (Twenty Twenty-Five on orders.hometex.bg). */
body.htwo-form-page main#wp--skip-link--target {
	margin-top: 0 !important;
}
body.htwo-form-page main#wp--skip-link--target > .wp-block-group:first-child {
	padding-top: 16px !important;
}

/* Hero */
.htwo-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	overflow: hidden;
	margin: 0 0 18px;
	border-radius: 10px;
	background: #f6f1ea;
}
.htwo-hero-text {
	padding: 40px 44px 36px;
}
.htwo-hero-logo {
	display: block;
	width: 180px;
	height: auto;
	margin: 0 0 26px;
}
.htwo .htwo-hero-eyebrow {
	margin: 0 0 8px;
	color: var(--htwo-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.htwo .htwo-hero-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.6vw, 46px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.01em;
}
.htwo .htwo-hero-lead {
	max-width: 34em;
	margin: 0 0 22px;
	color: #444;
	font-size: 17px;
	line-height: 1.55;
}
.htwo .htwo-hero-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
	color: #555;
	font-size: 14px;
}
.htwo .htwo-hero-facts li {
	margin: 0;
}
.htwo .htwo-hero-facts strong {
	display: block;
	color: #222;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}
.htwo .htwo-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0;
}
.htwo .htwo-hero-cta {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}
.htwo .htwo-hero-mail {
	color: #444;
	font-size: 15px;
}
.htwo-hero-photo {
	min-height: 360px;
	background-color: #e9e1d6;
	background-position: center;
	background-size: cover;
}

/* How it works */
.htwo .htwo-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px 16px;
	margin: 0 0 10px;
	padding: 0;
	list-style: none;
	font-size: 15px;
}
.htwo .htwo-steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--htwo-line);
	border-radius: 8px;
}
.htwo .htwo-steps .htwo-step-n {
	flex: 0 0 28px;
	height: 28px;
	border-radius: 50%;
	background: #222;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
}
.htwo-view-list > .htwo-note {
	margin: 0 0 4px;
}
#htwo-tools {
	scroll-margin-top: 80px;
}

/* Plain fields for themes without form styles (Twenty Twenty-Five on orders.hometex.bg). */
.htwo input[type="search"],
.htwo input[type="text"],
.htwo input[type="email"],
.htwo input[type="tel"],
.htwo input[type="number"],
.htwo select,
.htwo textarea {
	box-sizing: border-box;
	min-height: 40px;
	padding: 6px 10px;
	border: 1px solid #c8c8c8;
	border-radius: 4px;
	background-color: #fff;
	color: inherit;
	font: inherit;
	font-size: 15px;
}
.htwo textarea {
	min-height: 96px;
}
.htwo input:focus,
.htwo select:focus,
.htwo textarea:focus {
	border-color: var(--htwo-focus);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--htwo-focus);
}
.htwo-note,
.htwo-privacy {
	color: var(--htwo-muted);
	font-size: 14px;
}

/* Search and filters */
.htwo-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 14px;
	align-items: center;
	margin: 16px 0 8px;
	padding: 12px;
	background: #f6f6f6;
	border-radius: 6px;
}
.htwo .htwo-search {
	flex: 1 1 260px;
	min-width: 0;
	background: #fff;
}
.htwo .htwo-cat {
	flex: 0 1 300px;
	min-width: 0;
	background-color: #fff;
}
.htwo-only {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	white-space: nowrap;
	cursor: pointer;
}
.htwo-only input {
	margin: 0;
}
.htwo-shown {
	margin-left: auto;
	color: var(--htwo-muted);
	font-size: 13px;
}

/* Products */
.htwo-sec-t {
	margin: 28px 0 6px;
	font-size: 22px;
}
.htwo-sub-t {
	margin: 18px 0 4px;
	font-size: 16px;
	color: #555;
}
.htwo-p {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.25fr);
	gap: 14px;
	align-items: start;
	padding: 12px 0;
	border-top: 1px solid var(--htwo-line);
}
.htwo-img img,
.htwo-noimg {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 4px;
	background: #f2f2f2;
}
.htwo-pn {
	font-weight: 600;
	line-height: 1.35;
}
.htwo-code {
	display: block;
	margin-top: 2px;
	color: var(--htwo-muted);
	font-size: 12px;
	font-weight: 400;
}
.htwo .htwo-v {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}
.htwo .htwo-v th {
	padding: 0 6px 4px;
	border: 0;
	color: var(--htwo-muted);
	font-size: 12px;
	font-weight: 400;
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
}
.htwo .htwo-v td {
	padding: 4px 6px;
	border: 0;
	border-top: 1px solid #f0f0f0;
	vertical-align: middle;
}
.htwo .htwo-c-price,
.htwo .htwo-v .htwo-c-price {
	text-align: right;
	white-space: nowrap;
}
.htwo .htwo-c-qty {
	width: 100px;
}
.htwo .htwo-c-qty input {
	width: 92px;
	height: 36px;
	padding: 0 8px;
	text-align: right;
}
.htwo .htwo-c-qty input.htwo-has {
	border-color: var(--htwo-ok);
	background: var(--htwo-ok-bg);
	font-weight: 600;
}
.htwo .htwo-c-qty input.htwo-has:focus {
	box-shadow: 0 0 0 1px var(--htwo-ok);
}
.htwo-oos-t {
	color: #b32d2e;
}

/* The bar with the button, always in view on the list. Fixed, not sticky:
 * themes put overflow:hidden on their wrappers, which breaks sticky. */
.htwo-view-list {
	padding-bottom: 90px;
}
.htwo-bar {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 300;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0;
	padding: 12px 170px 12px 16px; /* Room for the "Хоуми" chat button on the right. */
	background: #fff;
	border-top: 2px solid var(--htwo-accent);
	box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}
@media (max-width: 1024px) {
	body.sticky-toolbar-on .htwo-bar {
		bottom: 55px; /* Above WoodMart's bottom toolbar on phones and tablets. */
	}
}
.htwo .htwo-btn {
	min-height: 42px;
	padding: 10px 22px;
	border: 0;
	border-radius: 4px;
	background: var(--htwo-accent);
	color: #fff;
	font-weight: 600;
	text-transform: none;
	cursor: pointer;
}
.htwo .htwo-btn[disabled] {
	opacity: 0.45;
	cursor: default;
}
.htwo .htwo-link {
	min-height: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--htwo-accent);
	font-weight: 400;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

/* Review and details */
.htwo-scroll {
	overflow-x: auto;
	margin: 0 0 24px;
}
.htwo .htwo-rt {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
}
.htwo .htwo-rt th,
.htwo .htwo-rt td {
	padding: 8px;
	border: 0;
	border-bottom: 1px solid var(--htwo-line);
	text-align: left;
	vertical-align: middle;
}
.htwo .htwo-rt th {
	color: var(--htwo-muted);
	font-size: 12px;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}
.htwo .htwo-rt .htwo-c-price {
	text-align: right;
}
.htwo-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.htwo-fields label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
}
.htwo-fields input,
.htwo-fields textarea {
	font-weight: 400;
}
.htwo-fields .htwo-wide {
	grid-column: 1 / -1;
}
.htwo .htwo-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.htwo-error {
	color: #b32d2e;
	font-weight: 600;
}

@media (max-width: 900px) {
	.htwo-hero {
		grid-template-columns: 1fr;
	}
	.htwo-hero-photo {
		order: -1;
		min-height: 200px;
	}
	.htwo-hero-text {
		padding: 26px 22px 24px;
	}
	.htwo .htwo-steps {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.htwo-p {
		grid-template-columns: 64px minmax(0, 1fr);
		gap: 10px 12px;
	}
	.htwo-img img,
	.htwo-noimg {
		width: 64px;
		height: 64px;
	}
	.htwo .htwo-v {
		grid-column: 1 / -1;
	}
	.htwo .htwo-c-qty {
		width: 84px;
	}
	.htwo .htwo-c-qty input {
		width: 80px;
	}
	.htwo-shown {
		width: 100%;
		margin-left: 0;
	}
	.htwo-bar {
		padding-right: 84px;
	}
	.htwo-view-list {
		padding-bottom: 130px;
	}
	.htwo-fields {
		grid-template-columns: 1fr;
	}
}
