/*
 * Novus DNA – My Account (inc/account.php): the signed-out pages as a brand panel beside the
 * form, the account menu, the overview, subscription and order cards, tables, forms and
 * notices. Also the order confirmation's tables (same WooCommerce markup) and the empty basket.
 * Presentation only: WooCommerce's forms, fields and actions are unchanged.
 */

/* ---------------------------------------------------------------
 * Fields: boxed, as in the checkout (the classic forms used the old underline style)
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce form .form-row input.input-text,
.nv-commerce .woocommerce form .form-row textarea,
.nv-commerce .woocommerce form .form-row select,
.nv-commerce .woocommerce form .input-text {
	inline-size: 100%;
	min-block-size: 3rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid rgba(43, 37, 94, 0.22);
	border-radius: var(--nv-radius-s);
	background: #fff;
	color: var(--nv-text);
	font-family: var(--nv-body);
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nv-commerce .woocommerce form .form-row input.input-text:hover,
.nv-commerce .woocommerce form .form-row select:hover {
	border-color: rgba(43, 37, 94, 0.4);
}

.nv-commerce .woocommerce form .form-row input.input-text:focus,
.nv-commerce .woocommerce form .form-row textarea:focus,
.nv-commerce .woocommerce form .form-row select:focus {
	border-color: var(--nv-ink);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(78, 37, 131, 0.16);
}

.nv-commerce .woocommerce form .form-row {
	margin: 0 0 1.1rem;
	padding: 0;
}

.nv-commerce .woocommerce form .form-row label {
	display: block;
	margin-block-end: 0.4rem;
	color: var(--nv-ink);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.nv-commerce .woocommerce form .form-row label.woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	color: var(--nv-text);
	font-weight: 400;
}

.nv-commerce .woocommerce form .form-row .required {
	color: #b3261e;
	text-decoration: none;
}

.nv-commerce .woocommerce form input[type="checkbox"] {
	inline-size: 1.1rem;
	block-size: 1.1rem;
	accent-color: var(--nv-ink);
}

/* Hints ("This will be how your name will be displayed…") */
.nv-commerce .woocommerce form .form-row em,
.nv-commerce .woocommerce form .form-row span em {
	display: block;
	margin-block-start: 0.35rem;
	color: var(--nv-muted);
	font-size: 0.8125rem;
	font-style: normal;
}

/* Show-password eye sits inside the box. */
.nv-commerce .woocommerce form .password-input {
	position: relative;
	display: block;
}

.nv-commerce .woocommerce form .password-input .show-password-input {
	position: absolute;
	top: 50%;
	right: 0.5rem;
	display: grid;
	place-items: center;
	margin: 0;
	transform: translateY(-50%);
}

.nv-commerce .woocommerce form .password-input input.input-text {
	padding-inline-end: 3rem;
}

/* Country and county pickers (select2) */
.nv-commerce .select2-container .select2-selection--single {
	block-size: 3rem;
	border: 1px solid rgba(43, 37, 94, 0.22);
	border-radius: var(--nv-radius-s);
}

.nv-commerce .select2-container .select2-selection--single .select2-selection__rendered {
	padding-inline: 0.9rem 2rem;
	color: var(--nv-text);
	line-height: 3rem;
}

.nv-commerce .select2-container .select2-selection--single .select2-selection__arrow {
	block-size: 3rem;
	inset-inline-end: 0.5rem;
}

