/* ==========================================================================
   Help-centre pages: FAQ, Shipping Policy, Terms & Conditions
   (markup: inc/help-pages.php, behaviour: js/help-pages.js)

   Every rule is scoped under .sh-help so selectors are at least (0,2,0) and
   beat Kadence's ".single-content p/ul/table/address" margin rules (0,1,1).
   ========================================================================== */

.sh-help {
	--sh-help-card: #ffffff;
	--sh-help-line: rgba(93, 64, 55, 0.18);
	--sh-help-tint: #F4ECDC;
	color: var(--sh-sandal-brown);
	font-size: 15.5px;
	line-height: 1.7;
	max-width: 1040px;
	margin: 0;
}

/* Headings use the site's display face, matching the page H1 and other pages. */
.sh-help h2 {
	font-family: 'Cinzel', 'Cormorant Garamond', serif;
	font-weight: 600;
	color: var(--sh-deep-maroon);
}

/* The page's own H1 deliberately gets no override here: it inherits the same
   spacing as Our Story / Track Order. Page-level spacing for help pages
   (banner gap, content-wrap padding) is shared with those pages in
   style.css via body.sh-help-page. */

.sh-help [hidden] {
	display: none !important;
}

/* ---- Help-centre tabs ---------------------------------------------------- */

.sh-help .sh-help-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--sh-help-line);
}

.sh-help .sh-help-nav a {
	display: inline-block;
	padding: 7px 16px;
	border: 1px solid var(--sh-help-line);
	border-radius: 999px;
	background: var(--sh-help-card);
	color: var(--sh-sandal-brown);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sh-help .sh-help-nav a:hover,
.sh-help .sh-help-nav a:focus-visible {
	border-color: var(--sh-antique-gold);
	color: var(--sh-deep-maroon);
}

.sh-help .sh-help-nav a.is-current {
	background: var(--sh-deep-maroon);
	border-color: var(--sh-deep-maroon);
	color: var(--sh-cream);
}

.sh-help .sh-help-updated {
	margin: 0 0 1.25rem;
	font-size: 13px;
	color: var(--sh-heading-brown);
}

/* ---- Section blocks ------------------------------------------------------ */

.sh-help .sh-help-section {
	margin: 0 0 2rem;
	scroll-margin-top: 110px;
}

.sh-help .sh-help-section h2 {
	margin: 0 0 0.6rem;
	font-size: 1.3rem;
	line-height: 1.3;
}

.sh-help .sh-help-section p {
	margin: 0 0 0.85rem;
}

.sh-help .sh-help-section ul,
.sh-help .sh-help-section ol {
	margin: 0 0 0.85rem;
	padding-left: 1.25rem;
}

.sh-help .sh-help-section li {
	margin-bottom: 0.4rem;
}

.sh-help .sh-help-section li::marker {
	color: var(--sh-antique-gold);
}

.sh-help a {
	color: var(--sh-deep-maroon);
	text-decoration: underline;
	text-decoration-color: var(--sh-antique-gold);
	text-underline-offset: 3px;
}

.sh-help a:hover {
	color: var(--sh-heading-brown);
}

.sh-help .sh-help-section .sh-help-note {
	margin-top: 0.85rem;
	font-size: 13.5px;
	color: var(--sh-heading-brown);
}

.sh-help .sh-help-address {
	margin: 0.5rem 0 0;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--sh-antique-gold);
	background: var(--sh-help-card);
	border-radius: 0 8px 8px 0;
	font-style: normal;
	line-height: 1.8;
}

/* ---- Highlight cards (Shipping) ----------------------------------------- */

.sh-help .sh-help-highlights {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.sh-help .sh-help-highlights li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 1rem;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.45;
}

.sh-help .sh-help-highlights strong {
	color: var(--sh-deep-maroon);
	font-size: 15px;
}

.sh-help .sh-help-highlight-icon {
	display: inline-flex;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--sh-help-tint);
	color: var(--sh-heading-brown);
}

/* ---- Table --------------------------------------------------------------- */

.sh-help .sh-help-table-wrap {
	margin: 0.5rem 0 0;
	overflow-x: auto;
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	background: var(--sh-help-card);
}

.sh-help .sh-help-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14.5px;
}

