/**
 * Shared styles for the NoviDeck Free widgets.
 *
 * All colours, fonts, radii and spacing fall back to the NoviDeck global
 * tokens (--ndw-*) and then to the Elementor global styles. Individual
 * Elementor controls override these defaults.
 */

.nd-plan-card,
.nd-product-info,
.nd-portal {
	--nd-widget-surface: var(--ndw-surface, #ffffff);
	--nd-widget-heading: var(--ndw-heading, #101828);
	--nd-widget-text: var(--ndw-text, #475467);
	--nd-widget-border: var(--ndw-border, #dbe3ef);
	--nd-widget-accent: var(--ndw-accent, #f7cba3);
	--nd-widget-radius: calc(var(--ndw-radius, 8px) * 1.5);
	--nd-widget-spacing: var(--ndw-spacing, 12px);
	box-sizing: border-box;
}

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

.nd-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: calc(var(--nd-widget-spacing) * 0.9);
	height: 100%;
	padding: calc(var(--nd-widget-spacing) * 2);
	background: var(--nd-widget-surface);
	border: 1px solid var(--nd-widget-border);
	border-radius: var(--nd-widget-radius);
	color: var(--nd-widget-text);
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.nd-plan-card.has-badge {
	padding-top: calc(var(--nd-widget-spacing) * 2.8);
}

.nd-plan-card.is-featured {
	border-color: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	box-shadow: 0 0 0 1px var(--ndw-button-bg, var(--e-global-color-primary, #2563eb)), 0 18px 40px rgba(16, 24, 40, 0.12);
}

.nd-plan-card__badge {
	position: absolute;
	top: calc(var(--nd-widget-spacing) * 1.1);
	right: calc(var(--nd-widget-spacing) * 1.1);
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--nd-widget-accent);
	color: #2a1a0c;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.nd-plan-card__title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nd-widget-heading);
}

.nd-plan-card__description {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--nd-widget-text);
}

.nd-plan-card__price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: calc(var(--nd-widget-spacing) * 0.4) 0;
}

.nd-price {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	font-size: clamp(1.6rem, 2.4vw, 2.2rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--nd-widget-heading);
	font-variant-numeric: tabular-nums;
}

.nd-price__amount {
	display: inline-block;
}

.nd-price__cycle {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--nd-widget-text);
}

.nd-price[data-state="unavailable"] .nd-price__amount {
	color: var(--nd-widget-text);
}

.nd-plan-card__features {
	display: grid;
	gap: var(--nd-feature-gap, 8px);
	margin: calc(var(--nd-widget-spacing) * 0.4) 0 0;
	padding: 0;
	list-style: none;
}

.nd-plan-card__feature {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	padding-left: calc(var(--nd-feature-icon-size, 16px) + 10px);
	font-size: 0.92rem;
	line-height: 1.5;
	color: var(--nd-feature-text-color, var(--nd-widget-text));
}

.nd-plan-card__feature-value {
	margin-left: auto;
	font-weight: 600;
	color: var(--nd-widget-heading);
	font-variant-numeric: tabular-nums;
}

.nd-plan-card__feature-description {
	flex-basis: 100%;
	font-size: 0.82rem;
	line-height: 1.45;
	opacity: 0.85;
}

.nd-plan-card__feature.is-highlighted .nd-plan-card__feature-text {
	font-weight: 600;
	color: var(--nd-feature-text-color, var(--nd-widget-heading));
}

.nd-plan-card__feature::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.35em;
	width: var(--nd-feature-icon-size, 16px);
	height: var(--nd-feature-icon-size, 16px);
	border-radius: 50%;
	background: var(--nd-feature-icon-bg, color-mix(in srgb, var(--ndw-button-bg, #2563eb) 18%, transparent));
}

.nd-plan-card__feature::after {
	content: "";
	position: absolute;
	left: calc(var(--nd-feature-icon-size, 16px) * 0.25);
	top: calc(0.35em + var(--nd-feature-icon-size, 16px) * 0.3);
	width: calc(var(--nd-feature-icon-size, 16px) * 0.5);
	height: calc(var(--nd-feature-icon-size, 16px) * 0.25);
	border-left: calc(var(--nd-feature-icon-size, 16px) * 0.125) solid var(--nd-feature-icon-color, var(--ndw-button-bg, #2563eb));
	border-bottom: calc(var(--nd-feature-icon-size, 16px) * 0.125) solid var(--nd-feature-icon-color, var(--ndw-button-bg, #2563eb));
	transform: rotate(-45deg);
}

.nd-plan-card__actions {
	margin-top: auto;
	padding-top: calc(var(--nd-widget-spacing) * 0.8);
}

.nd-plan-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: var(--nd-widget-spacing) calc(var(--nd-widget-spacing) * 1.6);
	border: 0;
	border-radius: var(--ndw-radius, 8px);
	background: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	color: var(--ndw-button-text, #ffffff);
	font-family: var(--ndw-font-family, inherit);
	font-size: var(--ndw-font-size, 1rem);
	font-weight: var(--ndw-font-weight, 600);
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 140ms ease, filter 140ms ease;
}

.nd-plan-card__button:hover,
.nd-plan-card__button:focus-visible {
	background: var(--ndw-button-hover-bg, var(--e-global-color-primary, #1d4ed8));
	color: var(--ndw-button-text, #ffffff);
	text-decoration: none;
}

.nd-plan-card__button:focus-visible,
.nd-cycle-switch__button:focus-visible,
.nd-portal__button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Pricing table
 * ---------------------------------------------------------------------- */

.nd-pricing-table {
	display: block;
}

.nd-pricing-table__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
	gap: calc(var(--nd-widget-spacing, 12px) * 1.4);
	align-items: stretch;
}

.nd-pricing-table__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: calc(var(--nd-widget-spacing, 12px) * 1.4);
}

.nd-pricing-table__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ndw-heading, #101828);
}

.nd-cycle-switch {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	background: var(--ndw-surface, #ffffff);
	border: 1px solid var(--ndw-border, #dbe3ef);
	border-radius: 999px;
}

.nd-cycle-switch__button {
	min-height: 34px;
	padding: 0 14px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--ndw-text, #475467);
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
}

.nd-cycle-switch__button:hover {
	background: color-mix(in srgb, var(--ndw-heading, #101828) 8%, transparent);
}

.nd-cycle-switch__button.is-active {
	background: var(--ndw-accent, #f7cba3);
	color: #2a1a0c;
}

/* -------------------------------------------------------------------------
 * Product information
 * ---------------------------------------------------------------------- */

.nd-product-info {
	display: grid;
	gap: calc(var(--nd-widget-spacing) * 0.8);
	padding: calc(var(--nd-widget-spacing) * 1.8);
	background: var(--nd-widget-surface);
	border: 1px solid var(--nd-widget-border);
	border-radius: var(--nd-widget-radius);
	color: var(--nd-widget-text);
}

.nd-product-info__name {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--nd-widget-heading);
}

.nd-product-info__plan-name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--nd-widget-heading);
}

.nd-product-info__description {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--nd-widget-text);
}

.nd-product-info__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--nd-widget-text);
}

.nd-product-info__plans {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nd-product-info__plan {
	font-size: 0.88rem;
	color: var(--nd-widget-heading);
}

.nd-product-info__plan-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border: 1px solid var(--nd-widget-border);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.5;
	text-align: center;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.nd-product-info__plan-button:hover {
	border-color: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
}

.nd-product-info__plan-button.is-active {
	background: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	border-color: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	color: var(--ndw-button-text, #fff);
}

.nd-product-info__plan-button:focus-visible {
	outline: 2px solid var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	outline-offset: 3px;
}

/* Website quantities use the same pill treatment as the plan options. */
.nd-product-info__licenses {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.nd-product-info__licenses[hidden],
.nd-product-info__licenses .nd-switcher[hidden] {
	display: none !important;
}

.nd-product-info__licenses .nd-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	border: 0;
	background: transparent;
}

.nd-product-info__licenses .nd-switcher__option {
	padding: 6px 12px;
	border: 1px solid var(--nd-widget-border);
	border-radius: 999px;
	background: transparent;
	color: var(--nd-widget-heading);
	font: inherit;
	line-height: 1.5;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.nd-product-info__licenses .nd-switcher__option:not(.is-active):hover {
	border-color: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
}

.nd-product-info__licenses .nd-switcher__option.is-active {
	background: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	border-color: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	color: var(--ndw-button-text, #fff);
}

/* Theme and Elementor flex rules must never reveal an inactive plan. */
.nd-product-info [data-nd-plan-panel][hidden] {
	display: none !important;
}

.nd-product-info__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.nd-product-info__actions {
	margin-top: calc(var(--nd-widget-spacing) * 0.6);
}

.nd-product-info__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: var(--nd-widget-spacing) calc(var(--nd-widget-spacing) * 1.6);
	border-radius: var(--ndw-radius, 8px);
	background: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	color: var(--ndw-button-text, #ffffff);
	font-weight: var(--ndw-font-weight, 600);
	text-decoration: none;
}

.nd-product-info__button:hover,
.nd-product-info__button:focus-visible {
	background: var(--ndw-button-hover-bg, var(--e-global-color-primary, #1d4ed8));
	color: var(--ndw-button-text, #ffffff);
	text-decoration: none;
}

/* -------------------------------------------------------------------------
 * Customer portal
 * ---------------------------------------------------------------------- */

.nd-portal {
	display: grid;
	gap: calc(var(--nd-widget-spacing) * 0.7);
	justify-items: start;
	padding: calc(var(--nd-widget-spacing) * 1.8);
	background: var(--nd-widget-surface);
	border: 1px solid var(--nd-widget-border);
	border-radius: var(--nd-widget-radius);
	color: var(--nd-widget-text);
}

.nd-portal--center {
	justify-items: center;
	text-align: center;
}

.nd-portal__title {
	margin: 0;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--nd-widget-heading);
}

.nd-portal__description {
	margin: 0;
	max-width: 60ch;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--nd-widget-text);
}

.nd-portal__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: var(--nd-widget-spacing) calc(var(--nd-widget-spacing) * 1.6);
	border-radius: var(--ndw-radius, 8px);
	background: var(--ndw-button-bg, var(--e-global-color-primary, #2563eb));
	color: var(--ndw-button-text, #ffffff);
	font-weight: var(--ndw-font-weight, 600);
	text-decoration: none;
}

.nd-portal__button:hover,
.nd-portal__button:focus-visible {
	background: var(--ndw-button-hover-bg, var(--e-global-color-primary, #1d4ed8));
	color: var(--ndw-button-text, #ffffff);
	text-decoration: none;
}

.nd-portal__link {
	color: inherit;
	text-decoration: underline;
}

.nd-portal__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.2em;
	height: 1.2em;
}

.nd-portal__icon svg {
	width: 100%;
	height: 100%;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* -------------------------------------------------------------------------
 * Editor notices and responsive
 * ---------------------------------------------------------------------- */

.nd-widget-notice {
	margin: 0;
	padding: 14px 16px;
	border: 1px dashed var(--ndw-border, #dbe3ef);
	border-radius: 10px;
	color: var(--ndw-text, #475467);
	font-size: 0.9rem;
	background: color-mix(in srgb, var(--ndw-surface, #ffffff) 70%, transparent);
}

.nd-pricing-table__empty {
	margin: 0;
}

@media screen and (max-width: 782px) {
	.nd-pricing-table__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.nd-pricing-table__head {
		align-items: flex-start;
	}

	.nd-plan-card {
		padding: calc(var(--nd-widget-spacing) * 1.4);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nd-plan-card__button {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * Standard: coupled switchers
 * ---------------------------------------------------------------------- */

.nd-switcher {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 4px;
	border-radius: var(--ndw-radius, 10px);
	background: var(--ndw-surface, #f3f4f6);
	border: 1px solid var(--ndw-border, #e5e7eb);
}

/* The approved License Selector also works inside price cards and columns.
 * The inline choice stays centered without wrapping on narrow screens. */
.nd-license-choice {
	width: 100%;
	min-width: 0;
	margin-block: 12px;
}

.nd-license-choice[hidden] {
	display: none;
}

/* License Selector: keep package options in one row at every breakpoint.
 * When the labels cannot fit, visitors can scroll the row horizontally. */
.elementor-widget-novideck_license_selector .nd-switcher:not(.nd-switcher--dropdown) {
	flex-wrap: nowrap;
	justify-content: safe center;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.elementor-widget-novideck_license_selector .nd-switcher:not(.nd-switcher--dropdown) .nd-switcher__option {
	flex: 0 0 auto;
	white-space: nowrap;
}

.nd-license-choice .nd-switcher:not(.nd-switcher--dropdown) {
	flex-wrap: nowrap;
	justify-content: safe center;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.nd-license-choice .nd-switcher:not(.nd-switcher--dropdown) .nd-switcher__option {
	flex: 0 0 auto;
	white-space: nowrap;
}

/* Price cards default to a compact three-across selector, not a scrollbar.
 * The row never wraps; long custom labels may wrap within each option. */
/* A smooth hover/focus transition is limited to integrated selectors. */
.nd-license-choice .nd-switcher__option,
.nd-license-choice .nd-switcher__select {
	box-sizing: border-box;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
	.nd-license-choice .nd-switcher__option,
	.nd-license-choice .nd-switcher__select { transition: none; }
}

.nd-license-choice--fit .nd-switcher:not(.nd-switcher--dropdown) {
	overflow-x: hidden;
	overflow-y: visible;
	justify-content: stretch;
}

.nd-license-choice--fit .nd-switcher:not(.nd-switcher--dropdown) .nd-switcher__option {
	flex: 1 1 0;
	min-width: 0;
	padding: 8px 5px;
	white-space: normal;
	overflow-wrap: anywhere;
	text-align: center;
}

.nd-license-choice--scroll .nd-switcher:not(.nd-switcher--dropdown) {
	scrollbar-width: none;
}

.nd-license-choice--scroll .nd-switcher:not(.nd-switcher--dropdown)::-webkit-scrollbar {
	display: none;
}

.nd-switcher--tabs {
	border: 0;
	border-bottom: 1px solid var(--ndw-border, #e5e7eb);
	border-radius: 0;
	background: transparent;
	padding: 0;
	gap: 0;
}

.nd-switcher--dropdown {
	display: block;
	padding: 0;
	border: 0;
	background: transparent;
}

/* The hidden attribute must win over the display values above. */
.nd-switcher[hidden],
.nd-switcher--tabs[hidden],
.nd-switcher--dropdown[hidden] {
	display: none;
}

.nd-switcher__label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.875em;
	color: var(--ndw-text, #475467);
}

.nd-switcher__select {
	width: 100%;
	max-width: 100%;
	padding: 8px 10px;
	border-radius: var(--ndw-radius, 8px);
	border: 1px solid var(--ndw-border, #d0d5dd);
	background: #fff;
	color: var(--ndw-text, #101828);
}

.nd-switcher__option {
	appearance: none;
	border: 0;
	background: transparent;
	color: var(--ndw-text, #475467);
	padding: 8px 14px;
	border-radius: calc(var(--ndw-radius, 10px) - 2px);
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
}

.nd-switcher--tabs .nd-switcher__option {
	border-radius: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.nd-switcher__option:hover {
	color: var(--ndw-heading, #101828);
}

.nd-switcher__option.is-active {
	background: var(--ndw-accent, #2563eb);
	color: #fff;
}

.nd-switcher--tabs .nd-switcher__option.is-active {
	background: transparent;
	color: var(--ndw-accent, #2563eb);
	border-bottom-color: var(--ndw-accent, #2563eb);
}

.nd-switcher__option:focus-visible {
	outline: 2px solid var(--ndw-accent, #2563eb);
	outline-offset: 2px;
}

.nd-switcher__option[hidden] {
	display: none;
}

/* -------------------------------------------------------------------------
 * Standard: plan comparison
 * ---------------------------------------------------------------------- */

.nd-comparison {
	width: 100%;
}

.nd-comparison__billing-panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	text-align: center;
}

.nd-comparison__billing-panel .nd-cycle-switch {
	display: inline-flex;
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--ndw-border, #324463);
	border-radius: 28px;
	background: var(--ndw-surface, #17243a);
}

.nd-comparison__billing-panel .nd-cycle-switch[hidden],
.nd-comparison__billing-panel .nd-cycle-switch__button[hidden] {
	display: none !important;
}

.nd-comparison__billing-panel .nd-cycle-switch__button {
	min-height: 40px;
	padding: 8px 20px;
	border-radius: 28px;
	background: transparent;
	color: var(--ndw-text, #a9c1df);
	text-align: center;
}

.nd-comparison__billing-panel .nd-cycle-switch__button.is-active {
	background: var(--ndw-accent, #39baff);
	color: #071426;
	box-shadow: 0 3px 12px rgba(20, 118, 255, 0.16);
}

.nd-comparison__nav {
	display: none;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.nd-comparison__nav-button {
	appearance: none;
	border: 1px solid var(--ndw-border, #d0d5dd);
	background: #fff;
	color: var(--ndw-text, #475467);
	border-radius: 999px;
	padding: 6px 12px;
	font: inherit;
	cursor: pointer;
}

.nd-comparison__nav-button.is-active {
	background: var(--ndw-accent, #2563eb);
	border-color: var(--ndw-accent, #2563eb);
	color: #fff;
}

.nd-comparison__scroll {
	overflow-x: auto;
	overflow-y: hidden;
	border: 1px solid var(--ndw-border, #e5e7eb);
	-webkit-overflow-scrolling: touch;
}

.nd-comparison__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	text-align: left;
	background: var(--ndw-surface, #fff);
}

.nd-comparison__feature-head {
	width: var(--nd-comparison-feature-width, 34%);
}

.nd-comparison__table th[data-nd-col],
.nd-comparison__table td[data-nd-col] {
	overflow-wrap: anywhere;
}

.nd-comparison__table th,
.nd-comparison__table td {
	border: 0;
	border-top: 1px solid var(--ndw-border, #e5e7eb);
	border-left: 1px solid var(--ndw-border, #e5e7eb);
	padding: 12px;
	vertical-align: top;
}

/* A single exterior border draws the curved corners; cells draw only inner grid lines. */
.nd-comparison__table thead tr:first-child > th {
	border-top: 0;
}

.nd-comparison__table tr > :first-child {
	border-left: 0;
}

.nd-comparison__table thead th {
	background: var(--ndw-surface, #f9fafb);
	font-weight: 600;
}

.nd-comparison__table thead th[data-nd-col] {
	text-align: center;
	vertical-align: middle;
}

.nd-comparison__table thead th.is-featured {
	box-shadow: inset 0 3px 0 var(--ndw-accent, #2563eb);
}

.nd-comparison__table .nd-comparison__section th {
	background: var(--ndw-surface, #f3f4f6);
	font-weight: 700;
}

.nd-comparison__table tbody tr:not(.nd-comparison__section) > th,
.nd-comparison__table tbody tr:not(.nd-comparison__section) > td {
	transition: background-color var(--nd-comparison-hover-duration, 200ms) ease;
}

.nd-comparison__table tbody tr:not(.nd-comparison__section):hover > th,
.nd-comparison__table tbody tr:not(.nd-comparison__section):hover > td {
	background-color: var(--nd-comparison-row-hover-bg, rgba(59, 130, 246, 0.08)) !important;
}

.nd-comparison__feature {
	font-weight: 500;
}

.nd-comparison__note {
	display: block;
	font-size: 0.8125em;
	font-weight: 400;
	color: var(--ndw-text, #667085);
}

.nd-comparison__table td.nd-comparison__status-cell {
	text-align: center;
	vertical-align: middle;
}

.nd-comparison__status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.7em;
	min-height: 1.7em;
	border-radius: 999px;
	line-height: 1;
	vertical-align: middle;
	transition: color var(--nd-comparison-hover-duration, 200ms) ease,
		background-color var(--nd-comparison-hover-duration, 200ms) ease;
}

.nd-comparison__symbol {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform-origin: center;
	transition: transform var(--nd-comparison-hover-duration, 200ms) ease;
}

.nd-comparison__symbol svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.nd-comparison__yes {
	color: var(--ndw-accent, #067647);
	font-weight: 700;
}

.nd-comparison__no {
	color: var(--ndw-text, #98a2b3);
}

.nd-comparison[data-nd-icon-hover="zoom"] .nd-comparison__table tbody tr:hover .nd-comparison__status .nd-comparison__symbol,
.nd-comparison[data-nd-icon-hover="zoom"] .nd-comparison__status:focus-visible .nd-comparison__symbol {
	transform: scale(var(--nd-comparison-hover-scale, 1.1));
}

.nd-comparison[data-nd-icon-hover="pulse"] .nd-comparison__table tbody tr:hover .nd-comparison__status .nd-comparison__symbol,
.nd-comparison[data-nd-icon-hover="pulse"] .nd-comparison__status:focus-visible .nd-comparison__symbol {
	animation: nd-comparison-pulse 800ms ease-in-out infinite;
}

.nd-comparison[data-nd-icon-hover="bounce"] .nd-comparison__table tbody tr:hover .nd-comparison__status .nd-comparison__symbol,
.nd-comparison[data-nd-icon-hover="bounce"] .nd-comparison__status:focus-visible .nd-comparison__symbol {
	animation: nd-comparison-bounce 650ms ease-in-out infinite;
}

@keyframes nd-comparison-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(var(--nd-comparison-hover-scale, 1.1)); }
}

@keyframes nd-comparison-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-0.28em); }
}

@media (prefers-reduced-motion: reduce) {
	.nd-comparison__status,
	.nd-comparison__symbol,
	.nd-comparison__table tbody tr > th,
	.nd-comparison__table tbody tr > td {
		transition: none !important;
	}

	.nd-comparison__table tbody tr:hover .nd-comparison__symbol,
	.nd-comparison__status:hover .nd-comparison__symbol,
	.nd-comparison__status:focus-visible .nd-comparison__symbol {
		animation: none !important;
		transform: none !important;
	}
}

.nd-comparison__limited {
	color: var(--ndw-text, #b54708);
}

.nd-comparison__plan {
	display: block;
	font-size: 1.05em;
}

.nd-comparison__badge {
	display: inline-block;
	margin-bottom: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ndw-accent, #2563eb);
	color: #fff;
	font-size: 0.75em;
}

.nd-comparison__price {
	display: block;
	margin-top: 6px;
	font-weight: 500;
}

.nd-comparison__footer th,
.nd-comparison__footer td {
	vertical-align: top;
	background: transparent;
}

.nd-comparison__footer-label {
	font-weight: 600;
}

.nd-comparison__action {
	display: block;
	width: 100%;
	margin: 0;
}

.nd-comparison__table .nd-plan-card__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 8px 14px;
	border-radius: var(--ndw-radius, 8px);
	background: var(--ndw-button-bg, #2563eb);
	color: var(--ndw-button-text, #fff);
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
}

.nd-comparison__billing-note {
	display: inline-block;
	margin: 0;
	padding: 7px 14px;
	border: 1px solid color-mix(in srgb, var(--ndw-accent, #39baff) 38%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--ndw-accent, #39baff) 12%, transparent);
	color: var(--ndw-accent, #39baff);
	font-size: 0.83rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

@media (max-width: 799px) {
	.nd-comparison {
		--nd-comparison-feature-width: 50%;
	}

	.nd-comparison__billing-panel .nd-cycle-switch {
		max-width: 100%;
		flex-wrap: wrap;
		justify-content: center;
	}

	.nd-comparison__billing-panel .nd-cycle-switch__button {
		padding: 8px 12px;
	}

	.nd-comparison__nav {
		display: flex;
	}

	.nd-comparison__table th[data-nd-col],
	.nd-comparison__table td[data-nd-col] {
		display: none;
	}

	.nd-comparison[data-active-col="0"] .nd-comparison__table td[data-nd-col="0"],
	.nd-comparison[data-active-col="0"] .nd-comparison__table th[data-nd-col="0"],
	.nd-comparison[data-active-col="1"] .nd-comparison__table td[data-nd-col="1"],
	.nd-comparison[data-active-col="1"] .nd-comparison__table th[data-nd-col="1"],
	.nd-comparison[data-active-col="2"] .nd-comparison__table td[data-nd-col="2"],
	.nd-comparison[data-active-col="2"] .nd-comparison__table th[data-nd-col="2"],
	.nd-comparison[data-active-col="3"] .nd-comparison__table td[data-nd-col="3"],
	.nd-comparison[data-active-col="3"] .nd-comparison__table th[data-nd-col="3"],
	.nd-comparison[data-active-col="4"] .nd-comparison__table td[data-nd-col="4"],
	.nd-comparison[data-active-col="4"] .nd-comparison__table th[data-nd-col="4"],
	.nd-comparison[data-active-col="5"] .nd-comparison__table td[data-nd-col="5"],
	.nd-comparison[data-active-col="5"] .nd-comparison__table th[data-nd-col="5"] {
		display: table-cell;
	}
}

/* -------------------------------------------------------------------------
 * Standard: product grid
 * ---------------------------------------------------------------------- */

.nd-product-grid {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(var(--nd-grid-columns, 3), minmax(0, 1fr));
	align-items: stretch;
	gap: 20px;
}

.nd-product-grid--list {
	grid-template-columns: 1fr;
}

.nd-product-grid__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	height: 100%;
	box-sizing: border-box;
	gap: 8px;
	padding: 20px;
	border: 1px solid var(--ndw-border, #e5e7eb);
	border-radius: var(--ndw-radius, 12px);
	background: var(--ndw-surface, #fff);
}

.nd-product-grid__card.is-featured {
	box-shadow: 0 0 0 2px var(--ndw-accent, #2563eb);
}

.nd-product-grid__image {
	width: 100%;
	height: auto;
	border-radius: calc(var(--ndw-radius, 12px) - 4px);
	object-fit: cover;
}

.nd-product-grid__title {
	margin: 0;
	font-size: 1.15em;
	color: var(--ndw-heading, #101828);
}

.nd-product-grid__description {
	margin: 0;
	color: var(--ndw-text, #475467);
}

.nd-product-grid__plan {
	display: inline-flex;
	align-self: flex-start;
	padding: 4px 10px;
	border: 1px solid var(--ndw-border, #dbe3ef);
	border-radius: 999px;
	color: var(--ndw-heading, #101828);
	font-size: 0.82em;
	font-weight: 600;
}

.nd-product-grid__footer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: auto;
}

.nd-product-grid__price {
	font-weight: 600;
	color: var(--ndw-heading, #101828);
}

.nd-product-grid__actions {
	width: 100%;
}

.nd-product-grid__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 16px;
	border-radius: var(--ndw-radius, 8px);
	background: var(--ndw-button-bg, #2563eb);
	color: var(--ndw-button-text, #fff);
	text-decoration: none;
	text-align: center;
}

.nd-product-grid--grid .nd-product-grid__button {
	width: 100%;
}

.nd-product-grid--list .nd-product-grid__card {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 16px;
}

.nd-product-grid--list .nd-product-grid__plan {
	align-self: center;
}

.nd-product-grid--list .nd-product-grid__footer {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 16px;
	min-width: 0;
	margin: 0;
	flex: 0 1 auto;
}

.nd-product-grid--list .nd-product-grid__price {
	text-align: center;
}

.nd-product-grid--list .nd-product-grid__actions {
	width: auto;
}

.nd-product-grid--list .nd-product-grid__image {
	width: 120px;
	flex: 0 0 auto;
}

@media (max-width: 1024px) {
	.nd-product-grid {
		grid-template-columns: repeat(var(--nd-grid-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nd-product-grid {
		grid-template-columns: repeat(var(--nd-grid-mobile, 1), minmax(0, 1fr));
	}

	.nd-product-grid--list .nd-product-grid__card {
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.nd-product-grid--list .nd-product-grid__footer {
		width: 100%;
		min-width: 0;
		margin: 0;
		flex-direction: column;
	}

	.nd-product-grid--list .nd-product-grid__actions {
		width: 100%;
	}

	.nd-product-grid--list .nd-product-grid__button {
		width: 100%;
	}
}