/* Buttons in the classic forms and tables */
.nv-commerce .woocommerce form .button,
.nv-commerce .woocommerce .woocommerce-Button {
	min-block-size: 3rem;
	padding: 0 1.6rem;
	border: 1.5px solid var(--nv-ink);
	border-radius: 999px;
	background: var(--nv-ink);
	color: #fff;
	font-family: var(--nv-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.nv-commerce .woocommerce form .button:hover,
.nv-commerce .woocommerce .woocommerce-Button:hover {
	border-color: var(--nv-ink-deep);
	background: var(--nv-ink-deep);
	color: #fff;
}

/* Password change on Account details: a titled panel, not a browser fieldset */
.nv-commerce .woocommerce-EditAccountForm fieldset {
	margin: 1.75rem 0 1.5rem;
	padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
}

.nv-commerce .woocommerce-EditAccountForm legend {
	float: left; /* keeps the legend inside the panel */
	inline-size: 100%;
	margin-block-end: 1rem;
	padding: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.125rem;
	font-weight: 600;
}

.nv-commerce .woocommerce-EditAccountForm legend + * {
	clear: both;
}

@media (min-width: 48em) {
	.nv-commerce .woocommerce form .form-row-first,
	.nv-commerce .woocommerce form .form-row-last {
		inline-size: calc(50% - 0.6rem);
	}
}

/* ---------------------------------------------------------------
 * Notices inside the account (e.g. "No saved methods found.")
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce-MyAccount-content .woocommerce-info,
.nv-commerce .woocommerce-MyAccount-content .woocommerce-Message--info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.25rem;
	border: 1px dashed rgba(43, 37, 94, 0.22);
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
	color: var(--nv-text);
}

.nv-commerce .woocommerce-MyAccount-content .woocommerce-info::before,
.nv-commerce .woocommerce-MyAccount-content .woocommerce-Message--info::before {
	content: none;
}

.nv-commerce .woocommerce-MyAccount-content .woocommerce-info .button {
	order: 2;
	min-block-size: 2.5rem;
	margin: 0;
	font-size: 0.8125rem;
}

/* ---------------------------------------------------------------
 * Signed-out pages: brand panel beside the form
 * ------------------------------------------------------------- */
.nv-auth {
	padding-block: clamp(1.25rem, 0.5rem + 3vw, 3.5rem) clamp(3rem, 2rem + 4vw, 6rem);
	background: var(--nv-paper);
}

.nv-auth .nv-container.nv-auth__grid {
	display: grid;
	max-inline-size: calc(68rem + var(--nv-gutter) * 2);
	gap: 1.25rem;
}

@media (min-width: 60em) {
	.nv-auth .nv-container.nv-auth__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 0;
	}
}

.nv-auth__brand {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
	border-radius: var(--nv-radius);
	background:
		radial-gradient(28rem 18rem at 100% 0%, rgba(0, 181, 203, 0.24), transparent 65%),
		radial-gradient(26rem 18rem at 0% 100%, rgba(230, 0, 126, 0.18), transparent 65%),
		linear-gradient(140deg, var(--nv-ink-deep) 0%, var(--nv-ink) 55%, #4e2583 100%);
	color: #fff;
}

@media (min-width: 60em) {
	.nv-auth__brand {
		min-block-size: 34rem;
		border-start-end-radius: 0;
		border-end-end-radius: 0;
	}
}

/* The DNA mark, faint, in the corner */
.nv-auth__brand::after {
	content: "";
	position: absolute;
	inset-block-end: -3rem;
	inset-inline-end: -3rem;
	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-auth .nv-auth__eyebrow {
	color: rgba(255, 255, 255, 0.78);
}

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

.nv-auth__title {
	margin: 0.6rem 0 0.75rem;
	color: #fff;
	font-family: var(--nv-heading);
	font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

.nv-auth .nv-auth__text {
	max-inline-size: 26rem;
	color: rgba(255, 255, 255, 0.86);
	font-size: 1.0625rem;
}

.nv-auth__points {
	display: grid;
	gap: 0.85rem;
	margin: 2rem 0 0;
	padding: 0;
	list-style: none;
}

.nv-auth__points li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: #fff;
	font-size: 0.9375rem;
}

.nv-auth__point-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	inline-size: 2.25rem;
	block-size: 2.25rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
}

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

.nv-auth .nv-auth__foot {
	position: relative;
	z-index: 1;
	margin-block-start: auto;
	padding-block-start: 2rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.875rem;
}

.nv-auth .nv-auth__foot a {
	color: #fff;
	font-weight: 600;
}

/* Phones: a compact header strip, the form straight after it */
@media (max-width: 59.99em) {
	.nv-auth__points,
	.nv-auth .nv-auth__foot {
		display: none;
	}

	.nv-auth__brand::after {
		inline-size: 10rem;
		block-size: 10rem;
	}
}

.nv-auth__main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
}

@media (min-width: 60em) {
	.nv-auth__main {
		border-inline-start: 0;
		border-start-start-radius: 0;
		border-end-start-radius: 0;
	}
}

.nv-auth__main .woocommerce {
	display: block;
	inline-size: 100%;
	max-inline-size: 26rem;
	margin-inline: auto;
}

.nv-auth__main .woocommerce > h2 {
	margin: 0 0 1.25rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

/* The form sits on the white card: no second box */
.nv-commerce.nv-auth .woocommerce form.login,
.nv-commerce.nv-auth .woocommerce form.register,
.nv-commerce.nv-auth .woocommerce form.lost_reset_password {
	padding: 0;
	border: 0;
	background: none;
}

.nv-auth .woocommerce form .form-row-first,
.nv-auth .woocommerce form .form-row-last {
	float: none;
	inline-size: 100%;
}

/* Remember me above a full-width button */
.nv-auth .woocommerce form.login .form-row:has(.woocommerce-form-login__submit) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1.1rem;
	margin-block-start: 0.5rem;
}

.nv-auth .woocommerce form .button {
	inline-size: 100%;
	margin: 0;
}

.nv-auth .woocommerce .lost_password {
	margin: 1rem 0 0;
	text-align: center;
}

.nv-auth .woocommerce .lost_password a,
.nv-auth .woocommerce-ResetPassword > p:first-child + p a {
	color: var(--nv-ink);
	font-weight: 600;
}

.nv-auth .woocommerce form.lost_reset_password > p:first-of-type {
	margin-block-end: 1.25rem;
	color: var(--nv-muted);
}

.nv-auth .woocommerce-message,
.nv-auth .woocommerce-error,
.nv-auth .woocommerce-info {
	margin-block-end: 1.25rem;
}

/* Reset link sent: WooCommerce's message as the card's text */
.nv-auth--sent .nv-auth__main .woocommerce > p {
	color: var(--nv-muted);
}

.nv-auth__note {
	display: grid;
	gap: 0.35rem;
	margin-block-start: 2rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--nv-line);
	color: var(--nv-muted);
	font-size: 0.9375rem;
}

