.uyet-webinar {
	position: fixed;
	z-index: 98;
	left: 12px;
	right: auto;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	width: 70%;
	max-width: 360px;
	transform: none;
	transition: opacity 0.2s ease;
}

.uyet-webinar[hidden] {
	display: none;
}

.uyet-webinar.is-dismissed {
	opacity: 0;
	pointer-events: none;
}

.uyet-webinar__link {
	display: block;
	position: relative;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #fff;
	line-height: 0;
	box-shadow: 0 10px 28px rgba(0, 24, 53, 0.28);
}

.uyet-webinar__link:focus-visible {
	outline: 2px solid #001835;
	outline-offset: 3px;
}

.uyet-webinar__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: min(52vh, 420px);
	object-fit: contain;
	object-position: center;
	background: #fff;
}

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

.uyet-webinar__close {
	position: absolute;
	top: -8px;
	right: -8px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1a1a1a;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
	cursor: pointer;
}

.uyet-webinar__close::before {
	content: "";
	position: absolute;
	inset: -8px;
}

.uyet-webinar__close:hover {
	background: #f4f4f4;
}

.uyet-webinar__close:focus-visible {
	outline: 2px solid #001835;
	outline-offset: 2px;
}

/* SWELL のスマホ固定フッターメニューがあるときだけ、下方向を空ける */
@media (max-width: 959px) {
	body:has(#fix_bottom_menu) .uyet-webinar {
		bottom: calc(72px + env(safe-area-inset-bottom, 0px));
	}
}

@media (min-width: 960px) {
	.uyet-webinar {
		left: 24px;
		bottom: 24px;
		width: 360px;
		max-width: none;
	}
}

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

@media print {
	.uyet-webinar {
		display: none !important;
	}
}
