.uagb-tabs__wrap .uagb-tabs__body-container.pricectable {
	padding: 0;
}
.vaia-nd-pricing {
	box-sizing: border-box;
}

/* ======================
   HEADER LAYOUT (DESKTOP)
   intro + plans wrapper
====================== */
.vaia-nd-pricing__header-row {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 5.2fr);
	align-items: stretch;
}

.vaia-nd-pricing__header-row > div {
	position: relative;
}

/* intro och plans wrapper "kolumner" vertikal linje */
.vaia-nd-pricing__header-row > div:first-child::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 1px;
	height: 100%;
	background: #D8D8D8;
}

.vaia-nd-pricing__intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	padding: 0.75rem 0.5rem 1rem;
}

.vaia-nd-pricing .vaia-nd-pricing__title {
	margin: 40px 0 0;
	font-size: 1.35rem;
	font-weight: 600;
}

.vaia-nd-pricing__toggle {
	border-radius: 200px;
	background: #f5f5ef;
	display: inline-flex;
}

.vaia-nd-pricing__toggle-btn,
.vaia-nd-pricing__toggle-btn:hover {
	color: var(--ast-global-color-3);
	font-size: 20px;
	font-weight: 700;
	border-radius: 200px;
	padding: 25px 40px;
	border: 1px solid transparent;
	background: transparent;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: none;
}
.vaia-nd-pricing__toggle-btn.is-active {
	border-color: #000;
	background: #fff;
}
/* Priser för  Nutrition Data */
@media (min-width: 901px) {
	body .uagb-tabs__panel.uagb-tabs__align-center {
		border-radius: 200px;
		box-shadow: inset 0 0 0 1px #8E8B8B;
	}
}
body #content .uagb-tabs__panel.uagb-tabs__align-center li {
	margin: 0;
}
body .uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab a {
	padding: 25px 40px;
	display: block;
}
.uagb-tabs__wrap ul.uagb-tabs__panel li.uagb-tab.uagb-tabs__active {
	border-color: #000;
}
.uagb-tabs__body-wrap {
	box-shadow: 0 4px 40px -20px rgba(0, 0, 0, 0.25);
}
/* ======================
   PLANS (DESKTOP GRID)
====================== */
.vaia-nd-pricing__plans {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
}

.vaia-nd-pricing__plan {
	text-align: center;
	padding: 40px 20px 35px;
	position: relative;
}

/* vertikala linjer mellan planerna */
.vaia-nd-pricing__plan:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 1px;
	height: 100%;
	background: #D8D8D8;
}

.vaia-nd-pricing .vaia-nd-pricing__plan-title {
	font-size: 25px;
	font-style: normal;
	font-weight: 600;
	line-height: 110%;
	margin-bottom: 10px;
}

.vaia-nd-pricing__price-wrap {
	margin-bottom: 0.75rem;
}

.vaia-nd-pricing__price {
	display: none;
}
.vaia-nd-pricing[data-period="year"] .vaia-nd-pricing__price[data-for-period="year"],
.vaia-nd-pricing[data-period="month"] .vaia-nd-pricing__price[data-for-period="month"] {
	display: block;
}

.vaia-nd-pricing__price-amount {
	display: block;
	font-size: 46px;
	font-style: normal;
	font-weight: 600;
	line-height: 140%;
}

.vaia-nd-pricing__price-per {
	display: block;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	line-height: 180%;
}

.vaia-nd-pricing__cta-wrap {
	margin-top: 0.3rem;
}

/* Visa rätt CTA-länk beroende på period */
#content .vaia-nd-pricing__cta[data-for-period] {
	display: none;
}
#content .vaia-nd-pricing[data-period="year"] .vaia-nd-pricing__cta[data-for-period="year"],
#content .vaia-nd-pricing[data-period="month"] .vaia-nd-pricing__cta[data-for-period="month"] {
	display: block;
}
#content .vaia-nd-pricing__cta {
	display: block;
	padding: 0.55rem 1.8rem;
	border-radius: 999px;
	background: var(--ast-global-color-0);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 500;
	text-decoration: none;
}
.vaia-nd-pricing__cta:hover,
.vaia-nd-pricing__cta:focus {
	background: var(--ast-global-color-0);
}