.nv .nv-auth__note-title {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-weight: 600;
}

.nv-auth__note-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-block-start: 0.35rem;
	color: var(--nv-ink) !important;
	font-weight: 600;
	text-decoration: none;
}

.nv-auth__note-link .icon {
	inline-size: 0.85rem;
	block-size: 0.85rem;
}

/* ---------------------------------------------------------------
 * Account menu
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
	margin-block-start: 0.35rem;
	padding-block-start: 0.35rem;
	border-block-start: 1px solid var(--nv-line);
}

.nv-commerce .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a {
	color: var(--nv-muted);
	font-weight: 500;
}

.nv-commerce .woocommerce-MyAccount-navigation a:focus-visible {
	outline: 2px solid #00b5cb;
	outline-offset: 2px;
}

.nv-account-nav__more {
	display: none;
}

/* Phones and tablets: one scrolling row of tabs instead of a tall list */
@media (max-width: 59.99em) {
	.nv-commerce .woocommerce-MyAccount-navigation {
		margin-inline: calc(var(--nv-gutter) * -1);
	}

	.nv-commerce .woocommerce-MyAccount-navigation ul {
		position: relative; /* tabs measure their offset from the row (inc/account.php) */
		display: flex;
		gap: 0.5rem;
		overflow-x: auto;
		padding: 0.25rem var(--nv-gutter) 0.5rem;
		border-radius: 0;
		background: none;
		scrollbar-width: none;
		scroll-padding-inline: var(--nv-gutter);
	}

	.nv-commerce .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
		display: none;
	}

	.nv-commerce .woocommerce-MyAccount-navigation li {
		flex: 0 0 auto;
	}

	.nv-commerce .woocommerce-MyAccount-navigation a {
		padding: 0.55rem 1rem;
		border: 1px solid var(--nv-line);
		border-radius: 999px;
		background: #fff;
		font-size: 0.875rem;
		white-space: nowrap;
	}

	.nv-commerce .woocommerce-MyAccount-navigation .is-active a {
		border-color: var(--nv-ink);
		background: var(--nv-ink);
		color: #fff;
	}

	.nv-commerce .woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
		margin: 0;
		padding: 0;
		border: 0;
	}

	/* More tabs to the side: faded edge plus an arrow (added by inc/account.php) */
	.nv-commerce .woocommerce-MyAccount-navigation {
		position: relative;
	}

	.nv-account-nav__more {
		position: absolute;
		inset-block: 0 0.25rem;
		display: flex;
		align-items: center;
		inline-size: 3.5rem;
		padding: 0 0.5rem;
		border: 0;
		color: var(--nv-ink);
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.15s, visibility 0.15s;
	}

	.nv-account-nav__more .icon {
		inline-size: 1.75rem;
		block-size: 1.75rem;
		padding: 0.35rem;
		border: 1px solid var(--nv-line);
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 2px 8px rgba(27, 23, 64, 0.12);
	}

	.nv-account-nav__more--prev {
		inset-inline-start: 0;
		justify-content: flex-start;
		background: linear-gradient(to right, var(--nv-nav-fade, var(--nv-paper)) 40%, transparent);
	}

	.nv-account-nav__more--next {
		inset-inline-end: 0;
		justify-content: flex-end;
		background: linear-gradient(to left, var(--nv-nav-fade, var(--nv-paper)) 40%, transparent);
	}

	.woocommerce-MyAccount-navigation.has-prev .nv-account-nav__more--prev,
	.woocommerce-MyAccount-navigation.has-next .nv-account-nav__more--next {
		opacity: 1;
		visibility: visible;
	}

	.nv-commerce--account .woocommerce {
		gap: 1.25rem;
	}
}

