/* Help pages: left-hand section menu and the page content (templates/page-help.html). */

.tz-help .tz-breadcrumbs { margin-bottom: var(--tz-crumbs-gap); }
.tz-help__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 72px; align-items: start; }
.tz-help__layout > * { margin: 0 !important; }
.tz-help__aside { position: sticky; top: 24px; padding-top: 10px; }
.tz-help__main { min-width: 0; }
.tz-help__main > * { margin-top: 0 !important; }
.tz-help__title { margin: 0 0 var(--wp--preset--spacing--50) !important; font-size: var(--wp--preset--font-size--display-1); line-height: 1.12; }

/* Section menu */
.tz-help-nav__summary { display: none; }
.tz-help-nav__eyebrow { margin: 0 0 20px; }
.tz-help-nav__heading { margin: 24px 0 8px; font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tz-muted); }
.tz-help-nav__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tz-line); }
.tz-help-nav__list li { border-bottom: 1px solid var(--tz-line); }
.tz-help-nav__list a {
	position: relative; display: block; padding: 10px 0 10px 14px; font-size: 15px; line-height: 22px; color: #3a3833; text-decoration: none;
	transition: color .15s ease;
}
.tz-help-nav__list a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; background: transparent; transition: background-color .15s ease; }
.tz-help-nav__list a:hover { color: var(--tz-ink); }
.tz-help-nav__list a:hover::before { background: var(--tz-line-strong); }
.tz-help-nav__list a[aria-current="page"] { color: var(--tz-ink); font-weight: 500; }
.tz-help-nav__list a[aria-current="page"]::before { background: var(--tz-forest); }
.tz-help-nav__list--contact { margin-top: 24px; }

/* Content */
.tz-help__content { font-size: 16px; line-height: 1.7; }
.tz-help__content > :first-child { margin-top: 0; }
.tz-help__content h2 { font-size: 28px; }
.tz-help__content h3 { font-size: 22px; }
.tz-help__content h4, .tz-help__content h5, .tz-help__content h6 { font-size: 19px; }

/* Accordions (FAQs, delivery) */
.tz-help__content details { border-bottom: 1px solid var(--tz-line); margin: 0; }
.tz-help__content details:first-of-type { border-top: 1px solid var(--tz-line); }
.tz-help__content details + :not(details) { margin-top: 1.6em; }
.tz-help__content summary {
	position: relative; display: block; padding: 18px 40px 18px 0; cursor: pointer; list-style: none;
	font-family: var(--wp--preset--font-family--display); font-size: 20px; line-height: 26px; font-weight: 500; color: var(--tz-ink);
}
.tz-help__content summary::-webkit-details-marker { display: none; }
.tz-help__content summary::after {
	content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease;
}
.tz-help__content details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.tz-help__content details.is-closing > summary::after { transform: rotate(45deg); margin-top: -7px; }
.tz-help__content summary:hover { color: var(--tz-forest); }
.tz-help__content details > :not(summary) { margin: 0 0 1em; }
.tz-help__content details > :last-child { margin-bottom: 20px; }
/* Upper-case FAQ questions from the old site read as headings in sentence style. */
.tz-help__content summary { text-transform: none; }

/* Forms (Formidable): see forms.css */
.tz-help__privacy { margin: 12px 0 0 !important; font-size: 13px; line-height: 20px; color: var(--tz-muted); }
.tz-help__privacy a { color: var(--tz-forest); }

