/* ==========================================================================
 * Premium customer account (0.24.0, DESIGN-SPEC.md)
 * The log-in page's look across the signed-in account, Change payment and the order
 * confirmation: paper background, a deep navy → purple gradient header with a spectrum
 * hairline, white cards, icon navigation. Body classes from inc/account-premium.php:
 * .nv-premium, .nv-premium--account|change-payment|order-received. Presentation only.
 * ========================================================================== */

.nv-premium {
	--nv-premium-gradient:
		radial-gradient(30rem 18rem at 100% 0%, rgba(0, 181, 203, 0.22), transparent 65%),
		radial-gradient(26rem 18rem at 0% 100%, rgba(230, 0, 126, 0.16), transparent 65%),
		linear-gradient(135deg, #1b1740 0%, #2b255e 55%, #4e2583 100%);
	--nv-premium-shadow: 0 1px 2px rgba(23, 20, 58, 0.04), 0 14px 34px -18px rgba(23, 20, 58, 0.28);
	--nv-premium-tint: rgba(78, 37, 131, 0.06);
	--nv-nav-fade: var(--nv-paper);
}

/* Signed-in customers have already started: no Start Here promotion in their account. */
.nv-premium .start-here-bar {
	display: none;
}

.nv-premium .nv-commerce {
	background: var(--nv-paper);
	padding-block-start: clamp(1rem, 0.5rem + 1.5vw, 2rem);
}

/* --------------------------------------------------------------------------
 * Header: the log-in brand panel, shorter
 * ------------------------------------------------------------------------ */
.nv-commerce--premium .nv-acct-hero {
	position: relative;
	overflow: hidden;
	align-items: flex-end;
	gap: 1.25rem 2rem;
	margin-block-end: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
	padding: clamp(1.4rem, 1rem + 2vw, 2.6rem) clamp(1.25rem, 0.75rem + 2.5vw, 3rem);
	border: 0;
	border-radius: var(--nv-radius);
	background: var(--nv-premium-gradient);
	color: #fff;
	box-shadow: var(--nv-premium-shadow);
}

/* The faint rings in the corner, as on the log-in panel */
.nv-commerce--premium .nv-acct-hero::after {
	content: "";
	position: absolute;
	inset-block-start: -6rem;
	inset-inline-end: -4rem;
	inline-size: 16rem;
	block-size: 16rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	box-shadow: 0 0 0 2.5rem rgba(255, 255, 255, 0.03), 0 0 0 5rem rgba(255, 255, 255, 0.02);
	pointer-events: none;
}

.nv-acct-hero__main {
	position: relative;
	z-index: 1;
	max-inline-size: 46rem;
}

.nv .nv-acct-hero__eyebrow {
	margin: 0 0 0.6rem;
	color: rgba(255, 255, 255, 0.76);
}

.nv .nv-acct-hero__eyebrow::before {
	content: "";
	display: block;
	inline-size: 2.5rem;
	block-size: 3px;
	margin-block-end: 0.8rem;
	border-radius: 3px;
	background: var(--nv-spectrum);
}

.nv-commerce--premium .nv-acct-hero__title {
	color: #fff;
	font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.6rem);
	text-wrap: balance;
}

.nv .nv-acct-hero__text {
	margin: 0.55rem 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.0625rem);
	line-height: 1.55;
}

.nv .nv-acct-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-block-end: 1rem;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.nv .nv-acct-hero__back:hover {
	color: #fff;
}

.nv-acct-hero__back .icon {
	inline-size: 0.9rem;
	block-size: 0.9rem;
}

/* Confirmation: the checkout steps sit in the header, in white */
.nv-acct-hero .nv-steps {
	position: relative;
	z-index: 1;
}

.nv-acct-hero .nv-steps__label,
.nv-acct-hero .nv-steps__item {
	color: rgba(255, 255, 255, 0.78);
}

.nv-acct-hero .nv-steps__item.is-current .nv-steps__label {
	color: #fff;
}

.nv-acct-hero .nv-steps__item + .nv-steps__item::before {
	background: rgba(255, 255, 255, 0.25);
}

.nv-acct-hero .nv-steps__dot {
	border-color: rgba(255, 255, 255, 0.45);
	color: #fff;
}

