/* Puradoro — Woodmart dynamic discounts (flat, square corners) */

.wd-dynamic-discounts {
	--pd-tier-accent: #0073e6;
	--pd-tier-accent-light: #f0f7ff;
	--pd-tier-accent-border: #0073e6;
	--pd-tier-badge: #e85d4c;
	margin: 1rem 0 1.25rem;
}

.wd-dynamic-discounts table {
	display: none !important;
}

.wd-dd-tiers {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	padding: 0.875rem 1rem 0.75rem;
	box-shadow: none;
}

.wd-dd-tiers-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.875rem;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	color: #0073e6;
}

.wd-dd-tiers-icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #0073e6;
}

.wd-dd-tiers-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.wd-dd-tiers-title-text {
	flex: 1;
	min-width: 0;
}

.wd-dd-tiers-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wd-dd-tier {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 0.625rem 0.875rem;
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	border: 1px solid #e0e0e0;
	border-radius: 0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.wd-dd-tier:hover {
	border-color: #b3d4f5;
	background: #fafcff;
}

.wd-dd-tier.wd-active,
.wd-dd-tier--best.wd-active {
	border-color: var(--pd-tier-accent-border);
	background: var(--pd-tier-accent-light);
	box-shadow: none;
}

.wd-dd-tier--best:not(.wd-active) {
	border-color: #c5dff5;
}

.wd-dd-tier-radio {
	width: 18px;
	height: 18px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.2s ease;
}

.wd-dd-tier.wd-active .wd-dd-tier-radio {
	border-color: var(--pd-tier-accent);
}

.wd-dd-tier.wd-active .wd-dd-tier-radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--pd-tier-accent);
}

.wd-dd-tier-body {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem 0.625rem;
	min-width: 0;
}

.wd-dd-tier-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.35;
}

.wd-dd-tier-save {
	display: inline;
	font-weight: 500;
	color: #666;
}

.wd-dd-tier-badge {
	display: inline-block;
	padding: 0.15rem 0.5rem;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--pd-tier-badge);
	border-radius: 0;
	white-space: nowrap;
}

.wd-dd-tier-price {
	text-align: right;
	white-space: nowrap;
}

.wd-dd-tier-price-value,
.wd-dd-tier-price-value .amount,
.wd-dd-tier-price-value bdi {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0073e6 !important;
}

.wd-dd-tier-price-unit {
	display: block;
	font-size: 11px;
	color: #888;
	margin-top: 0.1rem;
}

.wd-dd-tiers-hint {
	margin: 0.75rem 0 0;
	font-size: 12px;
	color: #888;
	line-height: 1.4;
}

/* Tablet & mobile */
@media (max-width: 767px) {
	.wd-dd-tiers {
		padding: 0.75rem 0.875rem 0.625rem;
	}

	.wd-dd-tiers-title {
		font-size: 13px;
		gap: 0.4375rem;
	}

	.wd-dd-tier {
		grid-template-columns: 18px 1fr;
		grid-template-rows: auto auto;
		gap: 0.375rem 0.625rem;
		padding: 0.6875rem 0.75rem;
		min-height: 52px;
	}

	.wd-dd-tier-radio {
		grid-row: 1 / 3;
		align-self: center;
	}

	.wd-dd-tier-body {
		grid-column: 2;
	}

	.wd-dd-tier-price {
		grid-column: 2;
		text-align: left;
		white-space: normal;
	}

	.wd-dd-tier-price-value,
	.wd-dd-tier-price-value .amount,
	.wd-dd-tier-price-value bdi {
		font-size: 14px !important;
	}

	.wd-dd-tier-label {
		font-size: 13px;
	}

	.wd-dd-tier-badge {
		font-size: 10px;
	}
}

@media (max-width: 380px) {
	.wd-dd-tier-save {
		display: block;
		margin-top: 0.125rem;
	}
}
