/* Woo Tile Meter — frontend. All selectors prefixed with .wtt- */

.single-product .wtt-box-info,
.woocommerce .wtt-box-info {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.5em 1em;
	margin: 0.75em 0;
	padding: 0.5em 0;
	border-top: 1px solid #e5e5e5;
}

.wtt-box-info-row {
	display: flex;
	align-items: center;
	gap: 0.35em;
	margin: 0;
}

.wtt-box-info-row--pieces .wtt-label::before,
.wtt-box-info-row--size .wtt-label::before {
	display: inline-block;
	margin-right: 0.25em;
	font-family: "woodmart-font";
	font-weight: 400;
}

.wtt-box-info-row--pieces .wtt-label::before {
	content: "\f12b";
}

.wtt-box-info-row--size .wtt-label::before {
	content: "\f13f";
}

.wtt-box-info .wtt-label {
	font-weight: 600;
}

.wtt-box-info .wtt-value {
	white-space: nowrap;
}

.wtt-totals {
	margin-top: 1em;
}

.wtt-price {
	color: var(--wd-primary-color);
}

.wtt-totals-row {
	display: block;
	margin: 0.35em 0;
}

.wtt-totals .wtt-label {
	font-weight: 600;
	margin-right: 0.5em;
}

.wtt-stock-display {
	display: block;
	margin: 0.5em 0;
}

.wtt-stock-display .wtt-stock-display-value {
	font-weight: 500;
}

.wtt-trust-text {
	font-size: 0.9em;
	color: #666;
	margin-top: 0.5em;
}

.wtt-per-m2 {
	opacity: 0.9;
	font-size: 0.95em;
}

/* Made in Italy badge + Acoperire — sub titlu pe PDP */
.wtt-made-in-italy-wrap {
	text-transform: uppercase;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em 1em;
	margin: 0.5em 0;
}

.wtt-made-in-italy-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	padding: 0.25em 0.6em;
	background: #f8f8f8;
	border: 1px solid #e5e5e5;
	border-radius: 4px;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.wtt-made-in-italy-badge .wtt-flag-italy {
	flex-shrink: 0;
	vertical-align: middle;
	border-radius: 2px;
}

.wtt-made-in-italy-badge .wtt-made-in-italy-text {
	line-height: 1.2;
}

.wtt-coverage-per-box {
	font-size: 0.9em;
	color: #555;
	line-height: 1.3;
}

.wtt-preorder-badge {
	display: inline-block;
	padding: 0.2em 0.55em;
	border-radius: 3px;
	background: #d63638;
	color: #fff;
	font-size: 0.78em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.woocommerce ul.products li.product .wtt-preorder-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 6;
}

/* Overage controls + tooltip (PDP) */
.wtt-overage-wrap {
	display: block;
	margin: 0.75em 0 0.75em 0;
}

.wtt-overage-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	cursor: pointer;
}

.wtt-overage-percent {
	max-width: 110px;
}

.wtt-overage-select-wrap {
	display: flex;
	gap: 0.5em;
	max-width: 110px;
	margin-top: 0.5em;
}

.wtt-overage-percent:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wtt-overage-percent-sign {
	opacity: 0.85;
}

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

.wtt-overage-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;
}

.wtt-overage-tooltip:hover .wtt-overage-tooltip-icon {
	opacity: 1;
}

/* Coverage Calculator */
.wtt-coverage-calc-wrap {
	margin-top: 1.25em;
}

.wtt-coverage-calc-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
	color: inherit;
	font-weight: 600;
}

.wtt-coverage-calc-trigger:hover {
	color: var(--wd-primary-color, #111);
}

.wtt-coverage-calc-icon {
	flex-shrink: 0;
	display: block;
}

.wtt-coverage-calculator {
	border: 1px solid rgba(61, 57, 53, 0.5);
	background: #fff;
	border-radius: var(--wd-border-radius, 0.75rem);
	padding: 1.5rem;
	margin-top: 1rem;
}

.wtt-coverage-calc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.wtt-coverage-calc-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.wtt-coverage-calc-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 0.25rem;
	cursor: pointer;
	color: #999;
	line-height: 1;
}

.wtt-coverage-calc-close:hover {
	color: #333;
}

.wtt-coverage-calc-desc {
	font-size: 0.9em;
	color: #555;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.wtt-coverage-calc-info-box {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: var(--wd-bg-1, #f0f0f0);
	border-radius: var(--wd-border-radius, 0.5rem);
	padding: 0.875rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.9em;
	color: inherit;
}

.wtt-coverage-calc-info-icon {
	flex-shrink: 0;
	margin-top: 0.1em;
	opacity: 0.75;
}

.wtt-coverage-calc-info-box p {
	margin: 0;
	line-height: 1.45;
}

.wtt-coverage-calc-fields-row {
	display: flex;
	align-items: flex-end;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.wtt-coverage-calc-field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wtt-coverage-calc-field-header {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.wtt-coverage-calc-field-label {
	font-size: 0.85rem;
	font-weight: 600;
	color: inherit;
	opacity: 0.75;
	margin: 0;
	white-space: nowrap;
}

.wtt-coverage-calc-tooltip {
	display: inline-flex;
	align-items: center;
	cursor: help;
	flex-shrink: 0;
}

.wtt-coverage-calc-tooltip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	border-radius: 50%;
	border: 1px solid currentColor;
	opacity: 0.5;
	color: inherit;
}

.wtt-coverage-calc-tooltip:hover .wtt-coverage-calc-tooltip-icon {
	opacity: 0.9;
}

.wtt-coverage-calc-input-row {
	display: flex;
	align-items: center;
}

.wtt-coverage-calc-area {
	width: 100%;
	border: none;
	border-bottom: 1px solid rgba(61, 57, 53, 0.35);
	outline: none;
	font: inherit;
	font-size: 1rem;
	background: transparent;
	color: inherit;
	-moz-appearance: textfield;
	appearance: textfield;
	padding: 0.3rem 0;
}

.wtt-coverage-calc-area::-webkit-outer-spin-button,
.wtt-coverage-calc-area::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.wtt-coverage-calc-area:focus {
	border-bottom-color: var(--wd-primary-color, #333);
	outline: none;
}

.wtt-coverage-calc-area::placeholder {
	color: #aaa;
}

.wtt-coverage-calc-overage-row {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.wtt-coverage-calc-overage {
	width: 100%;
	border: none;
	border-bottom: 1px solid rgba(61, 57, 53, 0.35);
	outline: none;
	font: inherit;
	font-size: 1rem;
	padding: 0.3rem 1.5rem 0.3rem 0;
	background: transparent;
	color: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	cursor: pointer;
}

.wtt-coverage-calc-chevron {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #555;
	flex-shrink: 0;
}

.wtt-coverage-calc-results {
	font-size: 0.95rem;
}

.wtt-coverage-calc-result-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.35rem 0;
	line-height: 1.4;
}

.wtt-coverage-calc-result-row label {
	font-weight: 400;
	margin: 0;
}

.wtt-coverage-calc-result-row strong {
	font-weight: 700;
}

.wtt-coverage-calc-divider {
	border: none;
	border-top: 2px solid #ddd;
	margin: 0.5rem 0;
}

.wtt-coverage-calc-total-row label,
.wtt-coverage-calc-total-row strong {
	font-size: 1.1rem;
}

