/* ==========================================================================
   Bverr plan cards — [bverr_plans]
   Location: bverr-account/assets/css/plan-cards.css
   Depends on: bverr-tokens.css
   ========================================================================== */

/* Wrapper */
.bv-plans-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--bv-space-8);
	width: 100%;
	font-family: var(--bv-font);
}
.bv-plans-wrap > .bv-plans {
	width: 100%;
}

/* --------------------------------------------------------------------------
   Billing toggle — Vimeo-style outlined pill + "months free" tag.
   !important on the visual properties so theme / Elementor Kit
   button styles can never leak in.
   -------------------------------------------------------------------------- */
.bv-plans-wrap .bv-billing {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
}
.bv-plans-wrap .bv-billing .bv-billing__track {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	background: var(--bv-surface);
	border: 1.5px solid var(--bv-text);
	border-radius: 999px;
}
.bv-plans-wrap .bv-billing .bv-billing__opt {
	all: unset;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 7px 18px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--bv-text) !important;
	box-shadow: none !important;
	font-family: var(--bv-font) !important;
	font-size: var(--bv-fs-sm) !important;
	font-weight: 500 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.bv-plans-wrap .bv-billing .bv-billing__opt:hover {
	background: var(--bv-bg) !important;
}
.bv-plans-wrap .bv-billing .bv-billing__opt[aria-pressed="true"],
.bv-plans-wrap .bv-billing .bv-billing__opt[aria-pressed="true"]:hover {
	background: var(--bv-text) !important;
	color: #fff !important;
}
.bv-plans-wrap .bv-billing .bv-billing__opt:focus-visible {
	outline: 2px solid var(--bv-primary) !important;
	outline-offset: 2px;
}

/* "2 months free" tag with a little pointer, like Vimeo's "Save 40%" */
.bv-plans-wrap .bv-billing .bv-billing__tag {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--bv-text);
	color: #fff;
	font-size: var(--bv-fs-xs);
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}
.bv-plans-wrap .bv-billing .bv-billing__tag::before {
	content: "";
	position: absolute;
	left: -5px;
	top: 50%;
	transform: translateY(-50%);
	border-style: solid;
	border-width: 5px 6px 5px 0;
	border-color: transparent var(--bv-text) transparent transparent;
}

/* Grid */
.bv-plans {
	display: grid;
	grid-template-columns: repeat(var(--bv-plan-count, 4), minmax(0, 1fr));
	gap: var(--bv-space-6);
	align-items: stretch;
	font-family: var(--bv-font);
}

/* Card: name, tagline, price, highlights, button, features list.
   Fallback (older browsers): a plain column. */
.bv-plan {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-4);
	padding: var(--bv-space-8) var(--bv-space-6);
	position: relative;
}
.bv-plan,
.bv-plan *,
.bv-plan *::before,
.bv-plan *::after {
	box-sizing: border-box; /* full-width buttons stay inside the card */
}

/* Modern browsers: every card shares the grid's rows (subgrid), so names, prices, lists and
   buttons line up across a row of cards however the text wraps; the features list starts under the button. */
@supports (grid-template-rows: subgrid) {
	.bv-plans {
		row-gap: var(--bv-space-6);
	}
	.bv-plan {
		display: grid;
		grid-row: span 6;
		grid-template-rows: subgrid;
		row-gap: var(--bv-space-4);
		align-content: start;
	}
	.bv-plan__cta {
		align-self: start; /* buttons level across cards, with or without a trial line under them */
	}
	.bv-plan__more {
		align-self: start;
	}
	.bv-plans-wrap .bv-plan__tagline,
	.bv-plans-wrap .bv-plan__price {
		min-height: 0; /* the shared rows do the aligning now */
	}
}

/* Lift the featured card slightly on desktop */
@media (min-width: 1025px) {
	.bv-plan--featured {
		transform: translateY(-8px);
	}
}

.bv-plan__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--bv-space-2);
}

.bv-plan__name {
	margin: 0;
	font-size: var(--bv-fs-lg);
	font-weight: 700;
	color: var(--bv-text);
}

.bv-plan__tagline {
	margin: 0;
	font-size: var(--bv-fs-sm);
	color: var(--bv-text-muted);
	min-height: 2.6em; /* keeps prices aligned across cards */
}

/* One price + button block per billing period */
.bv-plan__period {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-4);
}
.bv-plan__period[hidden] {
	display: none !important;
}