/* ======================
   TABLE
====================== */
.vaia-nd-pricing__table {
	border-top: 1px solid #D8D8D8;
}

.vaia-nd-pricing__row {
	display: grid;
	align-items: stretch !important;
	grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 1.3fr));
	align-items: center;
	border-bottom: 1px solid #D8D8D8;
}

.vaia-nd-pricing__row > div {
	position: relative;
}
.vaia-nd-pricing__row > div:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: 1px;
	height: 100%;
	background: #D8D8D8;
}

.vaia-nd-pricing__feature {
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 150%;
	padding: 23px 20px 23px 0;
}

.vaia-nd-pricing__cell {
	display: flex;
	justify-content: center;
	padding: 23px 0.2rem;
	align-items: center;
}

/* Dash */
.vaia-nd-pricing__dash {
	font-size: 1.1rem;
	color: var(--ast-global-color-3);
}

/* Footnote */
.wp-block-vaia-nd-pricing-table.vaia-nd-pricing .vaia-nd-pricing__footnote {
	margin: 60px 0 20px;
	font-size: 12px;
	font-style: normal;
	font-weight: 300;
	line-height: 150%;
	text-align: center;
}

.vaia-nd-pricing__footnote-link {
	color: var(--ast-global-color-0);
	text-decoration: underline;
}

/* ======================
   MOBIL: gör det begripligt
   - plan switcher syns
   - plan-kort swipebara
   - tabellen visar EN kolumn åt gången
====================== */

.vaia-nd-pricing__plan-switch {
	display: none;
}

