/* Min konto: vis abonnement */

body.nk-sub-view,
body.nk-sub-list-page,
body.nk-dash-page {
	--nk-ink: #173e2b;
	--nk-muted: #5f6b64;
	--nk-line: #ddd4bf;
	--nk-cream: #f6f1e6;
	--nk-paper: #fffdf8;
}

body.nk-sub-view .woocommerce-MyAccount-content > header.entry-header,
body.nk-sub-view .woocommerce-MyAccount-content > h1,
body.nk-sub-view .woocommerce-MyAccount-content > .entry-title,
body.nk-dash-page .woocommerce-MyAccount-content > header.entry-header,
body.nk-dash-page .woocommerce-MyAccount-content > h1,
body.nk-dash-page .woocommerce-MyAccount-content > .entry-title,
body.nk-sub-view .nk-sub .wcs-auto-renew-toggle,
body.nk-sub-view .nk-sub .subscription_details tr:has(.wcs-auto-renew-toggle),
body.nk-sub-view .nk-sub .shop_table .product-remove,
body.nk-sub-view .nk-sub .shop_table th.product-remove,
body.nk-sub-view .nk-sub__details .nk-gave-sub-note,
body.nk-sub-view .nk-sub__details .subscription_details tr:first-child,
body.nk-sub-view .nk-sub__totals .shop_table thead,
body.nk-sub-manual .nk-sub__details tr:has(.subscription-payment-method),
body.nk-sub-manual .nk-sub__details .subscription-payment-method {
	display: none !important;
}

.nk-sub {
	max-width: 760px;
	color: #454545;
}