.nv-acct-hero .nv-steps__item.is-current .nv-steps__dot {
	border-color: #fff;
	background: #fff;
	color: #2b255e;
}

.nv-acct-hero .nv-steps__item.is-done .nv-steps__dot {
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

/* --------------------------------------------------------------------------
 * Navigation: icons, white card on desktop
 * ------------------------------------------------------------------------ */
.nv-premium .woocommerce-MyAccount-navigation-link--dashboard { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--subscriptions { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 2l4 4-4 4'/%3E%3Cpath d='M3 11V9a3 3 0 0 1 3-3h15'/%3E%3Cpath d='M7 22l-4-4 4-4'/%3E%3Cpath d='M21 13v2a3 3 0 0 1-3 3H3'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--orders { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5z'/%3E%3Cpath d='M3 8l9 5 9-5'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--edit-address { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--payment-methods { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4.5' width='20' height='15' rx='2.5'/%3E%3Cpath d='M2 9.5h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--edit-account { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4.5'/%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3C/svg%3E"); }
.nv-premium .woocommerce-MyAccount-navigation-link--customer-logout { --nv-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpath d='M16 17l5-5-5-5'/%3E%3Cpath d='M21 12H9'/%3E%3C/svg%3E"); }

.nv-premium .woocommerce-MyAccount-navigation a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
}

.nv-premium .woocommerce-MyAccount-navigation a::before {
	content: "";
	flex: none;
	inline-size: 1.15rem;
	block-size: 1.15rem;
	background: currentColor;
	-webkit-mask: var(--nv-ico) center / contain no-repeat;
	mask: var(--nv-ico) center / contain no-repeat;
	opacity: 0.72;
}

.nv-premium .woocommerce-MyAccount-navigation .is-active a::before {
	opacity: 1;
}

@media (min-width: 60em) {
	.nv-premium .woocommerce-MyAccount-navigation ul {
		padding: 0.6rem;
		border: 1px solid var(--nv-line);
		border-radius: var(--nv-radius);
		background: #fff;
		box-shadow: var(--nv-premium-shadow);
	}

	.nv-premium .woocommerce-MyAccount-navigation a {
		position: relative;
		border-radius: calc(var(--nv-radius-s) - 2px);
	}

	.nv-premium .woocommerce-MyAccount-navigation a:hover {
		background: var(--nv-premium-tint);
	}

	.nv-premium .woocommerce-MyAccount-navigation .is-active a {
		background: var(--nv-premium-tint);
		box-shadow: none;
		color: var(--nv-ink);
		font-weight: 600;
	}

	/* The current page: a short spectrum bar, the brand's one touch of magenta here */
	.nv-premium .woocommerce-MyAccount-navigation .is-active a::after {
		content: "";
		position: absolute;
		inset-block: 0.55rem;
		inset-inline-start: 0;
		inline-size: 3px;
		border-radius: 3px;
		background: linear-gradient(180deg, #00b5cb 0%, #4e2583 55%, #e6007e 100%);
	}
}

@media (max-width: 59.99em) {
	.nv-premium .woocommerce-MyAccount-navigation a::before {
		inline-size: 1rem;
		block-size: 1rem;
	}

	.nv-premium .woocommerce-MyAccount-navigation a {
		gap: 0.45rem;
		box-shadow: 0 1px 2px rgba(23, 20, 58, 0.04);
	}
}

/* --------------------------------------------------------------------------
 * Cards and tables: white on paper
 * ------------------------------------------------------------------------ */
.nv-premium .woocommerce table.shop_table,
.nv-premium .nv-sub-card,
.nv-premium .nv-order-card,
.nv-premium .woocommerce-Addresses .woocommerce-Address,
.nv-premium .woocommerce-customer-details .woocommerce-column,
.nv-premium .woocommerce-EditAccountForm fieldset,
.nv-premium .woocommerce-address-fields,
.nv-premium .nv-overview__link {
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

.nv-premium .woocommerce table.shop_table thead th,
.nv-premium .woocommerce table.shop_table tfoot tr > * {
	background: #fbfaf8;
}

/* View subscription: the status is in the card above, so the table starts with the dates */
.nv-premium table.subscription_details tbody > tr:first-child {
	display: none;
}

/* View subscription: the header already names the products, number and price, so the
   summary card keeps the image, status and next payment only */
.nv-premium .woocommerce-MyAccount-content > .nv-sub-card .nv-sub-card__id,
.nv-premium .woocommerce-MyAccount-content > .nv-sub-card .nv-sub-card__name,
.nv-premium .woocommerce-MyAccount-content > .nv-sub-card .nv-sub-card__price {
	display: none;
}

.nv-premium .woocommerce-MyAccount-content > .nv-sub-card {
	align-items: center;
}

.nv-premium .woocommerce-MyAccount-content > .nv-sub-card .nv-sub-card__top {
	margin: 0;
}

.nv-premium .woocommerce-customer-details address {
	box-shadow: none;
}

/* Order lines with the product's image */
.nv-premium .nv-line-media {
	display: inline-flex;
	vertical-align: middle;
	margin-inline-end: 0.75rem;
}

.nv-premium .nv-line-img,
.nv-premium .nv-orders-cell__img img {
	inline-size: 2.75rem;
	block-size: 2.75rem;
	object-fit: contain;
	padding: 0.2rem;
	border-radius: 0.6rem;
	background: #f6f3ef;
}

.nv-premium .nv-line-name {
	vertical-align: middle;
}

.nv-premium .nv-orders-cell {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.nv-premium .nv-orders-cell > span:last-child {
	display: grid;
	gap: 0.15rem;
}

/* The pill carries the status colour, so the table's own dot goes (on phones ::before is the label) */
@media (min-width: 48em) {
	.nv-premium .woocommerce-orders-table__cell-order-status:has(.nv-pill)::before {
		content: none;
	}
}

/* Phones: WooCommerce prints the order number as a row header, which its responsive table
   hides; show it as the card's title (number, products and image) */
@media (max-width: 47.99em) {
	.nv-premium .woocommerce table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number {
		display: block;
		padding: 0.85rem 1rem;
		border-block-start: 0 !important;
		background: #fbfaf8 !important;
		text-align: start;
	}

	.nv-premium .woocommerce table.shop_table_responsive tbody th.woocommerce-orders-table__cell-order-number::before {
		content: none;
	}

	.nv-premium .woocommerce table.shop_table_responsive tbody tr > th.woocommerce-orders-table__cell-order-number + td {
		border-block-start: 1px solid var(--nv-line) !important;
	}
}

.nv-premium .woocommerce-orders-table .nv-account-items {
	max-inline-size: 22rem;
	color: var(--nv-muted);
	font-size: 0.8125rem;
	font-weight: 400;
}

/* --------------------------------------------------------------------------
 * Notices (incl. WooCommerce's "Confirm your email address…"): a solid info card
 * ------------------------------------------------------------------------ */
.nv-premium .woocommerce-MyAccount-content .woocommerce-info,
.nv-premium .woocommerce-MyAccount-content .woocommerce-Message--info,
.nv-premium--change-payment .woocommerce-info {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1.25rem;
	padding: 1.05rem 1.25rem 1.05rem 3.4rem;
	border: 1px solid rgba(78, 37, 131, 0.16);
	border-radius: var(--nv-radius);
	background: linear-gradient(0deg, var(--nv-premium-tint), var(--nv-premium-tint)), #fff;
	color: var(--nv-text);
	line-height: 1.5;
}

.nv-premium .woocommerce-MyAccount-content .woocommerce-info::before,
.nv-premium--change-payment .woocommerce-info::before {
	content: "";
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: 1.15rem;
	inline-size: 1.35rem;
	block-size: 1.35rem;
	margin-block-start: -0.675rem;
	background: #4e2583;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%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' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------------------
 * Overview: "Next payment" card and quick links
 * (own class, nv-nextpay: the confirmation's "What happens next" block is nv-next)
 * ------------------------------------------------------------------------ */
.nv-nextpay {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-block-end: clamp(0.25rem, 0.5vw, 0.75rem);
	padding: 1rem 1.25rem 1rem 1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

.nv-nextpay__date {
	padding: 0.85rem 1.1rem;
	border-radius: calc(var(--nv-radius) - 0.35rem);
	background: var(--nv-premium-gradient);
	color: #fff;
}

.nv .nv-nextpay__label {
	margin: 0;
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv .nv-nextpay__day {
	margin: 0.2rem 0 0;
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 1.15rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.nv .nv-nextpay__name {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-weight: 600;
}

.nv .nv-nextpay__price {
	margin: 0.15rem 0 0;
	color: var(--nv-muted);
	font-size: 0.9375rem;
}

@media (max-width: 40em) {
	.nv-nextpay {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.nv-nextpay__action {
		justify-self: stretch;
		justify-content: center;
	}
}

.nv-overview__links--quick {
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

/* --------------------------------------------------------------------------
 * Payment: Payment methods, Add a card, Change payment
 * ------------------------------------------------------------------------ */
.nv-premium .woocommerce-PaymentMethods .payment-method-method {
	color: var(--nv-ink);
	font-weight: 600;
}

.nv-premium .woocommerce-PaymentMethods .payment-method-method::before {
	content: "";
	display: inline-block;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin-inline-end: 0.6rem;
	vertical-align: -0.25rem;
	background: var(--nv-ink);
	-webkit-mask: var(--nv-card-ico) center / contain no-repeat;
	mask: var(--nv-card-ico) center / contain no-repeat;
}

.nv-premium {
	--nv-card-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4.5' width='20' height='15' rx='2.5'/%3E%3Cpath d='M2 9.5h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E");
}

.nv-premium .woocommerce-PaymentMethods .default-payment-method,
.nv-premium .woocommerce-PaymentMethods .button.default {
	font-size: 0.8125rem;
}

/* The payment form: a white card, not WooCommerce's lilac box (#add_payment_method #payment is
   WooCommerce's own, stronger selector on Add a card) */
.nv-premium #add_payment_method #payment,
.nv-premium #payment {
	overflow: hidden;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

.nv-premium #payment ul.payment_methods {
	margin: 0;
	padding: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
	border: 0;
}

.nv-premium #payment ul.payment_methods > li {
	list-style: none;
}

/* One method only: no lonely radio button (it stays for screen readers and the form) */
.nv-premium #payment ul.payment_methods > li:only-child > input.input-radio {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	opacity: 0;
	pointer-events: none;
}

.nv-premium #payment ul.payment_methods > li > label {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
}

.nv-premium #payment ul.payment_methods > li > label::before {
	content: "";
	inline-size: 1.35rem;
	block-size: 1.35rem;
	background: var(--nv-ink);
	-webkit-mask: var(--nv-card-ico) center / contain no-repeat;
	mask: var(--nv-card-ico) center / contain no-repeat;
}

.nv-premium #add_payment_method #payment div.payment_box,
.nv-premium #payment div.payment_box {
	margin: 1rem 0 0;
	padding: 0;
	background: none;
	color: var(--nv-text);
	font-size: 0.9375rem;
}

.nv-premium #add_payment_method #payment div.payment_box::before,
.nv-premium #payment div.payment_box::before {
	display: none;
}

.nv-premium #add_payment_method #payment ul.payment_methods {
	border-block-end: 0;
}

/* Change payment: the header already says what to do and when the next payment is */
.nv-premium--change-payment .woocommerce > .woocommerce-info,
.nv-premium--change-payment .woocommerce-notices-wrapper + .woocommerce-info {
	display: none;
}

/* Change payment: one plain column, not the account grid. The grid's gap also went around Stripe's
 * express checkout pieces before the form (its empty order-attribution element and "— OR —"),
 * leaving about 150 px of space; Stripe's own margins and this one now set the spacing. */
.nv-premium--change-payment .nv-commerce--account .woocommerce {
	display: block;
}

.nv-premium--change-payment #wc-stripe-express-checkout-button-separator {
	margin-block-end: 1.5rem;
}

.nv-premium #payment div.payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Stripe's / the preview's test-mode line: a small quiet badge */
.nv-premium #payment div.payment_box > p:first-child {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: #fff7e6;
	color: #7a4b00;
	font-size: 0.8125rem;
}

/* Saved cards: tappable rows */
.nv-premium #payment ul.woocommerce-SavedPaymentMethods {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 1rem;
	padding: 0;
}

.nv-premium #payment ul.woocommerce-SavedPaymentMethods li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0;
	padding: 0.8rem 1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius-s);
	list-style: none;
}

.nv-premium #payment ul.woocommerce-SavedPaymentMethods li:has(input:checked) {
	border-color: #4e2583;
	background: var(--nv-premium-tint);
}

.nv-premium #payment ul.woocommerce-SavedPaymentMethods li label {
	margin: 0;
	color: var(--nv-ink);
	font-weight: 500;
}

/* Checkboxes in account forms: the label wraps as one line of text (no gaps around the bold word) */
.nv-premium label.woocommerce-form__label-for-checkbox,
.nv-premium .nv-commerce .woocommerce form .form-row label:has(> input[type="checkbox"]) {
	position: relative;
	display: block;
	padding-inline-start: 1.85rem;
	color: var(--nv-text);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
}

/* A tick box is always optional; WooCommerce's "(optional)" adds nothing there */
.nv-premium #update_all_subscriptions_billing_contact_field .optional {
	display: none;
}

