.acp-notice-open {
	overflow: hidden !important;
}

.acp-notice[hidden] {
	display: none !important;
}

.acp-notice,
.acp-notice *,
.acp-notice *::before,
.acp-notice *::after {
	box-sizing: border-box;
}

.acp-notice {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 24px;
	position: fixed;
	z-index: 2147483647;
}

.acp-notice__backdrop {
	background: rgba(17, 17, 17, 0.78);
	inset: 0;
	position: absolute;
}

.acp-notice__dialog {
	background: #ffffff;
	border-top: 6px solid var(--acp-notice-primary, #7a4a24);
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
	color: #1f2328;
	font-family: inherit;
	margin: auto;
	max-height: calc(100dvh - 48px);
	max-width: 680px;
	position: relative;
	width: 100%;
}

.acp-notice__scroll {
	max-height: calc(100dvh - 54px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 48px 52px 44px;
	text-align: center;
	-webkit-overflow-scrolling: touch;
}

.acp-notice__icon-close {
	align-items: center;
	appearance: none;
	background: transparent;
	border: 0;
	color: #3c434a;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 32px;
	font-weight: 400;
	height: 44px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 44px;
	z-index: 2;
}

.acp-notice__icon-close:hover {
	color: var(--acp-notice-primary, #7a4a24);
}

.acp-notice__icon-close:focus-visible,
.acp-notice__button:focus-visible,
.acp-notice a:focus-visible {
	outline: 3px solid var(--acp-notice-primary, #7a4a24);
	outline-offset: 3px;
}

.acp-notice__image {
	display: block;
	height: auto;
	margin: 0 auto 24px;
	max-height: 180px;
	max-width: 100%;
	object-fit: contain;
}

.acp-notice__title {
	color: #16191d;
	font-family: inherit;
	font-size: 34px;
	font-weight: 750;
	letter-spacing: 0;
	line-height: 1.18;
	margin: 0 36px 20px;
	overflow-wrap: anywhere;
	text-transform: none;
}

.acp-notice__message {
	color: #343a40;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.6;
	margin: 0 auto;
	max-width: 570px;
	overflow-wrap: anywhere;
}

.acp-notice__message > :first-child {
	margin-top: 0;
}

.acp-notice__message > :last-child {
	margin-bottom: 0;
}

.acp-notice__message ul,
.acp-notice__message ol {
	display: inline-block;
	margin: 12px auto;
	max-width: 100%;
	padding-left: 24px;
	text-align: left;
}

.acp-notice__message a {
	color: var(--acp-notice-primary, #7a4a24);
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.acp-notice__note {
	border-left: 4px solid var(--acp-notice-primary, #7a4a24);
	color: #50575e;
	font-size: 15px;
	line-height: 1.5;
	margin: 24px auto 0;
	max-width: 570px;
	padding: 10px 14px;
	text-align: left;
}

.acp-notice__button {
	appearance: none;
	background: var(--acp-notice-primary, #7a4a24);
	border: 2px solid var(--acp-notice-primary, #7a4a24);
	border-radius: 3px;
	color: #ffffff;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 32px;
	min-height: 50px;
	min-width: 150px;
	padding: 13px 26px;
	text-align: center;
	transition: filter 160ms ease, transform 160ms ease;
}

.acp-notice__button:hover {
	filter: brightness(0.88);
	transform: translateY(-1px);
}

@media (max-width: 640px) {
	.acp-notice {
		align-items: flex-end;
		padding: 12px;
	}

	.acp-notice__dialog {
		max-height: calc(100dvh - 24px);
		max-width: none;
	}

	.acp-notice__scroll {
		max-height: calc(100dvh - 30px);
		padding: 48px 22px 24px;
	}

	.acp-notice__image {
		max-height: 120px;
	}

	.acp-notice__title {
		font-size: 27px;
		margin-left: 20px;
		margin-right: 20px;
	}

	.acp-notice__message {
		font-size: 16px;
		line-height: 1.55;
	}

	.acp-notice__button {
		min-width: 0;
		width: 100%;
	}
}

@media (max-height: 520px) and (orientation: landscape) {
	.acp-notice {
		padding: 8px;
	}

	.acp-notice__dialog,
	.acp-notice__scroll {
		max-height: calc(100dvh - 16px);
	}

	.acp-notice__scroll {
		padding-bottom: 20px;
		padding-top: 42px;
	}

	.acp-notice__image {
		max-height: 80px;
	}

	.acp-notice__title {
		font-size: 25px;
		margin-bottom: 12px;
	}

	.acp-notice__button {
		margin-top: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.acp-notice__button {
		transition: none;
	}
}