/* ---------------------------------------------------------------
 * Overview
 * ------------------------------------------------------------- */
.nv-commerce .nv-overview__logout {
	margin-inline-start: 0.35rem;
	color: var(--nv-ink);
	font-weight: 600;
	white-space: nowrap;
}

.nv-overview {
	display: grid;
	gap: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}

.nv-commerce .nv-overview h2.nv-overview__hello {
	margin: 0;
	font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
	letter-spacing: -0.02em;
}

.nv .nv-overview__intro {
	margin-block-start: 0.35rem;
	color: var(--nv-muted);
}

.nv-overview__section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin: 0 0 0.85rem;
}

.nv-overview__section-head h3,
h3.nv-overview__section-head {
	margin: 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.125rem;
	font-weight: 600;
}

.nv-overview__section-head a {
	color: var(--nv-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.nv-overview__subs {
	display: grid;
	gap: 0.75rem;
}

.nv-overview__empty {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px dashed rgba(43, 37, 94, 0.22);
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
}

.nv-overview__empty p {
	flex: 1 1 18rem;
	color: var(--nv-muted);
}

.nv-overview__links {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40em) {
	.nv-overview__links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.nv-overview__link {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	block-size: 100%;
	padding: 1rem 1.1rem;
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius-s);
	background: #fff;
	color: var(--nv-text);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nv-overview__link:hover {
	border-color: rgba(43, 37, 94, 0.35);
	box-shadow: 0 6px 18px -12px rgba(27, 23, 64, 0.35);
}

.nv-overview__link strong {
	display: block;
	color: var(--nv-ink);
	font-weight: 600;
}

.nv-overview__link span span {
	display: block;
	color: var(--nv-muted);
	font-size: 0.875rem;
}

.nv-overview__link-icon {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 50%;
	background: var(--nv-paper);
	color: #4e2583;
}

.nv-overview__link-icon .icon {
	inline-size: 1.05rem;
	block-size: 1.05rem;
}

.nv .nv-overview__help {
	margin-block-start: 1rem;
	color: var(--nv-muted);
	font-size: 0.9375rem;
}

.nv-overview__help a {
	color: var(--nv-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------
 * Subscription card (overview and the top of each subscription)
 * ------------------------------------------------------------- */
.nv-sub-card {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 1rem 1.25rem;
	margin-block-end: 1.5rem;
	padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
}

.nv-overview .nv-sub-card {
	margin: 0;
}

.nv-sub-card__media {
	inline-size: 4.5rem;
	block-size: 4.5rem;
	overflow: hidden;
	border-radius: var(--nv-radius-s);
	background: var(--nv-paper);
}

.nv-sub-card__media img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.nv-sub-card__main {
	display: grid;
	gap: 0.2rem;
	min-inline-size: 0;
}

.nv .nv-sub-card__top {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.6rem;
}

.nv-sub-card__id {
	color: var(--nv-muted);
	font-size: 0.8125rem;
}

.nv .nv-sub-card__name {
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
}

.nv .nv-sub-card__price {
	color: var(--nv-text);
	font-size: 0.9375rem;
}

.nv-sub-card__side {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.25rem;
	padding-block-start: 0.85rem;
	border-block-start: 1px solid var(--nv-line);
}

@media (min-width: 40em) {
	.nv-sub-card {
		grid-template-columns: auto minmax(0, 1fr) auto;
	}

	.nv-sub-card__side {
		flex-direction: column;
		grid-column: auto;
		align-items: flex-end;
		padding: 0;
		border: 0;
		text-align: end;
	}
}

.nv .nv-sub-card__date {
	display: grid;
	color: var(--nv-muted);
	font-size: 0.8125rem;
	line-height: 1.35;
}

.nv-sub-card__date strong {
	color: var(--nv-ink);
	font-size: 1rem;
	font-weight: 600;
}

/* Latest order (overview) */
.nv-order-card {
	display: grid;
	gap: 1rem;
	padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
}

.nv-order-card__facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1.25rem;
	margin: 0;
}

@media (min-width: 40em) {
	.nv-order-card__facts {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nv-order-card__facts dt {
	color: var(--nv-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nv-order-card__facts dd {
	margin: 0.15rem 0 0;
	color: var(--nv-ink);
	font-weight: 600;
}

.nv .nv-order-card__items {
	color: var(--nv-muted);
	font-size: 0.9375rem;
}

.nv-order-card .nv-button {
	justify-self: start;
}

/* Status pills */
.nv-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.5;
}

.nv-pill::before {
	content: "";
	inline-size: 0.45rem;
	block-size: 0.45rem;
	border-radius: 50%;
	background: currentColor;
}

.nv-pill--good {
	background: #e7f4ec;
	color: #1d6b3a;
}

.nv-pill--wait {
	background: #fdf1dd;
	color: #8a4b00;
}

.nv-pill--alert {
	background: #fbe7e6;
	color: #a1271f;
}

.nv-pill--quiet {
	background: var(--nv-paper);
	color: var(--nv-muted);
}

/* ---------------------------------------------------------------
 * Tables: orders, subscriptions, order details, totals
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce table.shop_table {
	overflow: hidden;
	margin: 0 0 1.5rem;
	border: 1px solid var(--nv-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--nv-radius);
	background: #fff;
	font-size: 0.9375rem;
}

.nv-commerce .woocommerce table.shop_table th,
.nv-commerce .woocommerce table.shop_table td {
	padding: 0.9rem 1.1rem;
	border: 0;
	border-block-start: 1px solid var(--nv-line);
	vertical-align: middle;
}

.nv-commerce .woocommerce table.shop_table thead th {
	border-block-start: 0;
	background: var(--nv-paper);
	color: var(--nv-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nv-commerce .woocommerce table.shop_table tbody tr:first-child > * {
	border-block-start: 0;
}

.nv-commerce .woocommerce table.shop_table thead + tbody tr:first-child > * {
	border-block-start: 1px solid var(--nv-line);
}

.nv-commerce .woocommerce table.shop_table tfoot th,
.nv-commerce .woocommerce table.shop_table tfoot td {
	background: #fcfbf9;
}

.nv-commerce .woocommerce table.shop_table tfoot tr:last-child > * {
	color: var(--nv-ink);
	font-size: 1.0625rem;
	font-weight: 700;
}

.nv-commerce .woocommerce table.shop_table a {
	color: var(--nv-ink);
	font-weight: 600;
	text-decoration: none;
}

.nv-commerce .woocommerce table.shop_table a:hover {
	text-decoration: underline;
}

/* Row buttons ("View", "Pay", "Cancel") as small outline buttons */
.nv-commerce .woocommerce table.shop_table td .button {
	min-block-size: 2.25rem;
	margin: 0.15rem 0.25rem 0.15rem 0;
	padding: 0 1rem;
	border: 1.5px solid var(--nv-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--nv-ink);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 2rem;
	text-decoration: none;
}

.nv-commerce .woocommerce table.shop_table td .button:hover {
	background: var(--nv-ink);
	color: #fff;
	text-decoration: none;
}

/* Status dots in the orders and subscriptions lists (wider screens: on phones ::before
 * carries WooCommerce's field label) */
@media (min-width: 48em) {
	.nv-commerce .woocommerce-orders-table__cell-order-status::before {
		content: "";
		display: inline-block;
		inline-size: 0.5rem;
		block-size: 0.5rem;
		margin-inline-end: 0.45rem;
		border-radius: 50%;
		background: var(--nv-muted);
		vertical-align: 0.1em;
	}

	.nv-commerce [class*="--status-processing"] .woocommerce-orders-table__cell-order-status::before,
	.nv-commerce [class*="--status-completed"] .woocommerce-orders-table__cell-order-status::before,
	.nv-commerce [class*="--status-active"] .woocommerce-orders-table__cell-order-status::before {
		background: #2e8b57;
	}

	.nv-commerce [class*="--status-on-hold"] .woocommerce-orders-table__cell-order-status::before,
	.nv-commerce [class*="--status-pending"] .woocommerce-orders-table__cell-order-status::before {
		background: #d98a00;
	}

	.nv-commerce [class*="--status-failed"] .woocommerce-orders-table__cell-order-status::before,
	.nv-commerce [class*="--status-cancelled"] .woocommerce-orders-table__cell-order-status::before {
		background: #c0392b;
	}
}

/* Products under each subscription number */
.nv-account-items {
	display: block;
	margin-block-start: 0.15rem;
	color: var(--nv-muted);
	font-size: 0.875rem;
	font-weight: 400;
}

/* Phones: each row as a card with labels (WooCommerce's responsive table) */
@media (max-width: 47.99em) {
	.nv-commerce .woocommerce table.shop_table_responsive {
		border: 0;
		background: none;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tbody tr {
		display: block;
		margin-block-end: 0.75rem;
		overflow: hidden;
		border: 1px solid var(--nv-line);
		border-radius: var(--nv-radius);
		background: #fff;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tbody tr > * {
		border-block-start: 1px solid var(--nv-line) !important;
		background: none !important;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tbody tr > :first-child {
		border-block-start: 0 !important;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td {
		padding: 0.7rem 1rem;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td::before {
		color: var(--nv-muted);
		font-size: 0.8125rem;
		font-weight: 500;
	}

	/* The number and its products as the card's title, left-aligned */
	.nv-commerce .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-number {
		background: var(--nv-paper) !important;
		text-align: start !important;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-number::before {
		display: none;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions {
		text-align: start !important;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	.nv-commerce .woocommerce table.shop_table_responsive tr td .button {
		inline-size: 100%;
		margin: 0;
		text-align: center;
	}
}

/* ---------------------------------------------------------------
 * View subscription: details and actions
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce table.subscription_details td:first-child {
	color: var(--nv-muted);
	inline-size: 38%;
}

.nv-commerce .woocommerce table.subscription_details td .button {
	min-block-size: 2.5rem;
	margin: 0.2rem 0.4rem 0.2rem 0;
	padding: 0 1.15rem;
	line-height: 2.25rem;
}

/* Pause and Resume lead (filled); Cancel last and quiet */
.nv-commerce .woocommerce table.subscription_details td .button.suspend,
.nv-commerce .woocommerce table.subscription_details td .button.reactivate,
.nv-commerce .woocommerce table.subscription_details td .button.resubscribe {
	background: var(--nv-ink);
	color: #fff;
}

.nv-commerce .woocommerce table.subscription_details td .button.cancel {
	border-color: transparent;
	color: #a1271f;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.nv-commerce .woocommerce table.subscription_details td .button.cancel:hover {
	border-color: #a1271f;
	background: #fbe7e6;
	color: #a1271f;
}

@media (max-width: 47.99em) {
	.nv-commerce .woocommerce table.subscription_details td {
		display: block;
		inline-size: auto !important;
	}

	.nv-commerce .woocommerce table.subscription_details td:first-child {
		padding-block-end: 0;
		border-block-end: 0;
		font-size: 0.8125rem;
	}

	.nv-commerce .woocommerce table.subscription_details tr > td + td {
		border-block-start: 0;
		padding-block-start: 0.2rem;
	}

	.nv-commerce .woocommerce table.subscription_details td .button {
		display: block;
		inline-size: 100%;
		margin: 0 0 0.5rem;
		text-align: center;
	}
}

/* ---------------------------------------------------------------
 * Addresses
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce address {
	font-style: normal;
	line-height: 1.6;
}

.nv-commerce .woocommerce-Addresses .woocommerce-Address,
.nv-commerce .woocommerce-customer-details .woocommerce-column {
	padding: clamp(1rem, 0.75rem + 1vw, 1.5rem);
	border: 1px solid var(--nv-line);
	border-radius: var(--nv-radius);
	background: #fff;
}

.nv-commerce .woocommerce-customer-details address {
	padding: 0;
	border: 0;
	border-radius: 0;
}

.nv-commerce .woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin-block-end: 0.75rem;
}

.nv-commerce .woocommerce-Address-title h2,
.nv-commerce .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 0 0.5rem !important;
	font-size: 1.125rem !important;
}

.nv-commerce .woocommerce-Address-title .edit {
	order: 2;
	float: none;
	color: var(--nv-ink);
	font-size: 0.875rem;
	font-weight: 600;
}

.nv-commerce .woocommerce-MyAccount-content > p:first-child:has(+ .woocommerce-Addresses) {
	color: var(--nv-muted);
}

/* ---------------------------------------------------------------
 * View order / order confirmation summary line
 * ------------------------------------------------------------- */
.nv-commerce .woocommerce-MyAccount-content > p:first-child mark {
	padding: 0.1rem 0.4rem;
	border-radius: 0.35rem;
	background: var(--nv-paper);
	color: var(--nv-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------
 * Empty basket (inc/checkout.php)
 * ------------------------------------------------------------- */
.nv-empty-basket {
	display: grid;
	gap: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.nv-empty-basket__intro {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	padding: clamp(1.75rem, 1.25rem + 2vw, 3rem) 1.25rem;
	border-radius: var(--nv-radius);
	background: var(--nv-paper);
	text-align: center;
}

.nv-empty-basket__icon {
	display: grid;
	place-items: center;
	inline-size: 3.5rem;
	block-size: 3.5rem;
	border-radius: 50%;
	background: #fff;
	color: var(--nv-ink);
}

.nv-empty-basket__icon .icon {
	inline-size: 1.4rem;
	block-size: 1.4rem;
}

.nv-commerce .nv-empty-basket__title {
	margin: 0.25rem 0 0;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
	font-weight: 600;
}

.nv .nv-empty-basket__text {
	max-inline-size: 32rem;
	color: var(--nv-muted);
}

.nv .nv-empty-basket__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem;
	margin-block-start: 0.5rem;
}

.nv-empty-basket__products {
	text-align: start;
}

.nv-commerce .nv-empty-basket__heading {
	margin: 0 0 1rem;
	color: var(--nv-ink);
	font-family: var(--nv-heading);
	font-size: 1.375rem;
	font-weight: 600;
}

.nv .nv-auth__back {
	margin-block-start: 1.5rem;
}

/* Tick-box rows (e.g. "Update the billing address … of my active subscriptions") read as text */
.nv-commerce .woocommerce form .form-row label:has(> input[type="checkbox"]) {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	color: var(--nv-text);
	font-weight: 400;
}

.nv-commerce .woocommerce form .form-row label:has(> input[type="checkbox"]) input {
	flex: 0 0 auto;
	margin-block-start: 0.2rem;
}

/* WooCommerce's clearfix pseudo-elements would take flex slots and push the heading in
   (its rule is .woocommerce-account .addresses .title::before, so match that weight) */
.nv-commerce .woocommerce-Addresses .woocommerce-Address-title::before,
.nv-commerce .woocommerce-Addresses .woocommerce-Address-title::after {
	content: none;
}

h3.nv-overview__section-head {
	margin-block-end: 0.85rem;
}

.nv-commerce .woocommerce-Address-title h2 {
	flex: 1 1 auto;
	text-align: start;
}
