/* Twist Teas phone menu (0.19.0): the same menu on every page below 1000px. Square corners (Twist rule). Self-contained
   so the theme's own styles cannot reach in: every rule is under .twpm. */

.twpm {
	--twpm-ink: #111;
	--twpm-muted: #666;
	--twpm-line: #e3e3e3;
	--twpm-soft: #e9f3fc;
	position: fixed;
	inset: 0;
	z-index: 100050;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--twpm-ink);
	text-align: left;
	letter-spacing: normal;
	text-transform: none;
}

.twpm[hidden] {
	display: none !important;
}

@media (min-width: 1000px) {
	.twpm {
		display: none !important;
	}
}

.twpm *,
.twpm *::before,
.twpm *::after {
	box-sizing: border-box;
	border-radius: 0;
}

.twpm__scrim {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
	animation: twpm-fade 0.3s ease;
}

.twpm__panel {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(88%, 380px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: 0 20px 28px;
	background: #fff;
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);
	animation: twpm-slide 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes twpm-slide {
	from {
		transform: translateX(-100%);
	}

	to {
		transform: none;
	}
}

@keyframes twpm-fade {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.twpm__panel,
	.twpm__scrim {
		animation: none;
	}
}

.twpm a {
	color: var(--twpm-ink);
	text-decoration: none;
	box-shadow: none;
	outline-offset: 2px;
}

.twpm ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.twpm li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.twpm li::before,
.twpm li::marker {
	content: none;
}

.twpm button {
	margin: 0;
	border: 0;
	background: none;
	color: var(--twpm-ink);
	font: inherit;
	line-height: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.twpm__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.twpm__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	margin: 0 -8px 8px 0;
	border-bottom: 1px solid var(--twpm-line);
}

.twpm__logo img {
	display: block;
	width: 92px;
	height: auto;
}

.twpm__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
}

.twpm__search {
	display: flex;
	margin: 6px 0 8px;
	border: 1px solid var(--twpm-ink);
}

.twpm .twpm__search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	color: var(--twpm-ink);
	-webkit-appearance: none;
	appearance: none;
}

.twpm .twpm__search button {
	flex: 0 0 44px;
	height: 44px;
	padding: 0;
	border-left: 1px solid var(--twpm-ink);
	background: #fff;
}

/* Main list: Breakfast Tea, Gifts, Selection Boxes, Samples, Subscriptions. */

.twpm__main > .twpm__row > .twpm__link,
.twpm__main > .twpm__row > .twpm__toggle--whole {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 52px;
	padding: 10px 0;
	border-bottom: 1px solid var(--twpm-line);
	font-size: 21px;
	font-weight: 300;
	text-align: left;
	color: var(--twpm-ink);
}

.twpm__main > .twpm__row > .twpm__link span {
	font-size: 20px;
}

/* Categories: the name goes to the category page, the arrow opens its blends. */

.twpm__label {
	margin: 22px 0 4px;
	padding: 0;
	font-size: 12px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--twpm-muted);
}

.twpm__cat {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	border-bottom: 1px solid var(--twpm-line);
}

.twpm__cat > a,
.twpm__cat > span {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 8px 0;
	font-size: 17px;
	color: var(--twpm-ink);
}

.twpm__cat .twpm__toggle {
	flex: 0 0 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-right: -8px;
	padding: 0;
}

.twpm__chev {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-right: 1.8px solid var(--twpm-ink);
	border-bottom: 1.8px solid var(--twpm-ink);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.2s ease;
}

.twpm__toggle--whole .twpm__chev {
	margin-right: 11px; /* lines up with the category arrows */
}

.twpm [aria-expanded="true"] .twpm__chev {
	transform: translateY(2px) rotate(-135deg);
}

/* The open list of blends. */

.twpm__sub {
	padding: 4px 0 10px 14px !important;
	border-bottom: 1px solid var(--twpm-line);
	background: #fff;
}

.twpm__sub[hidden] {
	display: none !important;
}

.twpm__main .twpm__sub {
	border-bottom: 1px solid var(--twpm-line);
}

.twpm__sub li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 40px;
	padding: 6px 0;
	font-size: 16px;
	color: var(--twpm-ink);
}

.twpm__sub .twpm__all {
	font-weight: 600;
}

.twpm__soon {
	color: var(--twpm-muted) !important;
}

.twpm__soon em {
	padding: 1px 6px;
	border: 1px solid var(--twpm-muted);
	font-size: 11px;
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.twpm__minor {
	margin-top: 18px !important;
}

.twpm__minor li a {
	display: block;
	padding: 8px 0;
	font-size: 16px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.twpm__social {
	display: flex;
	gap: 14px;
	margin: 18px 0 0;
	padding: 0;
}

.twpm__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--twpm-ink);
}

/* While the menu is open the page behind does not scroll. */
body.twpm-open {
	overflow: hidden;
}