.sh-help .sh-help-table th,
.sh-help .sh-help-table td {
	padding: 0.8rem 1rem;
	border: 0;
	border-bottom: 1px solid var(--sh-help-line);
	text-align: left;
}

.sh-help .sh-help-table thead th {
	background: var(--sh-help-tint);
	color: var(--sh-deep-maroon);
	font-weight: 600;
}

.sh-help .sh-help-table tbody tr:last-child td {
	border-bottom: 0;
}

.sh-help .sh-help-free {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	background: var(--sh-success-green);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

/* ---- Order journey (Shipping) ------------------------------------------- */

.sh-help .sh-help-section .sh-help-steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.sh-help .sh-help-section .sh-help-steps li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 1rem 1rem 1rem;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.45;
}

.sh-help .sh-help-section .sh-help-steps li::marker {
	content: none;
}

.sh-help .sh-help-steps strong {
	color: var(--sh-deep-maroon);
	font-size: 15px;
}

.sh-help .sh-help-step-num {
	display: inline-flex;
	width: 28px;
	height: 28px;
	margin-bottom: 8px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--sh-antique-gold);
	color: var(--sh-deep-maroon);
	font-size: 13px;
	font-weight: 600;
}

/* ---- Terms layout -------------------------------------------------------- */

.sh-help .sh-help-intro-card {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 1.75rem;
	padding: 1rem 1.25rem;
	background: var(--sh-help-tint);
	border-radius: 10px;
	color: var(--sh-heading-brown);
}

.sh-help .sh-help-intro-card .sh-help-icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
}

.sh-help .sh-help-intro-card p {
	margin: 0;
	color: var(--sh-sandal-brown);
}

.sh-help .sh-help-terms-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 2.5rem;
	align-items: start;
}

.sh-help .sh-help-toc {
	position: sticky;
	top: 90px;
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	padding: 1rem 1.1rem;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.45;
}

.sh-help .sh-help-toc summary {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0.5rem;
	color: var(--sh-deep-maroon);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}

.sh-help .sh-help-toc summary::-webkit-details-marker {
	display: none;
}

.sh-help .sh-help-toc ol {
	margin: 0;
	padding-left: 1.25rem;
}

.sh-help .sh-help-toc li {
	margin: 0 0 0.35rem;
	padding-left: 0.2rem;
}

.sh-help .sh-help-toc li::marker {
	color: var(--sh-antique-gold);
	font-weight: 600;
}

.sh-help .sh-help-toc a {
	text-decoration: none;
}

.sh-help .sh-help-toc a:hover {
	text-decoration: underline;
}

.sh-help .sh-help-section-num {
	color: var(--sh-antique-gold);
}

.sh-help .sh-help-terms-body .sh-help-section {
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--sh-help-line);
}

.sh-help .sh-help-terms-body .sh-help-section:last-child {
	border-bottom: 0;
}

/* ---- FAQ ----------------------------------------------------------------- */

.sh-help .sh-faq-search {
	position: relative;
	margin: 0 0 1rem;
}

.sh-help .sh-faq-search .sh-help-icon {
	position: absolute;
	top: 50%;
	left: 16px;
	transform: translateY(-50%);
	color: var(--sh-heading-brown);
	pointer-events: none;
}

.sh-help .sh-faq-search input[type="search"] {
	width: 100%;
	margin: 0;
	padding: 14px 16px 14px 48px;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	color: var(--sh-ink);
	font-size: 15px;
	box-shadow: none;
}

.sh-help .sh-faq-search input[type="search"]:focus {
	border-color: var(--sh-antique-gold);
	outline: 2px solid rgba(200, 155, 60, 0.35);
	outline-offset: 0;
}

.sh-help .sh-faq-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 1.75rem;
}

.sh-help .sh-faq-filters button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 999px;
	color: var(--sh-sandal-brown);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}

.sh-help .sh-faq-filters button span {
	color: var(--sh-heading-brown);
	font-size: 12px;
}

.sh-help .sh-faq-filters button:hover {
	border-color: var(--sh-antique-gold);
	background: var(--sh-help-card);
	color: var(--sh-deep-maroon);
}

.sh-help .sh-faq-filters button.is-active,
.sh-help .sh-faq-filters button.is-active:hover {
	background: var(--sh-deep-maroon);
	border-color: var(--sh-deep-maroon);
	color: var(--sh-cream);
}

