/*
 * The Customer Help page (inc/help/page.php), look A1 "Help desk" (owner, 3 Nov): a navy band with
 * the search box, four quick-help tiles, a contact strip, then one column of topic cards whose
 * questions are core Details blocks. Loads on the Help page only. Every answer opens and closes
 * without a script; assets/js/help.js adds the search, "Open all" and the counts.
 * The class names are the ones the page's blocks carry (Additional CSS class), so a question or
 * topic added from the "Help question" / "Help topic" patterns looks the same.
 */
.nx-help-page {
	--nxh-navy: #161d27;
	--nxh-ink: #111;
	--nxh-text: #3d434c;
	--nxh-muted: #5f6672;
	--nxh-line: #e0e0e0;
	--nxh-rule: #eee;
	--nxh-grey: #f4f5f7;
	--nxh-chip: #eef1f5;
	--nxh-wa: #0b7a5c;
	--nxh-radius: 6px;
	/* What a link to a question must clear: the sticky bar (61 px at 1440, 70 px on phones) and,
	   on phones, the sticky topic chips. */
	--nxh-sticky: 76px;
}
.nx-help-page .entry-content > .nx-help-hero,
.nx-help-page .entry-content > .nx-help { margin-top: 0; }

/* The band. Full width on every screen (Shoptimizer's own alignfull rule is desktop only). */
.nx-help-page .nx-help-hero {
	margin: 0 calc(50% - 50vw) !important;
	padding: 52px 20px 76px;
	background: var(--nxh-navy);
	color: #fff;
	text-align: center;
}
.nx-help-hero > * { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
.nx-help-hero .nx-help-hero__title { margin: 0 auto 8px; font-size: 40px; line-height: 1.15; font-weight: 700; color: #fff; }
.nx-help-hero .nx-help-hero__intro { margin: 0 auto 26px; max-width: 560px; color: #d3d8e0; font-size: 17px; }
.nx-help-hero .nx-help-hero__intro:last-child { margin-bottom: 0; }

.nx-help-search { text-align: left; }
.nx-help-search label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #fff; }
.nx-help-search input[type="search"] {
	box-sizing: border-box;
	width: 100%;
	height: 58px;
	margin: 0;
	padding: 0 16px 0 48px;
	border: 1px solid #fff;
	border-radius: var(--nxh-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6672' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E") no-repeat 16px 50% / 20px;
	color: var(--nxh-ink);
	font: inherit;
	font-size: 16px;
	-webkit-appearance: none;
	appearance: none;
}
.nx-help-search input[type="search"]:focus-visible { outline: 3px solid #8fb3e8; outline-offset: 0; }

.nx-help { color: var(--nxh-text); }
.nx-help a { color: var(--nxh-navy); }
.nx-help :focus-visible { outline: 2px solid var(--nxh-navy); outline-offset: 2px; }

/* Quick-help tiles: the whole tile is the link (the title's link stretched over it). */
.nx-help .nx-help-tiles {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin: -44px 0 0;
}
.nx-help .nx-help-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 18px;
	border: 1px solid var(--nxh-line);
	border-radius: var(--nxh-radius);
	background: #fff;
	box-shadow: 0 4px 14px rgba(22, 29, 39, .07);
}
.nx-help .nx-help-tile:hover { border-color: var(--nxh-navy); }
.nx-help .nx-help-tile::before,
.nx-help .nx-help-topic > h2::before {
	content: "";
	display: block;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background-color: var(--nxh-chip);
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: 22px;
}
.nx-help .nx-help-tile::before { margin-bottom: 8px; }
.nx-help .nx-help-tile p { margin: 0; }
.nx-help .nx-help-tile__title { font-size: 16.5px; font-weight: 600; }
.nx-help .nx-help-tile__title a { color: var(--nxh-ink); text-decoration: none !important; }
.nx-help .nx-help-tile__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--nxh-radius); }
.nx-help .nx-help-tile__title a:focus-visible { outline: none; }
.nx-help .nx-help-tile__title a:focus-visible::after { outline: 2px solid var(--nxh-navy); outline-offset: 2px; }
.nx-help .nx-help-tile__text { font-size: 14.5px; color: var(--nxh-muted); }

/* The icons (navy line drawings on a pale chip), by the tile's or topic's modifier class. */
.nx-help .nx-help-topic > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.6 9.3a2.5 2.5 0 1 1 3.4 2.3c-.6.3-1 .8-1 1.5v.6M12 16.8v.2'/%3E%3C/svg%3E"); }
.nx-help .nx-help-tile--order::before, .nx-help .nx-help-topic--delivery > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-6.5-6.2-6.5-11a6.5 6.5 0 0 1 13 0c0 4.8-6.5 11-6.5 11z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E"); }
.nx-help .nx-help-tile--paying::before, .nx-help .nx-help-topic--paying > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='M2.5 9.5h19M6 15h4'/%3E%3C/svg%3E"); }
.nx-help .nx-help-tile--returns::before, .nx-help .nx-help-topic--returns > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 7 4.5 11.5 9 16'/%3E%3Cpath d='M4.5 11.5H15a4.5 4.5 0 0 1 0 9h-3'/%3E%3C/svg%3E"); }
.nx-help .nx-help-tile--warranty::before, .nx-help .nx-help-topic--warranty > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 4.5 5.8v5.4c0 4.6 3.1 8.4 7.5 10 4.4-1.6 7.5-5.4 7.5-10V5.8z'/%3E%3Cpath d='m8.8 12 2.2 2.2 4.4-4.6'/%3E%3C/svg%3E"); }
.nx-help .nx-help-topic--account > h2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23161d27' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='4'/%3E%3Cpath d='M4.5 20.5a7.5 7.5 0 0 1 15 0'/%3E%3C/svg%3E"); }

/* The contact strip. */
.nx-help .nx-help-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 20px 0 0;
	padding: 16px 20px;
	border-radius: var(--nxh-radius);
	background: var(--nxh-grey);
}
.nx-help .nx-help-contact > p { margin: 0; }
.nx-help .nx-help-contact__text { font-size: 15px; color: var(--nxh-muted); }
.nx-help .nx-help-contact__text strong { display: block; font-size: 17px; color: var(--nxh-ink); }

/* Buttons and links that act. */
.nx-help .nx-help-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.nx-help-wa--button,
.nx-help-wa--small,
.nx-help-call,
.nx-help-q .nx-help-actions > a:not(.nx-help-wa) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 18px;
	border-radius: var(--nxh-radius);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
}
.nx-help a.nx-help-wa--button, .nx-help a.nx-help-wa--small { background: var(--nxh-wa); color: #fff; }
.nx-help a.nx-help-wa--button:hover, .nx-help a.nx-help-wa--small:hover { background: #096a50; color: #fff; }
.nx-help .nx-help-call, .nx-help .nx-help-q .nx-help-actions > a:not(.nx-help-wa) { border: 1px solid var(--nxh-navy); background: #fff; color: var(--nxh-navy); }
.nx-help-wa--small, .nx-help-q .nx-help-actions > a:not(.nx-help-wa) { min-height: 44px; padding: 0 14px; font-size: 14px; }
.nx-help a.nx-help-wa--link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--nxh-wa); font-weight: 600; text-underline-offset: 2px; }
.nx-help-wa .nx-wa-icon, .nx-help-call svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.nx-help-call svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.nx-help-wa--link .nx-wa-icon { width: 18px; height: 18px; }
.nx-help-contact .nx-help-actions > a:not(.nx-help-wa):not(.nx-help-call) { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-underline-offset: 2px; }

/* Topic chips: plain links, sticky under the bar on phones only. */
.nx-help .nx-help-chips { display: none; }

/* The column of topic cards. */
.nx-help .nx-help-topic,
.nx-help .nx-help-tools,
.nx-help .nx-help-status,
.nx-help .nx-help-empty,
.nx-help .nx-help-closing { max-width: 820px; margin-left: auto; margin-right: auto; }
.nx-help .nx-help-tools { display: flex; justify-content: flex-end; margin-top: 26px; margin-bottom: 4px; }
.nx-help .nx-help-open-all {
	min-height: 44px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--nxh-navy);
	font: inherit;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}