.nv-premium label.woocommerce-form__label-for-checkbox > input[type="checkbox"],
.nv-premium .nv-commerce .woocommerce form .form-row label:has(> input[type="checkbox"]) > input {
	position: absolute;
	inset-block-start: 0.2em;
	inset-inline-start: 0;
	margin: 0;
}

.nv-premium #payment .form-row.place-order,
.nv-premium #payment > .form-row,
.nv-premium #payment > div.form-row {
	margin: 0;
	padding: 1.1rem clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
	border-block-start: 1px solid var(--nv-line);
	background: #fbfaf8;
}

/* Change payment: "Use this payment method for all…" sits between the list and the button */
.nv-premium #payment .update-all-subscriptions-payment-method-wrap {
	display: block;
	padding: 0 clamp(1.1rem, 0.9rem + 1vw, 1.6rem) 1.1rem;
}

.nv-premium #payment .update-all-subscriptions-payment-method-wrap .form-row {
	margin: 0;
	padding: 0;
}

/* Change payment: the order summary above the form is a quiet card */
.nv-premium--change-payment .woocommerce form#order_review > table.shop_table {
	margin-block-end: 1.5rem;
}

@media (max-width: 40em) {
	.nv-premium--change-payment form#order_review > table.shop_table {
		font-size: 0.875rem;
	}

	.nv-premium--change-payment form#order_review > table.shop_table :is(th, td) {
		padding-inline: 0.75rem;
	}
}

