/**
 * Made-to-order UI — Esmeralda Paper
 */
.ep-mto-panel {
	margin: 0 0 1rem;
}

.ep-mto-box {
	padding: 1rem 1.1rem;
	border: 1px solid #e5e1db;
	border-left: 3px solid #455a51;
	border-radius: 8px;
	background: #f7f4ef;
}

.ep-mto-box--ready {
	border-left-color: #5a7a6a;
}

.ep-mto-box__badge {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	background: #2c3a34;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.ep-mto-box__badge--ready {
	background: #455a51;
}

.ep-mto-box__intro,
.ep-mto-box__deadline,
.ep-mto-box__transport {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #3a3a3a;
}

.ep-mto-box__transport {
	margin-bottom: 0;
	font-size: 0.82rem;
	color: #6a6e6c;
}

.ep-mto-box__deadline {
	font-weight: 600;
	color: #2c3a34;
}

/* Hide misleading in-stock green for MTO */
.stock.ep-mto-available,
.available-on-backorder.ep-mto-available {
	color: #2c3a34 !important;
}

body.ashe-dark-mode .ep-mto-box {
	background: #1f2228;
	border-color: #2e3238;
	border-left-color: #cbb79c;
}

body.ashe-dark-mode .ep-mto-box__intro,
body.ashe-dark-mode .ep-mto-box__deadline {
	color: #f3f0ec;
}

body.ashe-dark-mode .ep-mto-box__transport {
	color: #b8b4ae;
}

body.ashe-dark-mode .ep-mto-box__badge {
	background: #cbb79c;
	color: #16181c;
}

@media (max-width: 600px) {
	.ep-mto-box {
		padding: 0.85rem 0.95rem;
	}
}

/* Select options hint (no definitive availability yet) */
.ep-mto-select-hint {
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.75rem;
	font-size: 0.88rem;
	line-height: 1.45;
	color: #5a5e5c;
	background: #faf9f7;
	border: 1px dashed #d8d3cb;
	border-radius: 6px;
}

body.ashe-dark-mode .ep-mto-select-hint {
	color: #b8b4ae;
	background: #1a1c20;
	border-color: #2e3238;
}

/* Quote only */
.ep-quote-only {
	margin: 1rem 0 1.25rem;
	padding: 1.15rem 1.2rem;
	border: 1px solid #e5e1db;
	border-left: 3px solid #455a51;
	border-radius: 8px;
	background: #f7f4ef;
}

.ep-quote-only__text {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #3a3a3a;
}

.ep-quote-only__actions {
	margin: 0.75rem 0 0;
}

.ep-quote-only__btn.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.65rem 1.35rem !important;
	background: #2c3a34 !important;
	border-color: #2c3a34 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.ep-quote-only__btn.button:hover {
	background: #455a51 !important;
	border-color: #455a51 !important;
	color: #fff !important;
}

/* Hide cart controls on quote-only product pages */
.single-product .product.ep-is-quote-only .single_add_to_cart_button:not(.ep-quote-only__btn),
.single-product .product.ep-is-quote-only .quantity,
.single-product .product.ep-is-quote-only .woocommerce-variation-add-to-cart {
	display: none !important;
}

body.ashe-dark-mode .ep-quote-only {
	background: #1f2228;
	border-color: #2e3238;
	border-left-color: #cbb79c;
}

body.ashe-dark-mode .ep-quote-only__text {
	color: #e8e4de;
}

/* Provisional price lot limit note */
.ep-provisional-note {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid #e5e1db;
	border-left: 3px solid #8a7355;
	border-radius: 8px;
	background: #faf8f5;
}

.ep-provisional-note__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #3a3a3a;
}

.ep-provisional-note__link {
	font-weight: 600;
	color: #2c3a34;
	text-decoration: underline;
}

body.ashe-dark-mode .ep-provisional-note {
	background: #1f2228;
	border-color: #2e3238;
	border-left-color: #cbb79c;
}

body.ashe-dark-mode .ep-provisional-note__text {
	color: #e8e4de;
}

body.ashe-dark-mode .ep-provisional-note__link {
	color: #cbb79c;
}

@media (max-width: 600px) {
	.ep-quote-only__btn.button {
		width: 100%;
		min-height: 48px;
	}
}
