.sabm-ad {
	box-sizing: border-box;
	position: relative;
	overflow: auto;
	width: var(--sabm-desktop-width);
	height: var(--sabm-desktop-height);
	max-height: min(86vh, 760px);
	max-width: 100%;
	margin: 18px auto;
	border-radius: var(--sabm-radius);
	background: var(--sabm-bg);
	color: var(--sabm-text);
	z-index: 9998;
}

.sabm-ad *,
.sabm-ad *::before,
.sabm-ad *::after {
	box-sizing: border-box;
}

.sabm-ad.has-shadow {
	box-shadow: 0 16px 42px rgba(15, 39, 64, 0.22);
}

.sabm-image {
	display: block;
}

.sabm-full-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
}

.sabm-ad.is-feedback-open .sabm-full-link {
	pointer-events: none;
}

.sabm-ad.is-feedback-open {
	overflow: visible;
}

.sabm-ad.sabm-is-expanded {
	position: fixed !important;
	inset: 0 !important;
	right: auto !important;
	bottom: auto !important;
	left: 0 !important;
	top: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	overflow: auto;
	border-radius: 0;
	background: var(--sabm-bg);
	transform: none !important;
	z-index: 99998;
}

.sabm-ad.sabm-is-expanded .sabm-full-link {
	pointer-events: none;
}

.sabm-ad.sabm-is-expanded .sabm-image {
	width: 100%;
	max-height: 72vh;
	object-fit: contain;
	background: #07111f;
}

.sabm-ad.sabm-is-expanded .sabm-body {
	width: min(100%, 980px);
	margin: 0 auto;
	padding: clamp(18px, 4vw, 44px);
	pointer-events: auto;
}

.sabm-ad.sabm-is-expanded .sabm-title {
	font-size: clamp(22px, 3vw, 38px);
}

.sabm-ad.sabm-is-expanded .sabm-description {
	font-size: clamp(15px, 1.8vw, 18px);
}

.sabm-image {
	width: 100%;
	height: auto;
	object-fit: cover;
}

.sabm-body {
	position: relative;
	z-index: 2;
	padding: 16px;
	pointer-events: none;
}

.sabm-title {
	margin: 0 0 8px;
	color: inherit;
	font-size: 20px;
	line-height: 1.35;
}

.sabm-description {
	margin: 0 0 14px;
	color: inherit;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-line;
}

.sabm-cta {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: var(--sabm-btn);
	color: var(--sabm-btn-text);
	font-weight: 700;
	text-decoration: none;
	pointer-events: auto;
}

.sabm-cta:hover,
.sabm-cta:focus {
	color: var(--sabm-btn-text);
	text-decoration: none;
	filter: brightness(0.96);
}

.sabm-position-popup {
	position: fixed;
	top: 50%;
	left: 50%;
	width: min(var(--sabm-desktop-width), calc(100vw - 32px));
	transform: translate(-50%, -50%);
}

.sabm-position-floating_bottom {
	position: fixed;
	right: 16px;
	bottom: 16px;
	margin: 0;
}

.sabm-position-sidebar {
	position: fixed;
	right: 16px;
	top: 120px;
	margin: 0;
}

.sabm-position-fixed_left {
	position: fixed;
	left: 16px;
	top: 50%;
	margin: 0;
	transform: translateY(-50%);
}

.sabm-position-fixed_right {
	position: fixed;
	right: 16px;
	top: 50%;
	margin: 0;
	transform: translateY(-50%);
}

.sabm-close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.66);
	color: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	z-index: 4;
}

.sabm-close-floating {
	top: 6px;
	right: 6px;
}

.sabm-expand-close {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.72);
	color: #fff;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
}

.sabm-ad.sabm-is-expanded .sabm-expand-close {
	display: flex;
}

.sabm-ad.sabm-is-expanded .sabm-close {
	display: none;
}