/* Order tracking form (WooCommerce) */
.tz-help__content .woocommerce-form-track-order {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; align-items: start; /* top-aligned: password managers add elements under focused fields */
	margin: 1.6em 0 0; padding: 28px; background: var(--tz-stone);
}
.tz-help__content .woocommerce-form-track-order > * { margin: 0; }
.tz-help__content .woocommerce-form-track-order > p:first-child { grid-column: 1 / -1; font-size: 15px; line-height: 24px; color: var(--tz-muted); }
.tz-help__content .woocommerce-form-track-order .clear { display: none; }
.tz-help__content .woocommerce-form-track-order .form-row { display: flex; flex-direction: column; width: auto; float: none; padding: 0; }
.tz-help__content .woocommerce-form-track-order .form-row:last-of-type { grid-column: 1 / -1; align-items: flex-start; }
.tz-help__content .woocommerce-form-track-order label { margin: 0 0 8px; } /* Same label style as checkout. */
.tz-help__content .woocommerce-form-track-order input[type="text"], .tz-help__content .woocommerce-form-track-order input[type="email"] { display: block; box-sizing: border-box; width: 100%; min-height: 48px; }
.tz-help__content .woocommerce-form-track-order button { justify-self: start; width: auto; min-width: 180px; }
.tz-help__content .woocommerce-form-track-order + .tz-help__privacy { margin-top: 10px !important; }
.tz-help__content .woocommerce-form-track-order ~ p { margin-top: 1.4em; }

/* Help centre topic cards */
.tz-help__topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: var(--wp--preset--spacing--60); }
.tz-help__topic { padding: 24px; background: var(--tz-stone); }
.tz-help__content .tz-help__topic h2 { margin: 0 0 12px; font-family: var(--wp--preset--font-family--sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--tz-muted); }
.tz-help__topic ul { list-style: none; margin: 0; padding: 0; }
.tz-help__topic li { margin: 0; }
.tz-help__content .tz-help__topic a { display: block; padding: 5px 0; color: var(--tz-ink); text-decoration: none; font-size: 15px; line-height: 22px; }
.tz-help__content .tz-help__topic a:hover { text-decoration: underline; text-decoration-color: var(--tz-sand); }

@media (max-width: 1100px) {
	.tz-help__layout { gap: 48px; grid-template-columns: 220px minmax(0, 1fr); }
	.tz-help__topics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
	.tz-help__layout { grid-template-columns: 1fr; gap: 24px; }
	.tz-help__aside { position: static; padding-top: 0; }
	/* The menu folds into a "Help topics" control above the content. */
	.tz-help-nav { border: 1px solid var(--tz-line-strong); background: #fff; }
	.tz-help-nav__summary {
		display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 44px 14px 16px; position: relative; cursor: pointer; list-style: none;
	}
	.tz-help-nav__summary::-webkit-details-marker { display: none; }
	.tz-help-nav__summary::after {
		content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
		border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
	}
	.tz-help-nav__fold[open] .tz-help-nav__summary::after { transform: rotate(-135deg); margin-top: -2px; }
	.tz-help-nav__summary-label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tz-muted); }
	.tz-help-nav__summary-current { font-size: 15px; line-height: 22px; color: var(--tz-ink); text-align: right; }
	.tz-help-nav__fold[open] { padding: 0 16px 16px; }
	.tz-help-nav__fold[open] .tz-help-nav__summary { margin: 0 -16px; }
	.tz-help-nav__eyebrow { display: none; }
	.tz-help__title { font-size: 36px; }
	.tz-help__topics { grid-template-columns: 1fr; }
	.tz-help__content .woocommerce-form-track-order { grid-template-columns: 1fr; padding: 20px; }
	.tz-help__content .woocommerce-form-track-order .form-row:last-of-type { align-items: stretch; }
	.tz-help__cards { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.tz-help__content summary::after, .tz-help-nav__list a, .tz-help-nav__list a::before { transition: none; }
}

/* Logo cards (e.g. couriers on Order Tracking) */
.tz-help__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1.6em 0; }
.tz-help__card { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--tz-line); font-size: 14px; line-height: 21px; }
.tz-help__card > * { margin: 0 !important; }
.tz-help__card-logo { display: flex; align-items: center; height: 44px; margin-bottom: 12px !important; }
.tz-help__card-logo img { display: block; width: auto; height: auto; max-width: 120px; max-height: 44px; object-fit: contain; }
.tz-help__card-name { font-weight: 600; color: var(--tz-ink); }
.tz-help__card-phone a { font-variant-numeric: tabular-nums; }
.tz-help__card ul { list-style: none; padding: 0; margin-top: 6px !important; color: var(--tz-muted); font-size: 13px; line-height: 20px; }
.tz-help__card li { margin: 0; }
