.wbam-ad-container {
	display: block;
}

.wbam-align-left {
	text-align: left;
}

.wbam-align-center {
	text-align: center;
}

.wbam-align-right {
	text-align: right;
}

.wbam-ad-container img {
	max-width: 100%;
	height: auto;
}

.wbam-ad-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
	margin-bottom: 4px;
}

.wbam-ad-content {
	display: inline-block;
	max-width: 100%;
}

.wbam-align-none .wbam-ad-content,
.wbam-align-left .wbam-ad-content,
.wbam-align-right .wbam-ad-content {
	display: block;
}

.wbam-lazy {
	min-height: 1px;
}

/* Sticky ad bar */
.wbam-sticky {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	text-align: center;
	background: #fff;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	padding: 6px 32px;
}

.wbam-sticky-close {
	position: absolute;
	top: 4px;
	right: 8px;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #333;
}

.wbam-hold-scroll {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	text-align: center;
	background: #fff;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
	padding: 6px 32px;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.wbam-hold-scroll.wbam-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.wbam-hold-scroll-close {
	position: absolute;
	top: 4px;
	right: 8px;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	color: #333;
}

/* Premium bar */
#wbam-premium-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 10px 40px;
	font-size: 14px;
}

.wbam-premium-bar-btn {
	background: #1e40af;
	color: #fff;
	padding: 6px 16px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
}

.wbam-premium-bar-close {
	position: absolute;
	right: 10px;
	background: none;
	border: none;
	color: inherit;
	font-size: 20px;
	cursor: pointer;
}

/* Payment modal */
.wbam-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.wbam-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.wbam-modal-content {
	position: relative;
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	max-width: 480px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
}

.wbam-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	cursor: pointer;
}

/* Receipt upload page */
.wbam-receipt-page {
	display: flex;
	justify-content: center;
	padding: 40px 20px;
}

.wbam-receipt-card {
	background: #fff;
	border-radius: 10px;
	padding: 28px;
	max-width: 480px;
	width: 100%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.wbam-receipt-card form {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
}

/* Generic frontend buttons (currently only used on the receipt-upload page) */
.wbam-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	line-height: 1.4;
}

.wbam-btn-primary {
	background: #1e40af;
	color: #fff;
}

.wbam-btn-secondary {
	background: #fff;
	color: #1e293b;
	border-color: #e2e8f0;
}

.wbam-file-field {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.wbam-file-filename {
	font-size: 13px;
	color: #64748b;
}

.wbam-receipt-error {
	color: #dc2626;
}

.wbam-receipt-success {
	color: #16a34a;
}

.wbam-plan-cards {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.wbam-plan-card {
	flex: 1;
	min-width: 160px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	text-align: center;
}

.wbam-plan-price {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
}

.wbam-selected-plan-summary {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 16px;
}

.wbam-plan-select {
	background: #1e40af;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
	width: 100%;
}

.wbam-method-switch {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e2e8f0;
	padding-bottom: 8px;
}

.wbam-method-select {
	background: none;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 13px;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.wbam-method-icon {
	height: 18px;
	width: auto;
}

.wbam-method-select.wbam-method-active {
	background: #1e40af;
	color: #fff;
	border-color: #1e40af;
}

.wbam-method-select.wbam-method-active .wbam-method-icon {
	filter: brightness(0) invert(1);
}

.wbam-method-panel {
	display: none;
}

.wbam-manual-payment-text {
	font-size: 14px;
	margin-bottom: 12px;
}

.wbam-manual-qr {
	display: block;
	max-width: 200px;
	margin: 0 auto 16px;
}

#wbam-manual-confirm {
	background: #1e40af;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	cursor: pointer;
	width: 100%;
}

.wbam-manual-note {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
	text-align: center;
}

/* Guest checkout / login fields (also used by the payment and login modals) */
.wbam-field {
	margin-bottom: 16px;
}

.wbam-field label {
	display: block;
	font-weight: 600;
	font-size: 15px;
	margin-bottom: 6px;
}

.wbam-field input[type="text"],
.wbam-field input[type="email"],
.wbam-field input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font-size: 16px;
}

.wbam-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 12px;
}

/* Login modal */
.wbam-premium-bar-login-link {
	color: inherit;
	text-decoration: underline;
	white-space: nowrap;
}

.wbam-btn-large {
	width: 100%;
	font-size: 16px;
	padding: 12px 16px;
}

