/* WDR Frontend Display
 * Inspirado en el mockup proporcionado por el usuario.
 */

.wdrfd-wrapper {
	margin: 1.5rem 0;
	font-family: inherit;
	color: #111;
}

.wdrfd-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 1rem;
	color: #111;
}

.wdrfd-options {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.wdrfd-option {
	position: relative;
	display: block;
	padding: 1rem 1.25rem;
	border: 2px solid #e6e6e6;
	border-radius: 16px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.wdrfd-option:hover {
	border-color: #111;
}

.wdrfd-option.is-active {
	border-color: #111;
	box-shadow: 0 0 0 1px #111 inset;
}

/* Ocultar el radio nativo pero mantenerlo accesible. */
.wdrfd-radio-input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.wdrfd-option-row {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.wdrfd-radio {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #111;
	background: #fff;
	display: inline-block;
	position: relative;
}

.wdrfd-option.is-active .wdrfd-radio::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #111;
	transform: translate(-50%, -50%);
}

.wdrfd-option-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.wdrfd-option-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111;
	line-height: 1.3;
}

.wdrfd-option-price {
	flex-shrink: 0;
	text-align: right;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.wdrfd-price-final {
	font-size: 1.25rem;
	font-weight: 700;
	color: #111;
}

.wdrfd-price-final .woocommerce-Price-amount {
	font-size: inherit;
	font-weight: inherit;
	color: inherit;
}

.wdrfd-price-original {
	font-size: 0.95rem;
	color: #888;
	text-decoration: line-through;
}

.wdrfd-price-original .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
}

/* Tags / badges */
.wdrfd-tag {
	display: inline-block;
	padding: 0.3rem 0.7rem;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	background: #b6f0d6;
	color: #0a3a25;
	width: fit-content;
}

.wdrfd-tag--best {
	position: absolute;
	top: -0.7rem;
	left: 3rem;
	background: #8eecc1;
	color: #0a3a25;
	font-size: 0.8rem;
	padding: 0.3rem 0.65rem;
}

.wdrfd-tag--badge {
	background: #b6f0d6;
	color: #0a3a25;
}

/* Móvil */
@media (max-width: 600px) {
	.wdrfd-option {
		padding: 0.9rem 1rem;
		border-radius: 14px;
	}
	.wdrfd-option-row {
		gap: 0.75rem;
	}
	.wdrfd-option-title {
		font-size: 0.95rem;
	}
	.wdrfd-price-final {
		font-size: 1.05rem;
	}
	.wdrfd-tag--best {
		left: 2.5rem;
	}
}