/* Price — Vimeo-style: big monthly figure, small "per month / billed …" */
.bv-plans-wrap .bv-plan__price {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 92px; /* fallback: keeps prices aligned across cards */
	line-height: 1.2;
}
.bv-plans-wrap .bv-plan__price-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
}
.bv-plans-wrap .bv-plan__amount {
	font-size: var(--bv-fs-2xl);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bv-text);
}
.bv-plans-wrap .bv-plan__was {
	font-size: var(--bv-fs-2xl);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #c3c8d1;
	text-decoration: line-through;
	text-decoration-thickness: 2px;
}
.bv-plans-wrap .bv-plan__price-notes {
	display: flex;
	flex-direction: column;
	gap: 1px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--bv-text-muted);
}

/* Disabled button */
.bv-btn--disabled {
	opacity: 0.5;
	pointer-events: none;
	cursor: not-allowed;
}

/* What's included: a divider, then the highlights with an icon and the number in bold */
.bv-plan__body {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-4);
	padding-top: var(--bv-space-6);
	border-top: 1px solid var(--bv-border);
}
.bv-plan__limits {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--bv-space-3);
	align-content: start;
}
.bv-plan__limits li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: var(--bv-fs-sm);
	line-height: 20px;
	color: var(--bv-text);
}
.bv-plan__limits strong {
	font-weight: 700;
	color: var(--bv-text);
}
.bv-plan__icon {
	flex: 0 0 auto;
	color: var(--bv-primary);
	margin-top: 0;
}

/* Features under the button: titled sections, each with a divider above it */
/* "14 days free trial" under the button */
.bv-plans-wrap .bv-plan__trial {
	margin: calc(var(--bv-space-1) * -1) 0 0; /* the period block already adds 16px; this makes it 12px */
	font-size: var(--bv-fs-sm);
	line-height: 20px;
	color: var(--bv-text-muted);
	text-align: center;
}

.bv-plan__more {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-3);
}
.bv-plans-wrap .bv-plan__includes {
	margin: 0;
	font-size: var(--bv-fs-sm);
	font-weight: 500;
	line-height: 20px;
	color: var(--bv-text-muted);
}
.bv-plan__more-body {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-6);
	padding: var(--bv-space-4) 0;
	border-top: 1px solid var(--bv-border);
	border-bottom: 1px solid var(--bv-border);
}

/* "See all features" toggle: all screen sizes. !important keeps theme button styles out. */
.bv-plans-wrap .bv-plan__more-toggle {
	all: unset;
	box-sizing: border-box;
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 8px 12px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: var(--bv-radius-sm) !important;
	background: transparent !important;
	color: var(--bv-text-muted) !important;
	box-shadow: none !important;
	font-family: var(--bv-font) !important;
	font-size: var(--bv-fs-sm) !important;
	font-weight: 500 !important;
	line-height: 20px !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	cursor: pointer;
}
.bv-plans-wrap .bv-plan__more-toggle:hover {
	background: var(--bv-bg) !important;
	color: var(--bv-text) !important;
}
.bv-plans-wrap .bv-plan__more-toggle:focus-visible {
	outline: 2px solid var(--bv-primary) !important;
	outline-offset: 2px;
}
.bv-plans-wrap .bv-plan__more-toggle svg {
	transition: transform 0.2s ease;
}
.bv-plans-wrap .bv-plan[data-more="open"] .bv-plan__more-toggle svg {
	transform: rotate(180deg);
}
.bv-plans--js .bv-plan:not([data-more="open"]) .bv-plan__more-body {
	display: none;
}
/* Open: "Hide features" sits under the features. */
.bv-plans-wrap .bv-plan[data-more="open"] .bv-plan__more-toggle {
	order: 2;
}
.bv-plan__fsec {
	display: flex;
	flex-direction: column;
	gap: var(--bv-space-3);
}
.bv-plans-wrap .bv-plan__ftitle {
	margin: 0;
	font-size: var(--bv-fs-sm);
	font-weight: 700;
	line-height: 20px;
	color: var(--bv-text);
}
.bv-plan__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--bv-space-3);
	align-content: start;
}
.bv-plan__features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: var(--bv-fs-sm);
	line-height: 20px;
	color: var(--bv-text);
}
.bv-plan__check {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--bv-text-muted); /* grey ticks, like the reference */
}

.bv-plans__notice {
	padding: var(--bv-space-4);
	border: 1px dashed var(--bv-primary);
	border-radius: var(--bv-radius-sm);
	color: var(--bv-primary);
	font-size: var(--bv-fs-sm);
}

/* Responsive */
@media (max-width: 1024px) {
	.bv-plans {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.bv-plans {
		grid-template-columns: 1fr;
	}

	.bv-plan {
		padding: var(--bv-space-6) var(--bv-space-4);
	}
	.bv-plans-wrap .bv-billing .bv-billing__opt {
		min-width: 0;
		padding: 7px 14px !important;
	}
}
