dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	align-items: baseline;
	margin-top: 8px;
}
dl.variation dt,
dl.variation dd {
	margin: 0;
}
dl.variation dd p {
	margin: 0;
}

.rcfy-opts {
	--rcfy-orange: #dc4614;
	--rcfy-orange-light: #fdf0eb;
	--rcfy-border: #e2e2e2;
	--rcfy-white: #fff;
	--rcfy-text-dark: #2b2b2b;
	--rcfy-text-light: #8a8a8a;
	margin: 0 0 22px;
	width: 100%;
	max-width: 100%;
}

.rcfy-opt {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	padding: .7rem .7rem;
	border-radius: 12px;
	margin: 0 0 .9rem;
	border: 1.5px solid var(--rcfy-border);
	cursor: pointer;
	transition: all .15s;
	background: var(--rcfy-white);
}

.rcfy-opt:last-of-type {
	margin-bottom: 0;
}

.rcfy-opt.selected {
	border-color: var(--rcfy-orange);
	background: var(--rcfy-orange-light);
}

.rcfy-opt input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.rcfy-radio {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid var(--rcfy-border);
	flex-shrink: 0;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s;
}

.rcfy-opt.selected .rcfy-radio {
	border-color: var(--rcfy-orange);
}

.rcfy-opt.selected .rcfy-radio::after {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rcfy-orange);
}

.rcfy-opt-content {
	flex: 1;
	min-width: 0;
}

.rcfy-opt-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

.rcfy-opt-label {
	font-weight: 700;
	font-size: .95rem;
	color: var(--rcfy-text-dark);
}

.rcfy-opt-price {
	font-weight: 800;
	font-size: .95rem;
	color: var(--rcfy-orange);
	white-space: nowrap;
}

.rcfy-opt-price--plain {
	color: var(--rcfy-orange);
}

.rcfy-opt-sub {
	display: block;
	font-size: .8rem;
	color: var(--rcfy-text-light);
	margin-top: .15rem;
	font-weight: 500;
}

.rcfy-freqs {
	display: none;
	gap: .4rem;
	margin-top: .6rem;
	flex-wrap: wrap;
}

.rcfy-opt--sub.selected .rcfy-freqs {
	display: flex;
}

.rcfy-freq {
	font-size: .78rem;
	padding: .35rem .7rem;
	border-radius: 8px;
	background: var(--rcfy-white);
	border: 1px solid var(--rcfy-border);
	color: var(--rcfy-text-light);
	font-weight: 600;
	cursor: pointer;
	transition: all .15s;
	user-select: none;
}

.rcfy-freq:hover {
	border-color: var(--rcfy-orange);
	color: var(--rcfy-orange);
}

.rcfy-freq.on {
	background: var(--rcfy-orange);
	color: var(--rcfy-white);
	border-color: var(--rcfy-orange);
}

/* Frequency editor in cart page */
.rcfy-cart-freq-editor {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 6px 10px 6px 8px;
	background: #fdf0eb;
	border: 1px solid #f5c8b5;
	border-radius: 8px;
	font-size: 0.82rem;
}
.rcfy-cart-freq-editor__label {
	color: #c04000;
	font-weight: 600;
	white-space: nowrap;
	margin-bottom: 0;
}
.rcfy-cart-freq-editor__select {
	padding: 3px 8px;
	border: 1px solid #f5c8b5;
	border-radius: 6px;
	background: #fff;
	font-size: 0.82rem;
	color: #2b2b2b;
	cursor: pointer;
	min-width: 130px;
}
.rcfy-cart-freq-editor__select:focus,
.rcfy-cart-freq-editor__select:hover { border-color: #dc4614; outline: none; }
.rcfy-cart-freq-editor__spinner {
	display: none;
	width: 13px;
	height: 13px;
	border: 2px solid #dc4614;
	border-top-color: transparent;
	border-radius: 50%;
	animation: rcfySpin 0.6s linear infinite;
	flex-shrink: 0;
}
.rcfy-cart-freq-editor.is-loading .rcfy-cart-freq-editor__spinner { display: inline-block; }
@keyframes rcfySpin {
	to { transform: rotate(360deg); }
}

.quick-buy {
	margin-top: 12px !important;
}

.woocommerce-cart table.cart td.product-price {
	min-width: 130px;
}


/* Botón "apagado": solo apariencia. NO usamos pointer-events:none para poder
   capturar el clic y mostrar el aviso de "elige una frecuencia". */
.rcfy-btn-disabled {
	opacity: 0.45 !important;
	cursor: not-allowed !important;
}

.rcfy-freq-hint {
	font-size: 0.8rem;
	color: #c04000;
	margin: 0 0 6px;
	font-weight: 500;
}

/* Tooltip que avisa que falta elegir la frecuencia */
.rcfy-freq-tooltip {
	position: absolute;
	z-index: 100000;
	background: #2b2b2b;
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 8px 12px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0,0,0,.22);
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .2s ease, transform .2s ease;
}

.rcfy-freq-tooltip.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.rcfy-freq-tooltip::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #2b2b2b;
}

