/* Help popup, cart control and checkout disclosure. Every rule is scoped to a .tl-help* class. */
/* Local assets only. No animation, so nothing delays reading or closing. */
/* Toiletland palette: cyan #53ceeb, ink #0a0a0a, link #1e68c4, cool tint #f0fafd. */

html.tl-help-scroll-lock {
	overflow: hidden;
}

.tl-help-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ----- Dialog ----- */

.tl-help-dialog {
	box-sizing: border-box;
	width: min(460px, calc(100vw - 32px));
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 1px solid #c8ecf5;
	border-radius: 10px;
	background: #fff;
	color: #0a0a0a;
	box-shadow: 0 12px 40px rgba(16, 24, 32, 0.35);
	overflow: visible;
}

.tl-help-dialog::backdrop {
	background: rgba(16, 24, 32, 0.55);
}

.tl-help-dialog .tl-help-panel {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	max-height: inherit;
	border-radius: 10px;
	background: #fff;
	box-shadow: inset 0 4px 0 #53ceeb;
}

.tl-help-dialog .tl-help-scroll {
	box-sizing: border-box;
	max-height: calc(100vh - 34px);
	max-height: calc(100dvh - 34px);
	padding: 24px 56px 20px 20px;
	overflow-y: auto;
	overflow-wrap: anywhere;
	-webkit-overflow-scrolling: touch;
}

.tl-help-dialog .tl-help-close {
	position: absolute;
	top: 6px;
	right: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff;
	color: #0a0a0a;
	box-shadow: none;
	cursor: pointer;
}

.tl-help-dialog .tl-help-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
	stroke-linecap: round;
}

.tl-help-dialog .tl-help-close:hover {
	background: #f0fafd;
}

/* ----- Content (dialog, cart, checkout) ----- */

.tl-help-body {
	--tl-help-styles-ready: 1;
	color: #0a0a0a;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.tl-help-body .tl-help-illustration {
	display: block;
	width: 116px;
	height: 80px;
	max-width: 100%;
	margin: 0 0 12px;
}

.tl-help-body .tl-help-icon {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.tl-help-body .tl-help-title {
	margin: 0 0 8px;
	padding: 0;
	color: #0a0a0a;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.tl-help-body .tl-help-title:focus {
	outline: none;
}

.tl-help-body .tl-help-text {
	margin: 0 0 16px;
	color: #333;
}

.tl-help-body .tl-help-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tl-help-body .tl-help-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 16px;
	border: 2px solid #1e68c4;
	border-radius: 8px;
	background: #fff;
	color: #1e68c4;
	box-shadow: none;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

.tl-help-body .tl-help-btn--primary {
	border-color: #53ceeb;
	background: #53ceeb;
	color: #0a0a0a;
}

.tl-help-body .tl-help-btn:hover {
	background: #17539e;
	border-color: #17539e;
	color: #fff;
}

.tl-help-body .tl-help-btn--primary:hover {
	border-color: #0a0a0a;
	background: #0a0a0a;
	color: #53ceeb;
}

.tl-help-body .tl-help-dismiss {
	display: block;
	box-sizing: border-box;
	min-height: 44px;
	margin: 8px auto 0;
	padding: 10px 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #333;
	box-shadow: none;
	font: inherit;
	font-size: 14px;
	letter-spacing: normal;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

.tl-help-body .tl-help-dismiss:hover {
	background: #f0fafd;
	color: #0a0a0a;
}

.tl-help-body .tl-help-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tl-help-body .tl-help-items > li {
	display: block;
	margin: 0;
	padding: 0 0 14px;
	border-bottom: 1px solid #dbe5ea;
}

.tl-help-body .tl-help-items > li:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.tl-help-body .tl-help-product {
	display: block;
	margin: 0 0 8px;
	font-weight: 700;
}

/* Keyboard focus is always visible. */
.tl-help-dialog button:focus-visible,
.tl-help-dialog a:focus-visible,
.tl-help-inline button:focus-visible,
.tl-help-inline a:focus-visible,
.tl-help-cart button:focus-visible {
	outline: 3px solid #0a0a0a;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px #fff;
}

/* ----- Cart control ----- */

.tl-help-cart {
	margin: 12px 0 0;
	text-align: left;
}

.tl-help-cart .tl-help-open {
	box-sizing: border-box;
	min-height: 44px;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: #1e68c4;
	box-shadow: none;
	font: inherit;
	font-weight: 600;
	letter-spacing: normal;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}

/* ----- Checkout disclosure: plain block, normal keyboard order, never a modal ----- */

.tl-help-inline {
	box-sizing: border-box;
	margin: 0 0 12px;
	border: 1px solid #dbe5ea;
	border-radius: 8px;
	background: #fff;
	overflow-wrap: anywhere;
}

.tl-help-inline .tl-help-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: #f0fafd;
	color: #0a0a0a;
	box-shadow: none;
	font: inherit;
	font-weight: 700;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	cursor: pointer;
}

.tl-help-inline .tl-help-toggle::after {
	content: "+";
	flex-shrink: 0;
	margin-left: 12px;
	font-size: 20px;
	line-height: 1;
}

.tl-help-inline .tl-help-toggle[aria-expanded="true"]::after {
	content: "\2212";
}

.tl-help-inline .tl-help-inline-panel {
	padding: 12px 14px 14px;
}

.tl-help-inline .tl-help-inline-panel[hidden] {
	display: none;
}

.tl-help-inline .tl-help-body .tl-help-text {
	margin-bottom: 12px;
	font-size: 14px;
}

/* Cart fallback for browsers without a modal dialog. */
.tl-help-cart .tl-help-inline-panel {
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #dbe5ea;
	border-radius: 8px;
	background: #fff;
}

@media (max-width: 360px) {
	.tl-help-dialog .tl-help-scroll {
		padding: 20px 48px 16px 14px;
	}
}

/* Parent link transitions must not animate help or delay its focus indication. */
.tl-help-dialog button,
.tl-help-dialog a,
.tl-help-inline button,
.tl-help-inline a {
	transition: none;
	animation: none;
}