.nk-sub__hero {
	position: relative;
	overflow: hidden;
	padding: 1.7rem 1.5rem 1.45rem;
	margin: 0 0 1.2rem;
	border-radius: 24px;
	background:
		radial-gradient(circle at 88% 12%, rgba(196, 163, 90, 0.22), transparent 34%),
		linear-gradient(160deg, #173e2b 0%, #24543a 58%, #1b3327 100%);
	color: #f7f3ea;
}

.nk-sub__eyebrow {
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f3e6c4;
}

.nk-sub__hero h1 {
	margin: 0 0 0.85rem;
	color: #fff;
	font-size: clamp(1.55rem, 3.4vw, 2.1rem);
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.nk-sub__hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0 0 0.85rem;
}

.nk-sub__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.nk-sub__pill--gift {
	background: rgba(196, 163, 90, 0.28);
	color: #f3e6c4;
}

body.nk-sub-view .nk-sub__hero .nk-sub__next,
body.nk-sub-view .nk-sub__hero .nk-sub__next strong,
body.nk-sub-view .nk-sub__hero p.nk-sub__next,
body.nk-dash-page .nk-sub__hero .nk-sub__next,
body.nk-dash-page .nk-sub__hero .nk-sub__next strong,
body.nk-dash-page .nk-sub__hero p.nk-sub__next {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.4;
	color: #fff !important;
	-webkit-text-fill-color: #fff;
	opacity: 1;
}

.nk-sub__next strong {
	display: inline;
	font-weight: 700;
}

.nk-sub__hero-note {
	margin: 0.75rem 0 0;
	max-width: 36rem;
	color: rgba(247, 243, 234, 0.82);
	line-height: 1.5;
}

.nk-sub__card,
.nk-sub .nk-bland-selv .nk-gave__card {
	padding: 1.45rem 1.35rem 1.35rem;
	border: 1px solid var(--nk-line);
	border-radius: 20px;
	background: var(--nk-paper);
	box-shadow: 0 10px 30px rgba(23, 62, 43, 0.04);
}

.nk-sub__card {
	margin: 0 0 1.15rem;
}

.nk-sub .nk-bland-selv {
	margin: 0 0 1.15rem;
}

.nk-sub .nk-bland-selv .nk-gave__card {
	margin: 0;
}

.nk-sub__card h2,
.nk-sub .nk-bland-selv h2,
.nk-sub .woocommerce-column__title,
.nk-sub .woocommerce-customer-details h2 {
	margin: 0 0 0.85rem;
	color: var(--nk-ink);
	font-size: 1.15rem;
}

.nk-sub .shop_table,
.nk-sub .shop_table tr {
	width: 100%;
	margin: 0;
	border: 0 !important;
	border-collapse: collapse;
	background: transparent;
	box-shadow: none;
}

.nk-sub .shop_table th,
.nk-sub .shop_table td {
	padding: 0.55rem 0;
	border: 0 !important;
	background: transparent;
	text-align: left;
	vertical-align: middle;
}

.nk-sub .shop_table thead th {
	color: var(--nk-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.nk-sub .shop_table tbody tr:last-child th,
.nk-sub .shop_table tbody tr:last-child td,
.nk-sub .shop_table tfoot tr:last-child th,
.nk-sub .shop_table tfoot tr:last-child td {
	border-bottom: 0;
}

.nk-sub .shop_table tfoot th,
.nk-sub .subscription_details td:first-child {
	color: var(--nk-muted);
	font-weight: 600;
	width: 42%;
}

.nk-sub .shop_table tfoot tr:last-child th,
.nk-sub .shop_table tfoot tr:last-child td,
.nk-sub .subscription_details td:last-child {
	color: var(--nk-ink);
	font-weight: 600;
}

.nk-sub .shop_table .product-name a {
	color: var(--nk-ink);
	text-decoration: none;
}

.nk-sub .order-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.nk-sub .order-actions .button,
.nk-sub .order-actions a,
.nk-sub .order-actions a.button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	min-width: 0 !important;
	padding: 9px 16px !important;
	margin: 0 !important;
	border: 1px solid var(--nk-ink) !important;
	border-radius: 50px !important;
	background: #fff !important;
	color: var(--nk-ink) !important;
	font-size: 0.92rem !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.nk-sub .order-actions .button:hover,
.nk-sub .order-actions a:hover,
.nk-sub .order-actions a.button:hover {
	background: var(--nk-ink) !important;
	color: #fff !important;
}

.nk-sub .order-actions .cancel,
.nk-sub .order-actions a.cancel {
	border-color: #d8cfc0 !important;
	color: var(--nk-muted) !important;
}

.nk-sub .order-actions .cancel:hover,
.nk-sub .order-actions a.cancel:hover {
	border-color: #7a1f1a !important;
	background: #fff1f0 !important;
	color: #7a1f1a !important;
}

.nk-sub .woocommerce-customer-details {
	margin: 0;
}

.nk-sub .woocommerce-column__title,
.nk-sub .woocommerce-customer-details h2,
.nk-sub .woocommerce-customer-details .woocommerce-column__title {
	margin: 0 0 0.7rem;
	padding: 0;
	background: transparent;
	border: 0;
	color: var(--nk-ink);
	font-size: 1.15rem;
}

.nk-sub .woocommerce-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.2rem;
}

.nk-sub address {
	margin: 0;
	font-style: normal;
	line-height: 1.55;
	color: #454545;
}

.nk-sub .nk-gave-sub-note td {
	padding: 0.85rem 0;
	background: transparent;
	border: 0;
}

.nk-sub-list__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem;
	padding: 1.25rem 1.35rem;
	margin: 0 0 0.85rem;
	border: 1px solid var(--nk-line);
	border-radius: 20px;
	background: var(--nk-paper);
	box-shadow: 0 10px 30px rgba(23, 62, 43, 0.04);
}

.nk-sub-list__card.is-ended {
	opacity: 0.72;
}

.nk-sub-list__id {
	margin: 0 0 0.25rem;
	color: var(--nk-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.nk-sub-list__main h2 {
	margin: 0 0 0.3rem;
	color: var(--nk-ink);
	font-size: 1.15rem;
	line-height: 1.25;
}

.nk-sub-list__next {
	margin: 0;
	color: var(--nk-muted);
	line-height: 1.4;
}

.nk-sub-list__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.nk-sub-list .nk-sub__pill {
	background: #eef5ef;
	color: var(--nk-ink);
}

.nk-sub-list .nk-sub__pill--gift {
	background: #f3e6c4;
	color: #173e2b;
}

.nk-sub-list__price {
	color: var(--nk-ink);
	font-weight: 600;
}

.nk-sub-list__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--nk-ink);
	border-radius: 50px;
	background: var(--nk-ink);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

.nk-sub-list__btn:hover {
	background: #0f2a1d;
	color: #fff !important;
}

.nk-sub-list__past-title {
	margin: 1.6rem 0 0.75rem;
	color: var(--nk-ink);
	font-size: 1.05rem;
}

.nk-sub-list__pager {
	display: flex;
	gap: 0.75rem;
	margin-top: 1rem;
}

.nk-dash {
	max-width: 760px;
	color: #454545;
}

.nk-dash__hero {
	margin-bottom: 1.1rem;
}

.nk-dash__alert {
	display: block;
	padding: 1rem 1.15rem;
	margin: 0 0 1rem;
	border-radius: 16px;
	background: #fff6e8;
	color: #5c3d12;
	text-decoration: none !important;
}

.nk-dash__alert strong {
	display: block;
	margin: 0 0 0.2rem;
	color: #5c3d12;
}

.nk-dash__alert span {
	color: #7a5a28;
	line-height: 1.4;
}

.nk-dash__next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	margin: 0 0 0.75rem;
	border: 1px solid var(--nk-line);
	border-radius: 20px;
	background: var(--nk-paper);
}

.nk-dash__next-main {
	min-width: 0;
}

.nk-dash__next-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	margin: 0 0 0.25rem;
}