/* --------------------------------------------------------------------------
 * Order confirmation
 * ------------------------------------------------------------------------ */
.nv-premium .woocommerce-thankyou-order-received:empty {
	display: none;
}

/* "What happens next" (template-parts/checkout/next-steps.php): a white card with the heading,
 * the list and the buttons side by side, stacked on phones */
.nv-premium--order-received .nv-next {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem 1.5rem;
	margin-block-end: clamp(0.25rem, 0.5vw, 0.75rem);
	padding: 1rem 1.25rem 1rem 1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

@media (max-width: 40em) {
	.nv-premium--order-received .nv-next {
		grid-template-columns: 1fr;
		padding: 1rem;
	}
}

.nv-premium ul.woocommerce-order-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 1rem 1.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

.nv-premium ul.woocommerce-order-overview li {
	margin: 0;
	padding: 0;
	border: 0;
}

/* --------------------------------------------------------------------------
 * Account details
 * ------------------------------------------------------------------------ */
.nv .nv-field-hint {
	margin: 0.5rem 0 1.5rem;
	color: var(--nv-muted);
	font-size: 0.875rem;
}

.nv-premium .woocommerce-EditAccountForm fieldset legend {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Payment methods as card tiles (0.25.8, audit B2)
 * ------------------------------------------------------------------------ */
.nv-paycards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.nv-paycards__item {
	display: grid;
	gap: 1rem;
	padding: 1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
	box-shadow: var(--nv-premium-shadow);
}

.nv-paycards__item.is-default {
	border-color: rgba(78, 37, 131, 0.45);
	box-shadow: 0 0 0 1px rgba(78, 37, 131, 0.25), var(--nv-premium-shadow);
}

.nv-paycards__face {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr auto;
	gap: 0.35rem;
	aspect-ratio: 1.586;
	max-inline-size: 20rem;
	padding: 1.1rem 1.25rem;
	overflow: hidden;
	border-radius: 0.9rem;
	background: var(--nv-premium-gradient);
	color: #fff;
	font-family: var(--nv-heading);
}

.nv-paycards__face::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	block-size: 3px;
	background: var(--nv-spectrum);
}

.nv-paycards__chip {
	inline-size: 2.25rem;
	block-size: 1.7rem;
	border-radius: 0.35rem;
	background: linear-gradient(135deg, #f1dfa4, #c9a54d);
	opacity: 0.9;
}

.nv-paycards__brand {
	justify-self: end;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.nv-paycards__digits {
	grid-column: 1 / -1;
	align-self: end;
	font-size: clamp(1.15rem, 1rem + 0.6vw, 1.35rem);
	font-weight: 600;
	letter-spacing: 0.12em;
}

.nv-paycards__exp {
	grid-column: 1 / -1;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

.nv-paycards__details {
	display: grid;
	gap: 0.35rem;
}

.nv .nv-paycards__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--nv-ink-deep);
	font-family: var(--nv-heading);
	font-weight: 600;
}

.nv-paycards__badge {
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: #ece9f6;
	color: #4e2583;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nv .nv-paycards__meta {
	margin: 0;
	color: var(--nv-muted);
	font-size: 0.875rem;
}

.nv-paycards__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-block-start: 0.4rem;
}

.nv-premium .nv-paycards__actions a.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-block-size: 2.5rem;
	margin: 0;
	padding: 0 1.1rem !important;
	border: 1px solid rgba(43, 37, 94, 0.22) !important;
	border-radius: 999px;
	background: transparent !important;
	color: var(--nv-ink) !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1 !important;
	box-shadow: none !important;
}