@media (max-width: 900px) {
	.vaia-nd-pricing__header-row {
		grid-template-columns: 1fr;
	}
	.vaia-nd-pricing__feature {
		font-size: 0.9rem;
		padding: 23px 20px;
	}
	/* intro-kolumnens vertikala linje bort på mobil */
	.vaia-nd-pricing__header-row > div:first-child::after,
	.vaia-nd-pricing__row > .vaia-nd-pricing__cell:not(:last-child)::after {
		display: none;
	}
	.vaia-nd-pricing__toggle {
		display: flex;
		width: 100%;
	}
	.vaia-nd-pricing__toggle-btn, .vaia-nd-pricing__toggle-btn:hover {
		padding: 15px 20px;
		flex: 1;                /* ← delar utrymmet lika */
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	/* Plan switcher på mobil */
	.vaia-nd-pricing__plan-switch {
		display: flex;
		gap: 0.5rem;
		flex-wrap: wrap;
		overflow: auto;
		width: 100%;
		padding: 0 0.25rem 0.25rem;
		-webkit-overflow-scrolling: touch;
	}

	.vaia-nd-pricing__plan-tab {
		white-space: nowrap;
		border: 1px solid #D8D8D8;
		border-radius: 999px;
		padding: 10px 14px;
		font-weight: 600;
		cursor: pointer;
		flex: 0 0 calc(50% - 8px); /* 2 kolumner */
	}
	.vaia-nd-pricing__plan-tab.is-active {
		background-color: var(--ast-global-color-1);
	}

	/* Plan-kort: swipe */
	.vaia-nd-pricing__plans {
		display: flex;
		gap: 0.75rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding: 0.75rem 0.75rem 1rem;
		scroll-behavior: smooth;
		scroll-padding-left: 0.75rem;
		scroll-padding-right: 0.75rem;
	}

	.vaia-nd-pricing__plan {
		min-width: 95%;
		scroll-snap-align: center;
		border-radius: 24px;
		background: #fff;
		box-shadow: 0 0 0 1px #D8D8D8;
		padding: 1.75rem 1rem;
	}
	.vaia-nd-pricing__plan::after {
		display: none; /* inga vertikala separators i swipe-läge */
	}

	/* Tabell på mobil: 2 kolumner (feature + aktiv plan) */
	.vaia-nd-pricing__row {
		grid-template-columns: 2.5fr 1fr;
	}

	/* Dölj alla plan-celler default på mobil */
	.vaia-nd-pricing__row .vaia-nd-pricing__cell {
		display: none;
	}

	/* Visa endast aktiv plan-kolumn:
	   nth-child:
	   1 = feature
	   2 = mini
	   3 = komplett
	   4 = kost
	   5 = traning
	*/
	.vaia-nd-pricing[data-active-plan="mini"] .vaia-nd-pricing__row .vaia-nd-pricing__cell:nth-child(2) {
		display: flex;
	}
	.vaia-nd-pricing[data-active-plan="komplett"] .vaia-nd-pricing__row .vaia-nd-pricing__cell:nth-child(3) {
		display: flex;
	}
	.vaia-nd-pricing[data-active-plan="kost"] .vaia-nd-pricing__row .vaia-nd-pricing__cell:nth-child(4) {
		display: flex;
	}
	.vaia-nd-pricing[data-active-plan="traning"] .vaia-nd-pricing__row .vaia-nd-pricing__cell:nth-child(5) {
		display: flex;
	}
}
/* -------------------------------------------
   Mobile table feedback animation (active plan)
-------------------------------------------- */
@media (max-width: 900px) {
	.vaia-nd-pricing__table {
		position: relative;
	}

	/* En subtil "flash" på hela tabellen när plan byts */
	.vaia-nd-pricing__table.is-updating {
		animation: vaia-nd-pricing-table-flash 240ms ease-out;
	}

	@keyframes vaia-nd-pricing-table-flash {
		0% { filter: brightness(1); }
		40% { filter: brightness(1.03); }
		100% { filter: brightness(1); }
	}

	/* Aktiva celler på mobil = bara kolumn 2 (eftersom 3-5 är display:none) */
	.vaia-nd-pricing__table.is-updating .vaia-nd-pricing__row > .vaia-nd-pricing__cell:nth-child(2) {
		animation: vaia-nd-pricing-cell-pop 240ms ease-out;
	}

	@keyframes vaia-nd-pricing-cell-pop {
		0%   { transform: translateX(0); opacity: 0.6; }
		100% { transform: translateX(0);   opacity: 1; }
	}

	/* Extra tydlighet: lätt highlight på cellen när den uppdateras */
	.vaia-nd-pricing__table.is-updating .vaia-nd-pricing__row > .vaia-nd-pricing__cell:nth-child(2) {
		background: rgba(0,0,0,0.03);
	}
}
/* -------------------------------------------
   Mobile: subtle scroll-feel when switching plan
-------------------------------------------- */
@media (max-width: 900px) {
	.vaia-nd-pricing__table {
		position: relative;
	}

	/* “Swipe hint” overlay (left/right) */
	.vaia-nd-pricing__table::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		width: 42px;
		pointer-events: none;
		opacity: 0;
		transform: translateX(0);
		transition: opacity 180ms ease, transform 180ms ease;
		z-index: 2;
	}
	/* Light flash on table when plan changes */
	.vaia-nd-pricing__table.is-updating {
		animation: vaia-nd-pricing-table-flash 240ms ease-out;
	}

	@keyframes vaia-nd-pricing-table-flash {
		0% { filter: brightness(1); }
		40% { filter: brightness(1.03); }
		100% { filter: brightness(1); }
	}

	/* Active visible column on mobile = nth-child(2) */
	.vaia-nd-pricing__table.is-updating .vaia-nd-pricing__row > .vaia-nd-pricing__cell {
		animation: vaia-nd-pricing-cell-pop 240ms ease-out;
		background: rgba(0,0,0,0.03);
	}

	@keyframes vaia-nd-pricing-cell-pop {
		0%   { transform: translateX(0); opacity: 0.6; }
		100% { transform: translateX(0);   opacity: 1; }
	}
}
@media (max-width: 900px) {
	.vaia-nd-pricing__table.is-updating {
		animation: vaia-nd-pricing-table-flash 200ms ease-out;
	}

	@keyframes vaia-nd-pricing-table-flash {
		0%   { opacity: 0.85; }
		100% { opacity: 1; }
	}
}