/* Resaltado breve de las pills de frecuencia al intentar continuar sin elegir */
.rcfy-freqs--attention {
	animation: rcfyFreqShake .4s ease;
}

.rcfy-freqs--attention .rcfy-freq {
	border-color: var(--rcfy-orange);
	color: var(--rcfy-orange);
	box-shadow: 0 0 0 2px rgba(220,70,20,.15);
}

@keyframes rcfyFreqShake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

.rcfy-sub-benefits {
	display: none;
	margin: .7rem 0 0;
	padding: .7rem 0 0;
	border-top: 1px solid #f5c8b5;
	font-size: 0.82rem;
	color: #54595f;
}

.rcfy-opt--sub.selected .rcfy-sub-benefits {
	display: block;
}

/* Acordeón de beneficios */
.rcfy-accordion__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}

.rcfy-accordion__header strong {
	font-size: 0.85rem;
	color: #2b2b2b;
	font-weight: 700;
	line-height: 1.3;
}

.rcfy-accordion__chevron {
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	border-right: 2px solid #8a8a8a;
	border-bottom: 2px solid #8a8a8a;
	transform: rotate(45deg);
	transition: transform .2s ease;
	margin-bottom: 2px;
}

.rcfy-accordion.is-open .rcfy-accordion__chevron {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}

.rcfy-accordion__panel {
	display: block;
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height .28s ease, opacity .2s ease, margin-top .2s ease;
}

.rcfy-accordion.is-open .rcfy-accordion__panel {
	max-height: 320px;
	opacity: 1;
	margin-top: 8px;
}

.rcfy-sub-benefits ul {
	margin: 0;
	padding-left: 16px;
}

.rcfy-sub-benefits ul li {
	margin-bottom: 3px;
	line-height: 1.4;
}

/* Badge de precio recurrente en listados y PDP */
.rcfy-price-badge {
	font-size: 15px;
	padding: 5px 0;
	margin: 5px 0;
	display: block;
	color: #C04000;
	font-weight: 700;
}

.rcfy-price-badge .woocommerce-Price-amount {
	color: #C04000;
}

.rcfy-price-badge__label {
	color: #C04000;
}

/* Upsell PM+ integrado con Recurify */
#pmplus-membership-upsell.rcfy-pmplus-upsell {
	border-radius: 12px;
	margin: .9rem 0 .6rem;
	border: 1.5px solid #e2e2e2;
	background: #fff;
	transition: border-color .15s, background .15s;
	width: 100%;
	box-sizing: border-box;
}

.rcfy-opts #pmplus-membership-upsell.rcfy-pmplus-upsell:has(.pmplus-membership-upsell-input:checked),
#pmplus-membership-upsell.rcfy-pmplus-upsell:has(.pmplus-membership-upsell-input:checked),
.rcfy-opts #pmplus-membership-upsell.rcfy-pmplus-upsell.rcfy-pmplus-checked {
	border-color: #dc4614;
	background: #fdf0eb;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .wcsatt-options-prompt-label {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	cursor: pointer;
	margin: 0;
	width: 100%;
	padding: .7rem .7rem;
	box-sizing: border-box;
}

/* Checkbox estilizado como radio de Recurify */
#pmplus-membership-upsell.rcfy-pmplus-upsell .pmplus-membership-upsell-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-radio {
	width: 18px;
	height: 18px;
	min-width: 18px;
	border-radius: 50%;
	border: 2px solid #ccc;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color .15s;
	background: #fff;
	flex-shrink: 0;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .pmplus-membership-upsell-input:checked ~ .rcfy-pmplus-content .rcfy-pmplus-radio,
#pmplus-membership-upsell.rcfy-pmplus-upsell.rcfy-pmplus-checked .rcfy-pmplus-radio {
	border-color: #dc4614;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell.rcfy-pmplus-checked .rcfy-pmplus-radio::after {
	content: '';
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #dc4614;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-content {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	flex: 1;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-text {
	flex: 1;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-label {
	display: block;
	font-weight: 700;
	font-size: .95rem;
	color: #2b2b2b;
	line-height: 1.3;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-sub {
	display: block;
	font-size: .8rem;
	color: #8a8a8a;
	margin-top: 2px;
}

#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-price {
	font-weight: 700;
	font-size: .95rem;
	color: #dc4614;
	white-space: nowrap;
	margin-top: 1px;
	flex-shrink: 0;
}

/* Responsive: en pantallas angostas, el radio y el texto se mantienen en la primera
   fila (radio a la izquierda, título/subtítulo a la derecha) y SOLO el precio salta a
   una segunda línea a ancho completo, para no comprimir el texto ni dejar el radio solo. */
@media (max-width: 480px) {
	#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-content {
		flex-wrap: wrap;
		row-gap: .35rem;
	}

	#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-text {
		flex: 1;
		min-width: 0;
	}

	#pmplus-membership-upsell.rcfy-pmplus-upsell .rcfy-pmplus-price {
		flex: 0 0 100%;
		white-space: normal;
		font-size: .9rem;
		margin-top: 0;
		/* Alinear con el texto (después del radio + gap). */
		padding-left: calc(18px + .75rem);
	}
}