.nx-help .nx-help-tools + .nx-help-status + .nx-help-empty + .nx-help-topic,
.nx-help .nx-help-tools ~ .nx-help-topic { margin-top: 0; }
.nx-help .nx-help-status { margin-top: 0; margin-bottom: 0; font-size: 14px; color: var(--nxh-muted); }
.nx-help .nx-help-status:not(:empty) { margin-bottom: 12px; }
.nx-help .nx-help-empty { margin-bottom: 24px; padding: 20px; border: 1px dashed #c6cbd2; border-radius: var(--nxh-radius); text-align: center; }
.nx-help .nx-help-empty p { margin: 0 0 12px; color: var(--nxh-ink); }

.nx-help .nx-help-topic {
	margin-top: 26px;
	margin-bottom: 22px;
	overflow: hidden;
	border: 1px solid var(--nxh-line);
	border-radius: var(--nxh-radius);
	background: #fff;
	scroll-margin-top: var(--nxh-sticky);
}
.nx-help .nx-help-topic + .nx-help-topic { margin-top: 0; }
.nx-help .nx-help-topic > h2 {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	background: #fafafa;
	color: var(--nxh-ink);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.25;
}
.nx-help .nx-help-topic > h2[data-count]::after { content: attr(data-count); margin-left: auto; font-size: 13.5px; font-weight: 400; color: var(--nxh-muted); white-space: nowrap; }

/* A question: a native <details>, readable open or closed with or without scripts. */
.nx-help .nx-help-q { margin: 0; border-top: 1px solid var(--nxh-rule); scroll-margin-top: var(--nxh-sticky); }
.nx-help .nx-help-q > summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding: 13px 18px;
	list-style: none;
	color: var(--nxh-navy);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
}
.nx-help .nx-help-q > summary::-webkit-details-marker { display: none; }
.nx-help .nx-help-q > summary::after {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.nx-help .nx-help-q[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.nx-help .nx-help-q > summary:hover { background: #fafbfc; }
.nx-help .nx-help-q > summary:focus-visible { outline-offset: -2px; }
.nx-help .nx-help-q:target > summary { background: #eef3fb; }
.nx-help .nx-help-q > :not(summary) { margin: 0 18px 10px; font-size: 15.5px; line-height: 1.65; overflow-wrap: anywhere; }
.nx-help .nx-help-q > summary + * { margin-top: 0; }
.nx-help .nx-help-q > :last-child { margin-bottom: 18px; }
.nx-help .nx-help-q ol, .nx-help .nx-help-q ul { padding-left: 22px; }
.nx-help .nx-help-q li + li { margin-top: 4px; }
.nx-help .nx-help-q a:not(.nx-help-wa):not(.nx-help-call) { text-decoration: underline; text-underline-offset: 2px; }
.nx-help .nx-help-q .nx-help-actions { margin-top: 12px; }
.nx-help .nx-help-policy { font-size: 14.5px; }
.nx-help .nx-help-later { color: var(--nxh-muted); }
.nx-help .nx-help-soon {
	display: inline-block;
	margin-right: 4px;
	padding: 1px 9px;
	border: 1px solid #d5dbe3;
	border-radius: 99px;
	background: var(--nxh-chip);
	color: var(--nxh-navy);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
}

/* The payment methods (the Shortcode block prints the table straight into the answer). */
.nx-help .nx-help-q > .nx-help-pay { width: calc(100% - 36px); border-collapse: collapse; font-size: 15px; }
.nx-help-pay th, .nx-help-pay td { padding: 9px 10px; border: 0; border-top: 1px solid var(--nxh-rule); background: none; text-align: left; vertical-align: top; }
.nx-help-pay tr:last-child th, .nx-help-pay tr:last-child td { border-bottom: 1px solid var(--nxh-rule); }
.nx-help-pay th { width: 1%; padding-left: 0; color: var(--nxh-ink); white-space: nowrap; }

/* "Still unsure? Ask on WhatsApp" at the end of a topic. */
.nx-help .nx-help-ask {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 10px;
	margin: 0;
	padding: 8px 18px;
	border-top: 1px solid var(--nxh-rule);
	background: #fafafa;
	color: var(--nxh-muted);
	font-size: 15px;
}

/* The closing. */
.nx-help .nx-help-closing { margin-top: 18px; padding: 40px 20px 8px; border-top: 1px solid var(--nxh-line); text-align: center; scroll-margin-top: var(--nxh-sticky); }
.nx-help .nx-help-closing h2 { margin: 0 0 6px; color: var(--nxh-ink); font-size: 26px; font-weight: 600; }
.nx-help .nx-help-closing > p { margin: 0 0 18px; }
.nx-help .nx-help-closing .nx-help-actions { justify-content: center; }
.nx-help .nx-help-closing .nx-help-policies { margin: 26px 0 0; font-size: 14.5px; line-height: 2; }
.nx-help .nx-help-closing .nx-help-reviewed { margin: 6px 0 0; color: var(--nxh-muted); font-size: 13px; }

/* While searching the results come straight under the box. */
.nx-help.is-searching .nx-help-tiles,
.nx-help.is-searching .nx-help-contact,
.nx-help.is-searching .nx-help-chips,
.nx-help.is-searching .nx-help-tools,
.nx-help.is-searching .nx-help-ask { display: none !important; }
.nx-help.is-searching .nx-help-status { margin-top: 24px; }
.nx-help-page .nx-help-hero:has(+ .nx-help.is-searching) { padding-bottom: 36px; }
.nx-help [hidden] { display: none !important; }

@media (max-width: 991px) {
	.nx-help .nx-help-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nx-help-page { --nxh-sticky: 140px; }
	.nx-help-page .nx-help-hero { padding: 30px 16px 60px; }
	.nx-help-hero .nx-help-hero__title { font-size: 30px; }
	.nx-help-hero .nx-help-hero__intro { margin-bottom: 18px; font-size: 16px; }
	.nx-help .nx-help-tiles { gap: 10px; margin-top: -38px; }
	.nx-help .nx-help-tile { padding: 14px; }
	.nx-help .nx-help-tile::before { width: 36px; height: 36px; margin-bottom: 4px; }
	.nx-help .nx-help-tile__title { font-size: 15.5px; }
	.nx-help .nx-help-tile__text { font-size: 13.5px; }
	.nx-help .nx-help-contact { padding: 14px 16px; }
	.nx-help .nx-help-contact .nx-help-actions > a:not(.nx-help-wa):not(.nx-help-call) { flex-basis: 100%; min-height: 36px; }
	.nx-help .nx-help-chips {
		position: sticky;
		top: 70px;
		z-index: 5;
		display: flex;
		gap: 8px;
		margin: 18px -15px 0;
		padding: 8px 14px;
		overflow-x: auto;
		border-bottom: 1px solid var(--nxh-line);
		background: #fff;
		list-style: none;
		scrollbar-width: none;
	}
	.nx-help .nx-help-chips li { margin: 0; flex: none; }
	.nx-help .nx-help-chips a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 16px;
		border: 1px solid var(--nxh-line);
		border-radius: 99px;
		background: #fff;
		color: var(--nxh-navy);
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}
	.nx-help .nx-help-tools { margin-top: 6px; }
	.nx-help .nx-help-topic > h2 { gap: 12px; padding: 14px 16px; font-size: 18.5px; }
	.nx-help .nx-help-topic > h2::before { width: 34px; height: 34px; }
	.nx-help .nx-help-topic > h2[data-count]::after { display: none; }
	.nx-help .nx-help-q > summary { padding: 13px 16px; }
	.nx-help .nx-help-q > :not(summary) { margin-left: 16px; margin-right: 16px; }
	.nx-help .nx-help-q > .nx-help-pay { width: calc(100% - 32px); }
	.nx-help .nx-help-ask { padding: 8px 16px; }
	.nx-help-call .nx-help-call__number { display: none; }
}
@media (max-width: 420px) {
	.nx-help-pay th { width: 34%; white-space: normal; }
}
@media (max-width: 359px) {
	.nx-help .nx-help-tile__text { display: none; }
	.nx-help .nx-help-tile { padding: 12px; }
}

@media print {
	.nx-help-search, .nx-help-tiles, .nx-help-contact, .nx-help-chips, .nx-help-tools, .nx-help-ask, .nx-help-actions, .nx-wa-float { display: none !important; }
	.nx-help-page .nx-help-hero { margin: 0 !important; padding: 0 0 12px; background: none; color: var(--nxh-ink); text-align: left; }
	.nx-help-hero .nx-help-hero__title { color: var(--nxh-ink); }
	.nx-help-q::details-content { content-visibility: visible; display: block; }
	.nx-help .nx-help-q > summary::after { display: none; }
	.nx-help .nx-help-topic { break-inside: auto; border: 0; }
}