.sh-help .sh-faq-filters button.is-active span {
	color: var(--sh-antique-gold);
}

.sh-help .sh-faq-empty {
	margin: 0 0 2rem;
	padding: 1.25rem;
	background: var(--sh-help-card);
	border: 1px dashed var(--sh-help-line);
	border-radius: 10px;
	text-align: center;
}

.sh-help .sh-faq-group {
	margin: 0 0 2rem;
	scroll-margin-top: 110px;
}

.sh-help .sh-faq-group h2 {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
	line-height: 1.3;
}

.sh-help .sh-faq-item {
	margin: 0 0 8px;
	background: var(--sh-help-card);
	border: 1px solid var(--sh-help-line);
	border-radius: 10px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.sh-help .sh-faq-item[open] {
	border-color: var(--sh-antique-gold);
	box-shadow: 0 2px 10px rgba(47, 21, 10, 0.06);
}

.sh-help .sh-faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0.95rem 1.15rem;
	color: var(--sh-deep-maroon);
	font-weight: 500;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.sh-help .sh-faq-item summary::-webkit-details-marker {
	display: none;
}

.sh-help .sh-faq-item summary:focus-visible,
.sh-help .sh-help-toc summary:focus-visible {
	outline: 2px solid var(--sh-antique-gold);
	outline-offset: 2px;
	border-radius: 10px;
}

.sh-help .sh-faq-item summary .sh-help-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: var(--sh-heading-brown);
	transition: transform 0.2s;
}

.sh-help .sh-faq-item[open] summary .sh-help-icon {
	transform: rotate(180deg);
}

.sh-help .sh-faq-answer {
	padding: 0 1.15rem 1rem;
}

.sh-help .sh-faq-answer p {
	margin: 0;
}

/* ---- "Still need help?" band -------------------------------------------- */

.sh-help .sh-help-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	margin: 2.5rem 0 0;
	padding: 1.75rem 2rem;
	background: var(--sh-deep-maroon);
	border-radius: 12px;
	color: var(--sh-cream);
}

.sh-help .sh-help-cta h2 {
	margin: 0 0 0.25rem;
	color: var(--sh-cream);
	font-size: 1.3rem;
}

.sh-help .sh-help-cta p {
	margin: 0;
	color: rgba(250, 247, 240, 0.8);
	font-size: 14px;
}

.sh-help .sh-help-cta-actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sh-help .sh-help-cta-actions li {
	margin: 0;
}

.sh-help .sh-help-cta-actions a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border: 1px solid rgba(200, 155, 60, 0.6);
	border-radius: 999px;
	color: var(--sh-cream);
	font-size: 13.5px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

.sh-help .sh-help-cta-actions a:hover,
.sh-help .sh-help-cta-actions a:focus-visible {
	background: var(--sh-antique-gold);
	border-color: var(--sh-antique-gold);
	color: var(--sh-deep-maroon);
}

.sh-help .sh-help-cta-actions .sh-help-icon {
	width: 17px;
	height: 17px;
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 900px) {
	.sh-help .sh-help-highlights,
	.sh-help .sh-help-section .sh-help-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.sh-help .sh-help-terms-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

	.sh-help .sh-help-toc {
		position: static;
		max-height: none;
	}

	.sh-help .sh-help-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.sh-help {
		font-size: 15px;
	}

	.sh-help .sh-help-highlights,
	.sh-help .sh-help-section .sh-help-steps {
		grid-template-columns: 1fr;
	}

	.sh-help .sh-help-nav {
		flex-wrap: nowrap;
		margin-right: -16px;
		padding-right: 16px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.sh-help .sh-help-nav a {
		flex: 0 0 auto;
	}

	.sh-help .sh-help-cta {
		padding: 1.4rem 1.25rem;
	}

	.sh-help .sh-help-cta-actions {
		width: 100%;
		flex-direction: column;
	}

	.sh-help .sh-help-cta-actions a {
		width: 100%;
		justify-content: center;
	}

	.sh-help .sh-help-table th,
	.sh-help .sh-help-table td {
		padding: 0.7rem 0.75rem;
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sh-help * {
		transition: none !important;
	}
}
