/**
 * STG Ecommerce Brief — Plan card styles
 *
 * Supplement to brief-form.css for the plan selection
 * radio cards in the [stg_ecommerce_brief] shortcode.
 */

/* ------------------------------------------------
   Plan card grid
   ------------------------------------------------ */

.stg-ec__plans {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

/* ------------------------------------------------
   Plan card
   ------------------------------------------------ */

.stg-ec__plan-card {
	position: relative;
	display: block;
	padding: 24px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.stg-ec__plan-card:hover {
	border-color: rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.05);
}

.stg-ec__plan-card--selected {
	border-color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

.stg-ec__plan-card--popular {
	border-color: rgba(255, 255, 255, 0.2);
}

.stg-ec__plan-card--popular.stg-ec__plan-card--selected {
	border-color: #ffffff;
}

/* Hide native radio */
.stg-ec__plan-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

/* ------------------------------------------------
   Plan badge (Recomendado)
   ------------------------------------------------ */

.stg-ec__plan-badge {
	position: absolute;
	top: -1px;
	right: 24px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #050507;
	background: #ffffff;
	padding: 5px 14px;
	line-height: 1;
}

/* ------------------------------------------------
   Plan header (name + price)
   ------------------------------------------------ */

.stg-ec__plan-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
	gap: 16px;
}

.stg-ec__plan-name {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 20px;
	color: #ffffff;
}

.stg-ec__plan-price {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 18px;
	color: #ffffff;
	white-space: nowrap;
}

.stg-ec__plan-price small {
	font-size: 12px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.4);
}

/* ------------------------------------------------
   Plan description
   ------------------------------------------------ */

.stg-ec__plan-desc {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
	margin: 0 0 16px 0;
}

/* ------------------------------------------------
   Plan highlights
   ------------------------------------------------ */

.stg-ec__plan-highlights {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.stg-ec__plan-highlights li {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
	padding-left: 16px;
	position: relative;
}

.stg-ec__plan-highlights li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 5px;
	width: 6px;
	height: 6px;
	border: 1px solid rgba(255, 255, 255, 0.25);
}

.stg-ec__plan-card--selected .stg-ec__plan-highlights li::before {
	background: #ffffff;
	border-color: #ffffff;
}

/* ------------------------------------------------
   Selection indicator
   ------------------------------------------------ */

.stg-ec__plan-card::after {
	content: '';
	position: absolute;
	top: 24px;
	right: 24px;
	width: 20px;
	height: 20px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	transition: all 0.15s ease;
}

.stg-ec__plan-card--popular::after {
	top: 36px;
}

.stg-ec__plan-card--selected::after {
	background: #ffffff;
	border-color: #ffffff;
}

/* Checkmark inside the indicator */
.stg-ec__plan-card--selected::before {
	content: '';
	position: absolute;
	top: 27px;
	right: 30px;
	width: 5px;
	height: 9px;
	border: solid #050507;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	z-index: 1;
}

.stg-ec__plan-card--popular.stg-ec__plan-card--selected::before {
	top: 39px;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */

@media (max-width: 600px) {
	.stg-ec__plan-header {
		flex-direction: column;
		gap: 4px;
	}

	.stg-ec__plan-highlights {
		grid-template-columns: 1fr;
	}

	.stg-ec__plan-card::after {
		top: 16px;
		right: 16px;
	}

	.stg-ec__plan-card--popular::after {
		top: 28px;
	}

	.stg-ec__plan-card--selected::before {
		top: 19px;
		right: 22px;
	}

	.stg-ec__plan-card--popular.stg-ec__plan-card--selected::before {
		top: 31px;
	}

	.stg-ec__plan-card {
		padding: 20px 16px;
	}

	.stg-ec__plan-badge {
		right: 16px;
	}
}
