.af-ad-mount {
	--af-ad-width: 300px;
	--af-ad-right: 20px;
	--af-ad-bottom: 24px;
	--af-ad-radius: 14px;
	--af-ad-bg: #fff;
	--af-ad-text: #1a1a1a;
	--af-ad-btn-bg: #1a1a1a;
	--af-ad-btn-text: #fff;
}

.af-ad-mount--editor {
	max-width: 320px;
}

.af-ad__editorNote {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	background: color-mix(in srgb, currentColor 6%, transparent);
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.8;
}

.af-ad__stack {
	position: fixed;
	right: var(--af-ad-right, 20px);
	bottom: var(--af-ad-bottom, 24px);
	z-index: 999990;
	display: flex;
	flex-direction: column-reverse;
	gap: 12px;
	width: var(--af-ad-width, 300px);
	max-width: calc(100vw - 32px);
	pointer-events: none;
}

.af-ad__card {
	position: relative;
	overflow: hidden;
	width: 100%;
	border-radius: var(--af-ad-radius, 14px);
	background: var(--af-ad-bg, #fff);
	color: var(--af-ad-text, #1a1a1a);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
	pointer-events: auto;
	transform: translateX(120%);
	opacity: 0;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.af-ad__card.is-in,
.af-ad__card.is-static {
	transform: translateX(0);
	opacity: 1;
}

.af-ad__card.is-out {
	transform: translateX(120%);
	opacity: 0;
}

.af-ad__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.af-ad__close:hover,
.af-ad__close:focus-visible {
	background: rgba(0, 0, 0, 0.75);
	outline: none;
}

.af-ad__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: inline-flex;
	padding: 4px 8px;
	border-radius: 999px;
	background: #b42318;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.af-ad__image {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
	background: #f2f2f2;
}

.af-ad__body {
	padding: 14px 14px 16px;
}

.af-ad__title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.25;
}

.af-ad__subtitle {
	margin: 0 0 12px;
	font-size: 0.88rem;
	line-height: 1.4;
	opacity: 0.75;
}

.af-ad__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--af-ad-btn-bg, #1a1a1a);
	color: var(--af-ad-btn-text, #fff);
	font-size: 0.85rem;
	font-weight: 650;
	text-decoration: none;
}

.af-ad__btn:hover,
.af-ad__btn:focus-visible {
	opacity: 0.92;
	outline: none;
}

@media (max-width: 767px) {
	.af-ad-mount--hide-mobile + .af-ad__stack,
	.af-ad-mount--hide-mobile ~ .af-ad__stack,
	body.af-ad-hide-mobile .af-ad__stack {
		display: none !important;
	}

	.af-ad__stack {
		right: 12px;
		bottom: 12px;
		width: min(280px, calc(100vw - 24px));
	}
}