.nk-dash__next-head h2,
.nk-dash__next > h2 {
	margin: 0;
	color: var(--nk-ink);
	font-size: 1.12rem;
	line-height: 1.25;
}

.nk-dash__next .nk-sub__pill--gift {
	background: #f3e6c4;
	color: #173e2b;
}

.nk-dash__when {
	margin: 0;
	color: var(--nk-muted);
	line-height: 1.4;
}

.nk-dash__when a {
	color: #000;
	font-weight: 600;
}

.nk-dash__shop-btn {
	flex-shrink: 0;
	min-width: 10.5rem;
	padding: 10px 22px;
	white-space: nowrap;
}

.nk-dash__note {
	margin: 0 0 1rem;
	color: var(--nk-muted);
	line-height: 1.45;
}

.nk-dash__note a {
	color: var(--nk-ink);
	font-weight: 600;
}

.nk-dash__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.nk-dash__ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 9px 16px;
	border: 1px solid var(--nk-ink);
	border-radius: 50px;
	background: #fff;
	color: var(--nk-ink) !important;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}

.nk-dash__ghost:hover {
	background: var(--nk-ink);
	color: #fff !important;
}

.nk-dash__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

.nk-dash__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1rem 1.1rem 1rem;
	border: 1px solid var(--nk-line);
	border-radius: 18px;
	background: var(--nk-paper);
	color: inherit;
	text-decoration: none !important;
	transition: border-color 0.15s ease;
}

.nk-dash__card:hover {
	border-color: var(--nk-ink);
}

.nk-dash__card h2 {
	margin: 0 0 0.3rem;
	color: var(--nk-ink);
	font-size: 1rem;
	line-height: 1.25;
}

.nk-dash__card p {
	margin: 0;
	color: var(--nk-muted);
	line-height: 1.4;
}

@media (max-width: 700px) {
	.nk-sub__hero {
		padding: 1.35rem 1.15rem 1.2rem;
		border-radius: 20px;
	}

	.nk-sub .woocommerce-columns {
		grid-template-columns: 1fr;
	}

	.nk-sub .shop_table thead {
		display: none;
	}

	.nk-sub .shop_table td.product-total {
		text-align: right;
		white-space: nowrap;
	}

	.nk-sub-list__card {
		flex-direction: column;
		align-items: flex-start;
	}

	.nk-sub-list__meta {
		justify-content: flex-start;
	}

	.nk-dash__grid {
		grid-template-columns: 1fr;
	}

	.nk-dash__next {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.1rem 1.1rem;
	}
}