.sabm-feedback-panel {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	overflow: auto;
	padding: 0;
	background: rgba(15, 39, 64, 0.86);
}

.sabm-ad.is-feedback-open .sabm-feedback-panel {
	display: flex;
}

.sabm-feedback-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: 100vh;
	max-height: none;
	overflow: auto;
	border-radius: 0;
	background: #fff;
	color: #172a3d;
	padding: clamp(22px, 5vw, 56px);
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

body.sabm-feedback-modal-open {
	overflow: hidden;
}

body.sabm-ad-expanded-open {
	overflow: hidden;
}

.sabm-feedback-box strong {
	display: block;
	margin-bottom: 12px;
	font-size: clamp(20px, 3vw, 34px);
	text-align: center;
}

.sabm-feedback-options,
.sabm-feedback-actions {
	display: grid;
	gap: 8px;
	width: min(100%, 560px);
	margin-inline: auto;
}

.sabm-feedback-options button,
.sabm-feedback-actions button {
	min-height: 38px;
	border: 1px solid #d8e2ee;
	border-radius: 8px;
	background: #f6f9fc;
	color: #172a3d;
	cursor: pointer;
	font-weight: 700;
}

.sabm-feedback-options button.is-selected {
	border-color: var(--sabm-btn);
	background: var(--sabm-btn);
	color: var(--sabm-btn-text);
}

.sabm-feedback-message {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.sabm-is-hidden {
	display: none !important;
}

.sabm-animation-blink {
	animation: sabm-blink 1.8s ease-in-out infinite;
}

.sabm-animation-shake {
	animation: sabm-shake 2.2s ease-in-out infinite;
}

.sabm-animation-zoom {
	animation: sabm-zoom 2.6s ease-in-out infinite;
}

.sabm-animation-slide_in {
	animation: sabm-slide-in 0.55s ease both;
}

.sabm-animation-fade_in {
	animation: sabm-fade-in 0.55s ease both;
}

.sabm-animation-bounce {
	animation: sabm-bounce 1.3s ease both;
}

.sabm-animation-pulse {
	animation: sabm-pulse 1.8s ease-in-out infinite;
}

@keyframes sabm-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.72; }
}

@keyframes sabm-shake {
	0%, 88%, 100% { translate: 0 0; }
	90% { translate: -3px 0; }
	92% { translate: 3px 0; }
	94% { translate: -2px 0; }
	96% { translate: 2px 0; }
}

@keyframes sabm-zoom {
	0%, 100% { scale: 1; }
	50% { scale: 1.035; }
}

@keyframes sabm-slide-in {
	from { opacity: 0; translate: 0 18px; }
	to { opacity: 1; translate: 0 0; }
}

@keyframes sabm-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes sabm-bounce {
	0% { opacity: 0; translate: 0 22px; }
	55% { opacity: 1; translate: 0 -6px; }
	75% { translate: 0 3px; }
	100% { translate: 0 0; }
}

@keyframes sabm-pulse {
	0%, 100% { box-shadow: 0 16px 42px rgba(15, 39, 64, 0.2); }
	50% { box-shadow: 0 16px 52px rgba(11, 100, 216, 0.42); }
}

@media (max-width: 767px) {
	.sabm-ad {
		width: var(--sabm-mobile-width);
		height: var(--sabm-mobile-height);
		max-width: calc(100vw - 24px);
		max-height: 82vh;
	}

	.sabm-position-floating_bottom,
	.sabm-position-fixed_left,
	.sabm-position-fixed_right,
	.sabm-position-sidebar {
		right: 12px;
		bottom: 12px;
		left: 12px;
		top: auto;
		width: calc(100vw - 24px);
		transform: none;
	}

	.sabm-title {
		font-size: 17px;
	}

	.sabm-body {
		padding: 13px;
	}

	.sabm-feedback-panel {
		padding: 0;
	}

	.sabm-feedback-box {
		width: 100%;
		min-height: 100vh;
		padding: 20px;
	}
}