.wbam-login-help {
	margin-top: 16px;
	font-size: 15px;
	line-height: 1.8;
}

.wbam-form-message {
	background: #fef3c7;
	color: #92400e;
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
	margin-bottom: 16px;
}

/* Adblocker reactions */
#wbam-adblocker-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100001;
	padding: 12px 20px;
	text-align: center;
	color: #fff;
}

#wbam-adblocker-overlay {
	position: fixed;
	inset: 0;
	z-index: 100002;
	background: rgba(15, 23, 42, 0.92);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px;
}

/* ===== Ad Groups (Rotator / Carousel / Grid) ===== */

.wbam-ad-group {
	position: relative;
	overflow: hidden;
}

/* Rotator: fade transition */
.wbam-group-rotator .wbam-ad-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.wbam-group-rotator .wbam-ad-container.wbam-active {
	opacity: 1;
	position: relative;
}

/* Rotator nav dots */
.wbam-rotator-nav {
	text-align: center;
	margin-top: 8px;
}

.wbam-rotator-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin: 0 4px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	border: none;
	padding: 0;
}

.wbam-rotator-dot.wbam-active {
	background: #333;
}

/* Rotator arrows */
.wbam-rotator-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.3);
	color: #fff;
	border: none;
	font-size: 20px;
	width: 32px;
	height: 32px;
	cursor: pointer;
	z-index: 2;
	border-radius: 50%;
	line-height: 32px;
	text-align: center;
}

.wbam-rotator-arrow.wbam-prev { left: 8px; }
.wbam-rotator-arrow.wbam-next { right: 8px; }

/* Carousel wrapper */
.wbam-group-carousel {
	overflow: hidden;
}

.wbam-carousel-track {
	display: flex;
	transition: transform 0.4s ease;
}

.wbam-carousel-track .wbam-ad-container {
	flex-shrink: 0;
	box-sizing: border-box;
	padding: 0 8px;
}

.wbam-carousel-nav {
	text-align: center;
	margin-top: 8px;
}

/* Grid */
.wbam-group-grid {
	/* display:grid set inline via style attribute */
}

/* ===== Floating ad overlay ===== */

.wbam-float {
	position: fixed;
	z-index: 99990;
	max-width: 360px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.4s ease, transform 0.4s ease;
	pointer-events: none;
}

.wbam-float.wbam-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.wbam-float[data-position="bottom-right"],
.wbam-float[data-position="right-bottom"] {
	right: 16px;
	bottom: 16px;
}

.wbam-float[data-position="bottom-left"],
.wbam-float[data-position="left-bottom"] {
	left: 16px;
	bottom: 16px;
}

.wbam-float[data-position="top-right"],
.wbam-float[data-position="right-top"] {
	right: 16px;
	top: 16px;
}

.wbam-float[data-position="top-left"],
.wbam-float[data-position="left-top"] {
	left: 16px;
	top: 16px;
}

.wbam-float[data-position="bottom-center"] {
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%) translateY(20px);
}

.wbam-float[data-position="bottom-center"].wbam-visible {
	transform: translateX(-50%) translateY(0);
}

.wbam-float-inner {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 24px rgba(0,0,0,0.15);
	position: relative;
	overflow: hidden;
}

.wbam-float-close {
	position: absolute;
	top: 4px;
	right: 8px;
	z-index: 2;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #666;
	background: rgba(255,255,255,0.9);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	text-align: center;
}

.wbam-float-close:hover {
	color: #000;
	background: #fff;
}

.wbam-float .wbam-ad-container {
	margin: 0 !important;
}

@media (max-width: 480px) {
	.wbam-float {
		max-width: calc(100vw - 16px);
		left: 8px !important;
		right: 8px !important;
	}
}

/* In-app-browser hint (Google-App, Facebook, Instagram, …): deliberately large and plain,
   not a small/discreet notice, since the audience relies on it being easy to read. */
#wbam-inapp-banner {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100002;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 16px 48px 16px 20px;
	background: #fef3c7;
	color: #78350f;
	font-size: 17px;
	line-height: 1.5;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wbam-inapp-banner-text {
	font-weight: 600;
}

.wbam-inapp-banner-btn {
	background: #1e40af;
	color: #fff;
	padding: 10px 20px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
}

.wbam-inapp-banner-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}
