/**
 * Coro Slide-in Ad — frontend styles.
 */

.csia-slide-in {
	position: fixed;
	left: 0;
	bottom: 24px;
	z-index: 99999;
	max-width: min(360px, calc(100vw - 24px));
	margin: 0;
	padding: 0;
	transform: translateX(-110%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	pointer-events: none;
	box-sizing: border-box;
}

.csia-slide-in.csia-is-visible {
	transform: translateX(0);
	pointer-events: auto;
}

.csia-slide-in.csia-is-hiding {
	transform: translateX(-110%);
	pointer-events: none;
}

.csia-slide-in__close {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.csia-slide-in__close:focus {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.csia-slide-in__link {
	display: block;
	line-height: 0;
	text-decoration: none;
}

.csia-slide-in__image,
.csia-slide-in picture,
.csia-slide-in picture img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.csia-slide-in {
		transition: none;
	}
}

/* Visually hidden helper if theme lacks .screen-reader-text */
.csia-slide-in .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}
