/* Woodmart: ensure .wtt-* blocks do not break flex/grid. Loaded only when Woodmart is active. */

/* Preorder label inside product-labels box (same as HOT/Sale) — color from inline style. */
body.wtt-woodmart .product-labels .product-label.wtt-preorder {
	text-transform: uppercase;
	font-weight: 700;
	min-height: 75px;
    min-width: 75px;
    font-size: 12px;
	border-radius: 50%;
	display: flex;
    justify-content: center;
    align-items: center;
}

body.wtt-woodmart .wtt-box-info {
	flex: none;
	max-width: 100%;
}

body.wtt-woodmart .summary .wtt-box-info,
body.wtt-woodmart .summary .wtt-totals {
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 576px) {
	body.wtt-woodmart .product-labels .product-label.wtt-preorder {
		min-height: 50px;
		min-width: 50px;
		font-size: 8px;
	}
}

/* Custom stock style: wrapper classes and tooltip (single product availability line) */
.single-product .stock.wtt-stock-by-area,
.single-product .stock.wtt-stock-by-boxes {
	align-items: center;
	flex-wrap: wrap;
	gap: 0.25em;
	color: black;
}

.single-product .stock.wtt-stock-by-area span,
.single-product .stock.wtt-stock-by-boxes span {
	color: var(--wd-primary-color);
}

p.stock.wtt-stock-by-area.in-stock:before,
p.stock.wtt-stock-by-boxes.in-stock:before {
    margin-inline-end: 5px;
    color: var(--wd-primary-color);
    font-family: "woodmart-font";
}

p.stock.wtt-stock-by-area.in-stock:before {
    content: "\f127";
}

p.stock.wtt-stock-by-boxes.in-stock:before {
    content: "\f182";
}

.single-product .wtt-stock-tooltip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: help;
	vertical-align: middle;
}

.single-product .wtt-stock-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.15em;
	height: 1.15em;
	font-size: 0.8em;
	font-weight: 600;
	line-height: 1;
	border-radius: 50%;
	border: 1px solid currentColor;
	background: transparent;
	opacity: 0.65;
	color: inherit;
}

.single-product .wtt-stock-tooltip:hover .wtt-stock-tooltip-icon {
	opacity: 1;
}
