/* ---------- Popup ---------- */
.aar-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Wrapper has NO overflow:hidden, so the close button below — a sibling of
   the rounded box, not a child of it — is never clipped, however tall or
   wide the ad content inside the box turns out to be. */
.aar-popup-wrap {
	position: relative;
	max-width: min(420px, 92vw);
	max-height: 85vh;
}

.aar-popup-box {
	border-radius: 14px;
	max-height: 85vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.aar-popup-box > .aar-popup-content {
	max-height: 85vh;
	overflow: auto;
}

/* Global close button, always available regardless of what the brand's ad
   code contains. Sits just outside the card, top-right of the popup.
   Every visual property is forced with !important: this plugin runs on
   several different WordPress themes, and a theme's own generic
   `button { background:none; border:none; ... }` reset has enough
   specificity to strip this button's look (making it invisible even
   though it's technically on the page and clickable) unless we out-rank
   it explicitly here. */
.aar-popup-close {
	position: absolute !important;
	top: -14px !important;
	right: -14px !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	min-height: 32px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #ffffff !important;
	border: 2px solid #ffffff !important;
	border-radius: 50% !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	font-size: 20px !important;
	line-height: 28px !important;
	text-align: center !important;
	cursor: pointer !important;
	color: #16202c !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
	z-index: 2147483647 !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

.aar-popup-close:hover {
	background: #f2f2f2 !important;
}

.aar-popup-content img,
.aar-popup-content iframe {
	max-width: 100%;
	height: auto;
}

/* ---------- Social bar: oval / pill, fixed top-right ----------
   Matches the reference "wes-social-bar" format: white pill, thumb + text +
   CTA, slides down on entrance, auto-hides after a while, and has its own
   clearly visible close button. */
.aar-social-bar {
	position: fixed;
	top: 18px;
	right: 18px;
	width: 360px;
	max-width: 92vw;
	background: #ffffff;
	border: 1px solid #e4e7ea;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(16, 24, 32, 0.18);
	display: flex;
	align-items: center;
	padding: 8px 16px 8px 8px;
	z-index: 999997;
	transform: translateY(-140%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s ease;
}

.aar-social-bar.aar-in {
	transform: translateY(0);
	opacity: 1;
}

.aar-social-content {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
}

.aar-social-close {
	position: absolute !important;
	top: -6px !important;
	right: -6px !important;
	width: 22px !important;
	height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e4e7ea !important;
	background: #fff !important;
	color: #9aa3ac !important;
	font-size: 14px !important;
	line-height: 20px !important;
	border-radius: 50% !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	cursor: pointer !important;
	box-shadow: 0 2px 8px rgba(16, 24, 32, 0.15) !important;
	z-index: 2147483647 !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

.aar-social-close:hover {
	color: #16202c !important;
}

/* ---------- Sticky bottom anchor ad ----------
   Full-width dark bar pinned to the bottom of the screen, with a small
   collapse/expand tab centred above it and a clearly visible close button. */
.aar-anchor-wrap {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999996;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.3s ease;
}

.aar-anchor-wrap.aar-in {
	transform: translateY(0);
	opacity: 1;
}

/* Small pill tab above the bar. Stays fixed to the viewport bottom itself
   (not a child of the sliding bar) so it's always reachable even while the
   bar underneath is collapsed. */
.aar-anchor-toggle {
	width: 44px !important;
	height: 22px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 8px 8px 0 0 !important;
	background: #ffffff !important;
	border: 1px solid #e4e7ea !important;
	border-bottom: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	box-shadow: 0 -2px 8px rgba(16, 24, 32, 0.1) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer !important;
	color: #5b6672 !important;
	flex-shrink: 0;
}

.aar-anchor-chevron {
	display: inline-block;
	font-size: 11px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.aar-anchor-wrap.aar-anchor-collapsed .aar-anchor-chevron {
	transform: rotate(180deg);
}

.aar-anchor-bar {
	width: 100%;
	max-height: 90px;
	overflow: hidden;
	background: #0e0e14;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	padding: 14px 60px 14px 20px;
	display: flex;
	align-items: center;
	gap: 14px;
	transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.2s ease;
}

.aar-anchor-content {
	flex: 1;
	min-width: 0;
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
}

.aar-anchor-label {
	flex-shrink: 0;
	font-size: 9px;
	font-weight: 700;
	color: #9aa3ac;
	background: rgba(255, 255, 255, 0.08);
	padding: 3px 7px;
	border-radius: 4px;
}

/* Collapsed state: the bar itself shrinks to nothing (but stays mounted so
   it can expand again), leaving only the toggle tab visible above the page
   edge. */
.aar-anchor-wrap.aar-anchor-collapsed .aar-anchor-bar {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
}

/* Close button — solid, high-contrast square, clearly visible, sits beside
   the bar so it's reachable whether the bar is expanded or collapsed. */
.aar-anchor-close {
	position: absolute !important;
	right: 14px !important;
	bottom: 14px !important;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	background: #16202c !important;
	border: none !important;
	border-radius: 8px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	color: #fff !important;
	font-size: 19px !important;
	line-height: 32px !important;
	text-align: center !important;
	cursor: pointer !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
	z-index: 2147483647 !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

.aar-anchor-close:hover {
	background: #000 !important;
}

/* ---------- Homepage banner, inserted after the first 4 Elementor blocks ---------- */
.aar-banner-slot {
	width: 100%;
	text-align: center;
	margin: 12px 0;
}

.aar-banner-slot img {
	max-width: 100%;
	height: auto;
}

/* ---------- Sidebar ad ---------- */
.aar-sidebar-ad {
	text-align: center;
}

.aar-sidebar-ad img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 600px) {
	.aar-social-bar {
		top: 10px;
		right: 10px;
		width: 300px;
		padding: 6px 14px 6px 6px;
	}

	.aar-anchor-bar {
		padding: 12px 54px 12px 14px;
	}

	.aar-anchor-close {
		right: 10px;
		bottom: 10px;
		width: 30px;
		height: 30px;
		font-size: 17px;
		line-height: 28px;
	}
}
