/* WEDO Purchase Options — selectable plan cards. */

/* Fill the parent container by default (Elementor flex containers size
   widgets to content otherwise). The Advanced > Width control still wins —
   Elementor's per-element selector is more specific. */
.elementor-widget-wedo-purchase-options {
	width: 100%;
	max-width: 100%;
}

.wedo-po {
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* In "Side by Side" layout, cards share the row equally. */
.wedo-po__card {
	flex: 1 1 auto;
	min-width: 0;
}

/* Card. NOTE: real <button> — hello-elementor reset.css paints all buttons
   with a red border/hover; every state is pinned explicitly here. Widget
   controls ({{WRAPPER}} selectors) override these. */
.wedo-po__card,
.wedo-po__card:hover,
.wedo-po__card:focus {
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.wedo-po__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin: 0;
	/* Transparent base border keeps the card size identical between the
	   borderless normal state and the 2px selected border (no layout jump). */
	border: 2px solid transparent;
	cursor: pointer;
	text-align: left;
	font: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Header row: radio vertically centered against title+subtitle, price right. */
.wedo-po__head {
	display: flex;
	align-items: center;
	gap: var(--wedo-po-radio-gap, 30px);
	width: 100%;
}

.wedo-po__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	min-width: 0;
}

/* Custom radio circle */
.wedo-po__radio {
	flex: 0 0 auto;
	width: var(--wedo-po-radio-size, 30px);
	height: var(--wedo-po-radio-size, 30px);
	border-radius: 50%;
	border: 2px solid var(--wedo-po-radio-ring, #176a55);
	background: transparent;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.wedo-po__card.is-selected .wedo-po__radio {
	border-color: var(--wedo-po-radio-active, #176a55);
	background: var(--wedo-po-radio-active, #176a55);
	box-shadow: inset 0 0 0 4px #fff;
}

.wedo-po__title {
	display: block;
}

/* Price column: struck regular price sits ABOVE the live price (Figma). */
.wedo-po__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	white-space: nowrap;
	flex: 0 0 auto;
	margin-left: auto;
}

.wedo-po__regular {
	color: rgba(65, 83, 80, 0.6);
	font-size: 0.67em;
	font-weight: 400;
	text-decoration: line-through;
}

/* Secondary (BGN) currency line: keep the double price visible but compact —
   smaller and lighter than the leading EUR price (Figma card height). */
.wedo-po__price > .amount-bgn {
	font-size: 0.67em;
	font-weight: 400;
	opacity: 0.8;
	line-height: 1.3;
}

.wedo-po__regular .amount-bgn {
	font-size: 1em;
}

.wedo-po__subtitle {
	display: block;
}

/* ⚠️ The cards are <button>s and the theme reset puts white-space:nowrap on
   every button — it INHERITS into all card text. On narrow phones (Samsung
   ≈360dp) the un-wrappable title painted straight under the price (user-
   reported overlap). Explicit normal beats inheritance at any specificity. */
.wedo-po__title,
.wedo-po__subtitle,
.wedo-po__benefit,
.wedo-po__heading {
	white-space: normal;
}

/* Benefits span the FULL card width (checks align under the radio — Figma). */
.wedo-po__benefits {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--wedo-po-divider, rgba(65, 83, 80, 0.15));
}

.wedo-po__benefit {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Bold rounded checkmark (SVG mask so the color control applies). */
.wedo-po__benefit::before {
	content: "";
	width: 1.05em;
	height: 1.05em;
	flex: 0 0 auto;
	background-color: var(--wedo-po-check, #176a55);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M4 12.5l5.5 5.5L20 6.5' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wedo-po__badge {
	position: absolute;
	top: -10px;
	right: 14px;
	line-height: 1;
	white-space: nowrap;
}

/* Figma mobile card (698:1598/1599): the price stays INLINE on the title row,
   right-aligned — at the reduced mobile sizes (title 15 / price 15 / subtitle
   10) both fit side by side in a 320px card; the old own-row fallback (which
   pushed the price far below the title) is gone per user request. min-width:0
   lets the title block shrink instead of shoving the price out. */
@media ( max-width: 480px ) {
	.wedo-po__head {
		align-items: flex-start;
	}

	.wedo-po__head > :not(.wedo-po__price):not(.wedo-po__radio) {
		min-width: 0;
	}

	.wedo-po__price {
		flex: 0 0 auto;
		margin-left: auto;
	}

	/* Figma mobile benefits pitch 22px (13px text + ~10 gap, 351:505-507). */
	.wedo-po__benefits {
		gap: 10px;
	}
}

/* Hide APFS's native (unstyled) plan list wherever this widget is present —
   the real radios keep working inside the form; the cards drive them via JS. */
.wcsatt-options-wrapper {
	display: none !important;
}