.nv-premium .nv-paycards__actions a.button:hover,
.nv-premium .nv-paycards__actions a.button:focus-visible {
	border-color: var(--nv-ink) !important;
	background: var(--nv-ink) !important;
	color: #fff !important;
}

.nv-premium .nv-paycards__actions a.delete {
	color: #9b1c3a !important;
}

.nv-premium .nv-paycards__actions a.delete:hover,
.nv-premium .nv-paycards__actions a.delete:focus-visible {
	border-color: #9b1c3a !important;
	background: #9b1c3a !important;
	color: #fff !important;
}

.nv-premium a.button.nv-paycards__add {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center;
	gap: 0.5rem;
	line-height: 1 !important;
}

.nv-paycards__add .icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.nv-paycards-empty {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	margin-block-end: 1.5rem;
	padding: clamp(1.75rem, 1.25rem + 2vw, 2.75rem) 1.25rem;
	border: 1px dashed rgba(78, 37, 131, 0.3);
	border-radius: var(--nv-radius);
	background: #fff;
	text-align: center;
}

.nv-paycards-empty__icon {
	display: grid;
	place-items: center;
	inline-size: 3rem;
	block-size: 3rem;
	border-radius: 50%;
	background: #ece9f6;
	color: #4e2583;
}

.nv-paycards-empty__icon .icon {
	inline-size: 1.25rem;
	block-size: 1.25rem;
}

.nv .nv-paycards-empty__title {
	margin: 0;
	color: var(--nv-ink-deep);
	font-family: var(--nv-heading);
	font-size: 1.125rem;
	font-weight: 600;
}

.nv .nv-paycards-empty__text {
	max-inline-size: 30rem;
	margin: 0;
	color: var(--nv-muted);
	font-size: 0.9375rem;
}

@media (min-width: 36em) {
	.nv-paycards__item {
		grid-template-columns: 11rem minmax(0, 1fr);
		align-items: center;
	}

	.nv-paycards__face {
		padding: 0.8rem 0.9rem;
	}

	.nv-paycards__chip {
		inline-size: 1.6rem;
		block-size: 1.2rem;
	}

	.nv-paycards__brand {
		font-size: 0.8125rem;
	}

	.nv-paycards__digits {
		font-size: 0.95rem;
	}

	.nv-paycards__exp {
		font-size: 0.6875rem;
	}
}
