@layer component {
	.help-video-trigger {
		display: inline-flex;
	}

	.page-title-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		flex-wrap: wrap;
		width: 100%;
		padding-bottom: 0.75rem;
		border-bottom: 1px solid var(--grey-200);
	}

	.page-title-copy {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
	}

	.help-video-button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.375rem;
		min-height: 2.5rem;
		padding: 0.5rem 0.75rem;
		border: 1px solid var(--blue-grey-400);
		border-radius: 0.5rem;
		background: var(--white);
		color: var(--blue-grey-600);
	}

	.help-video-button:hover,
	.help-video-button:focus {
		border: 1px solid var(--blue-grey-600);
		background: var(--blue-grey-50);
		box-shadow: 0 0 0 0.25rem var(--blue-grey-100);
	}

	.help-video-button svg {
		height: 1rem;
		width: 1rem;
	}

	.help-library-watch svg {
		height: 1.25rem;
		width: 1.25rem;
	}

	.help-video-dialog {
		border: none;
		border-radius: 0.5rem;
		padding: 0;
		width: min(52rem, calc(100vw - 2rem));
		max-height: calc(100dvh - 2rem);
		box-shadow: 0 1.5rem 3rem var(--grey-shadow);
	}

	.help-video-dialog::backdrop {
		background: #10182880;
	}

	.help-video-panel {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		max-height: calc(100dvh - 2rem);
		padding: 1rem;
		background: var(--white);
	}

	.help-video-header,
	.help-video-actions,
	.help-library-header,
	.help-library-search,
	.help-library-video {
		display: flex;
		align-items: center;
		gap: 0.75rem;
	}

	.help-video-header {
		justify-content: space-between;
	}

	.help-video-header > div,
	.help-library-page-title,
	.help-library-video > div {
		display: flex;
		flex-direction: column;
		gap: 0.25rem;
	}

	.help-video-close {
		width: 2.5rem;
		height: 2.5rem;
	}

	.help-video-close svg {
		width: 1.25rem;
		height: 1.25rem;
	}

	.help-video-list,
	.help-library-videos {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
	}

	.help-video-list[hidden] {
		display: none;
	}

	.help-video-list-item,
	.help-library-video {
		border: 1px solid var(--grey-200);
		border-radius: 0.5rem;
		padding: 0.625rem;
		justify-content: space-between;
	}

	.help-video-list-item {
		display: grid;
		grid-template-columns: 1fr max-content;
		gap: 0.75rem;
		align-items: center;
	}

	.help-video-list-item p {
		margin: 0;
	}

	.help-video-player {
		display: flex;
		flex-direction: column;
		gap: 0.5rem;
		min-height: 0;
	}

	.help-video-player[hidden] {
		display: none;
	}

	.help-video-player p {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		margin: 0;
		overflow: hidden;
	}

	.help-video-frame {
		aspect-ratio: 16 / 9;
		background: var(--grey-900);
		border-radius: 0.5rem;
		max-height: calc(100dvh - 13rem);
		overflow: hidden;
	}

	.help-video-frame iframe {
		width: 100%;
		height: 100%;
		border: 0;
		display: block;
	}

	.help-video-actions {
		justify-content: flex-end;
		flex-wrap: wrap;
		margin-top: 0.25rem;
	}

	.help-library {
		padding: 1rem 1.5rem;
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.help-library-header {
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.help-library-search input {
		min-width: 16rem;
		outline: none;
		padding: 0.25rem 1rem;
		border-radius: 0.5rem;
		border: 1px solid var(--grey-300);
		font-family: WorkSans;
		font-size: 0.875rem;
		color: var(--grey-900);
		background-color: var(--white);
	}

	.help-library-search input:hover,
	.help-library-search input:focus {
		box-shadow: 0 0 0 0.25rem var(--brand-shadow);
		border: 1px solid var(--brand-700);
	}

	.help-library-page {
		display: flex;
		flex-direction: column;
		gap: 0.75rem;
		border-top: 1px solid var(--grey-200);
		padding-top: 1rem;
	}

	.help-library-empty {
		border-top: 1px solid var(--grey-200);
		padding-top: 1rem;
	}

	@media (max-width: 42rem) {
		.page-title-row {
			align-items: flex-start;
			flex-direction: column;
		}

		.help-video-dialog {
			width: calc(100vw - 1rem);
			max-height: calc(100dvh - 1rem);
		}

		.help-video-panel {
			max-height: calc(100dvh - 1rem);
			padding: 0.75rem;
		}

		.help-video-frame {
			max-height: calc(100dvh - 14rem);
		}

		.help-video-list-item {
			grid-template-columns: 1fr;
			align-items: stretch;
		}

		.help-library-video {
			align-items: stretch;
			flex-direction: column;
		}

		.help-library-search,
		.help-library-search input {
			width: 100%;
		}
	}
}
