.lay-rowscroll-hint {
	position: fixed;
	inset: 0;
	z-index: 2147483640;
	pointer-events: none;
}

.lay-rowscroll-hint[hidden] {
	display: none !important;
}

.lay-rowscroll-hint.is-open {
	pointer-events: auto;
}

.lay-rowscroll-hint__panel {
	position: fixed;
	box-sizing: border-box;
	width: var(--lay-rowscroll-hint-width, 50vw);
	height: var(--lay-rowscroll-hint-height, 50vh);
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	padding: 48px 20px 20px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	background-color: var(--lay-rowscroll-hint-bg, #e8e8e8);
	color: var(--lay-rowscroll-hint-color, #000);
	border-radius: var(--lay-rowscroll-hint-radius, 16px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition:
		opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
		transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: auto;
}

.lay-rowscroll-hint.is-open .lay-rowscroll-hint__panel {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.lay-rowscroll-hint__close {
	position: absolute;
	top: 14px;
	right: 14px;
	left: auto !important;
	bottom: auto !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.lay-rowscroll-hint__close-icon {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
}

.lay-rowscroll-hint__close-line {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 2px;
	margin-top: -1px;
	margin-left: -11px;
	background: currentColor;
	border-radius: 1px;
	transform: rotate(0deg);
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.lay-rowscroll-hint__close:hover .lay-rowscroll-hint__close-line:nth-child(1),
.lay-rowscroll-hint__close:focus-visible .lay-rowscroll-hint__close-line:nth-child(1) {
	transform: rotate(45deg);
}

.lay-rowscroll-hint__close:hover .lay-rowscroll-hint__close-line:nth-child(2),
.lay-rowscroll-hint__close:focus-visible .lay-rowscroll-hint__close-line:nth-child(2) {
	transform: rotate(-45deg);
}

.lay-rowscroll-hint__content {
	font-size: 12px;
	font-weight: normal;
	line-height: 1.45;
}

/* Plain textarea text: natural line breaks at line-height (no <br> gaps). */
.lay-rowscroll-hint__content--plain {
	white-space: pre-line;
}

.lay-rowscroll-hint__content._Default,
.lay-rowscroll-hint__content p,
.lay-rowscroll-hint__content li {
	font-size: 12px;
	font-weight: normal !important;
}

.lay-rowscroll-hint__content strong,
.lay-rowscroll-hint__content b {
	font-weight: normal !important;
}

.lay-rowscroll-hint__content p:first-child {
	margin-top: 0;
}

.lay-rowscroll-hint__content p:last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.lay-rowscroll-hint__panel,
	.lay-rowscroll-hint__close-line {
		transition-duration: 0.01ms;
	}

	.lay-rowscroll-hint__close:hover .lay-rowscroll-hint__close-line:nth-child(1),
	.lay-rowscroll-hint__close:focus-visible .lay-rowscroll-hint__close-line:nth-child(1) {
		transform: rotate(45deg);
	}

	.lay-rowscroll-hint__close:hover .lay-rowscroll-hint__close-line:nth-child(2),
	.lay-rowscroll-hint__close:focus-visible .lay-rowscroll-hint__close-line:nth-child(2) {
		transform: rotate(-45deg);
	}
}

@media (max-width: 782px) {
	.lay-rowscroll-hint__panel {
		width: min(
			var(--lay-rowscroll-hint-width, 50vw),
			calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
		) !important;
		height: min(
			var(--lay-rowscroll-hint-height, 50vh),
			calc(
				100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 72px
			)
		) !important;
		max-width: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
		max-height: calc(
			100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px
		);
		padding: 44px 16px 16px;
	}

	.lay-rowscroll-hint__panel--mobile {
		bottom: max(
			var(--lay-rowscroll-hint-bottom, 12px),
			calc(12px + env(safe-area-inset-bottom, 0px))
		) !important;
		right: max(
			var(--lay-rowscroll-hint-right, 12px),
			calc(12px + env(safe-area-inset-right, 0px))
		) !important;
	}

	.lay-rowscroll-hint__content,
	.lay-rowscroll-hint__content._Default,
	.lay-rowscroll-hint__content p,
	.lay-rowscroll-hint__content li {
		font-size: 13px;
		line-height: 1.5;
	}

	.lay-rowscroll-hint__close {
		top: 10px;
		right: 10px;
		width: 44px;
		height: 44px;
	}

	.lay-rowscroll-hint__close-icon {
		width: 24px;
		height: 24px;
	}

	.lay-rowscroll-hint__close-line {
		width: 24px;
		margin-left: -12px;
	}
}

@media (max-width: 480px) {
	.lay-rowscroll-hint__panel.lay-rowscroll-hint__panel--mobile {
		left: max(12px, env(safe-area-inset-left, 0px)) !important;
		right: max(12px, env(safe-area-inset-right, 0px)) !important;
		width: auto !important;
		max-width: none;
		height: auto !important;
		min-height: min(var(--lay-rowscroll-hint-height, 50vh), 36dvh);
		max-height: calc(
			100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px
		);
	}
}
