.jwc-srs-help {
	color: #22354a;
	font-family: inherit;
	font-size: max(16px, 1rem);
	line-height: 1.6;
}

.jwc-srs-help,
.jwc-srs-help *,
.jwc-srs-help *::before,
.jwc-srs-help *::after {
	box-sizing: border-box;
}

.jwc-srs-help[hidden],
.jwc-srs-help [hidden],
.jwc-srs-help [data-help-dialog]:not([open]) {
	display: none !important;
}

.jwc-srs-help[data-help-mode="inline"],
.jwc-srs-help [data-help-fallback] {
	margin: 32px 0;
	padding: 20px 16px;
	background: #fff;
	border: 1px solid #b5bec8;
	border-radius: 12px;
}

.jwc-srs-help [data-help-fallback] {
	margin-right: 16px;
	margin-left: 16px;
}

/* Keep article h2 decoration and Avada responsive typography out of UI headings.
 * The site uses !important for these four properties; scope their overrides to
 * this component, with enough specificity for .post .fusion-title h2 as well.
 */
.jwc-srs-help[data-jwc-srs-help] .jwc-srs-help__title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: #22354a;
	background: none;
	border: 0 !important;
	box-shadow: none;
	font: inherit;
	font-size: max(20px, 1.25rem) !important;
	font-weight: 700;
	line-height: 1.5;
}

.jwc-srs-help .jwc-srs-help__intro {
	margin: 0 0 16px;
	font: inherit;
}

.jwc-srs-help .jwc-srs-help__links {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jwc-srs-help .jwc-srs-help__links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.jwc-srs-help .jwc-srs-help__link,
.jwc-srs-help [data-help-open],
.jwc-srs-help [data-help-close] {
	display: flex;
	min-width: 48px;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	color: #22354a;
	background: #fff;
	border: 1px solid #63758a;
	border-radius: 8px;
	font: inherit;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	white-space: normal;
	overflow-wrap: anywhere;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.jwc-srs-help .jwc-srs-help__label {
	min-width: 0;
}

.jwc-srs-help .jwc-srs-help__icon {
	display: inline-flex;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	align-items: center;
	justify-content: center;
	color: inherit;
}

.jwc-srs-help .jwc-srs-help__icon img,
.jwc-srs-help .jwc-srs-help__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	object-fit: contain;
}

.jwc-srs-help .jwc-srs-help__link:visited {
	color: #22354a;
}

.jwc-srs-help .jwc-srs-help__link:hover,
.jwc-srs-help [data-help-open]:hover,
.jwc-srs-help [data-help-close]:hover {
	color: #162537;
	background: #f1f4f7;
	border-color: #22354a;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.jwc-srs-help .jwc-srs-help__link[data-help-kind="line"] {
	background: #f1faf4;
	border-color: #35794b;
}

.jwc-srs-help .jwc-srs-help__link[data-help-kind="line"]:hover {
	background: #e5f4ea;
	border-color: #285f3b;
}

.jwc-srs-help a:focus-visible,
.jwc-srs-help button:focus-visible {
	outline: 3px solid #000;
	outline-offset: 2px;
	box-shadow: 0 0 0 2px #ffeb3b, 0 0 0 6px #ffeb3b;
}

.jwc-srs-help [data-help-open] {
	position: fixed;
	z-index: 1000;
	right: 16px;
	right: calc(16px + env(safe-area-inset-right, 0px));
	bottom: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	min-width: 150px;
	max-width: calc(100% - 32px);
	border-radius: 999px;
	box-shadow: 0 2px 8px rgb(34 53 74 / 12%);
}

.jwc-srs-help [data-help-dialog] {
	position: fixed;
	inset: auto 0 0;
	width: 100%;
	max-width: 40rem;
	max-height: 80vh;
	max-height: 80dvh;
	margin: 0 auto;
	padding: 0;
	color: #22354a;
	background: #fff;
	border: 1px solid #b5bec8;
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	font: inherit;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.jwc-srs-help [data-help-dialog]::backdrop {
	background: rgb(16 25 37 / 40%);
}

.jwc-srs-help .jwc-srs-help__sheet {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 20px 20px 24px;
	padding-right: max(20px, env(safe-area-inset-right, 0px));
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	padding-left: max(20px, env(safe-area-inset-left, 0px));
}

.jwc-srs-help[data-jwc-srs-help] .jwc-srs-help__sheet > .jwc-srs-help__title {
	grid-column: 1;
	grid-row: 1;
	margin: 0 !important;
}

.jwc-srs-help .jwc-srs-help__sheet > .jwc-srs-help__links {
	grid-column: 1 / -1;
}

.jwc-srs-help [data-help-close] {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
}

html.jwc-srs-help-is-open,
html.jwc-srs-help-is-open body {
	overflow: hidden !important;
	overscroll-behavior: none;
}

@media (min-width: 768px) {
	.jwc-srs-help {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jwc-srs-help,
	.jwc-srs-help * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media (forced-colors: active) {
	.jwc-srs-help [data-help-dialog],
	.jwc-srs-help[data-help-mode="inline"],
	.jwc-srs-help [data-help-fallback] {
		border: 1px solid CanvasText;
	}

	.jwc-srs-help .jwc-srs-help__link,
	.jwc-srs-help .jwc-srs-help__link:visited,
	.jwc-srs-help .jwc-srs-help__link:hover,
	.jwc-srs-help .jwc-srs-help__link[data-help-kind="line"],
	.jwc-srs-help .jwc-srs-help__link[data-help-kind="line"]:hover,
	.jwc-srs-help [data-help-open],
	.jwc-srs-help [data-help-open]:hover,
	.jwc-srs-help [data-help-close],
	.jwc-srs-help [data-help-close]:hover {
		color: ButtonText;
		background: ButtonFace;
		border: 1px solid ButtonText;
	}

	.jwc-srs-help a:focus-visible,
	.jwc-srs-help button:focus-visible {
		outline-color: Highlight;
		box-shadow: none;
	}
}
