/* SK Ad Manager – front end */
.skam-ad {
	--skam-spacing: 20px;
	box-sizing: border-box;
	display: block;
	clear: both;
	margin-top: var(--skam-spacing);
	margin-bottom: var(--skam-spacing);
	max-width: 100%;
	line-height: 0;
}
.skam-ad * { box-sizing: border-box; }
.skam-ad .skam-inner { line-height: normal; }
.skam-ad img,
.skam-ad iframe,
.skam-ad video { max-width: 100%; height: auto; }
.skam-ad .skam-img { display: block; margin: 0 auto; border: 0; }
.skam-ad .skam-link { display: inline-block; max-width: 100%; text-decoration: none; border: 0; box-shadow: none; }

.skam-align-center { margin-left: auto; margin-right: auto; text-align: center; }
.skam-align-left { margin-right: auto; text-align: left; }
.skam-align-left .skam-img { margin-left: 0; }
.skam-align-right { margin-left: auto; text-align: right; }
.skam-align-right .skam-img { margin-right: 0; }
.skam-align-float-left { float: left; clear: none; margin-right: var(--skam-spacing); margin-top: 6px; }
.skam-align-float-right { float: right; clear: none; margin-left: var(--skam-spacing); margin-top: 6px; }
@media (max-width: 600px) {
	.skam-align-float-left, .skam-align-float-right { float: none; margin-left: auto; margin-right: auto; text-align: center; }
}

.skam-label {
	display: block;
	margin: 0 0 4px;
	font: 500 10px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .55;
}

.skam-text { padding: 16px 20px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; background: rgba(0,0,0,.02); text-align: left; }
.skam-text > *:first-child { margin-top: 0; }
.skam-text > *:last-child { margin-bottom: 0; }

.skam-group { display: grid; gap: 16px; }
.skam-group .skam-ad { margin: 0; }
.skam-zone-header .skam-ad,
.skam-zone-footer .skam-ad { margin-left: auto; margin-right: auto; }

/* Close button */
.skam-close {
	position: absolute; top: 6px; right: 6px; z-index: 2;
	width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.65); color: #fff; font-size: 20px; line-height: 30px; text-align: center;
	cursor: pointer;
}
.skam-close:hover, .skam-close:focus { background: #000; color: #fff; outline: 2px solid #fff; outline-offset: -4px; }

/* Sticky bar */
.skam-sticky {
	position: fixed; left: 0; right: 0; z-index: 99990;
	display: flex; justify-content: center;
	padding: 8px 44px 8px 8px;
	background: rgba(255,255,255,.97);
	box-shadow: 0 0 18px rgba(0,0,0,.15);
	transition: transform .35s ease;
}
.skam-sticky[hidden] { display: none; }
.skam-sticky--bottom { bottom: 0; transform: translateY(110%); }
.skam-sticky--top { top: 0; transform: translateY(-110%); }
body.admin-bar .skam-sticky--top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .skam-sticky--top { top: 46px; } }
.skam-sticky.is-visible { transform: translateY(0); }
.skam-sticky .skam-ad { margin: 0; --skam-spacing: 0px; }
.skam-sticky .skam-close { top: 50%; transform: translateY(-50%); right: 8px; }

/* Popup */
.skam-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .25s ease; }
.skam-popup[hidden] { display: none; }
.skam-popup.is-visible { opacity: 1; }
.skam-popup__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.skam-popup__box {
	position: relative; max-width: min(92vw, 720px); max-height: 90vh; overflow: auto;
	padding: 18px; border-radius: 10px; background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.35);
	transform: translateY(12px) scale(.98); transition: transform .25s ease;
}
.skam-popup.is-visible .skam-popup__box { transform: none; }
.skam-popup .skam-ad { margin: 0; --skam-spacing: 0px; }
html.skam-noscroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.skam-sticky, .skam-popup, .skam-popup__box { transition: none; }
}
@media print {
	.skam-ad, .skam-sticky, .skam-popup { display: none !important; }
}
