/* Amazon Campaign Booster — front-end styles */

.acb-btn {
	display: inline-block;
	padding: 11px 24px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	line-height: 1.2;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
	white-space: nowrap;
}
.acb-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
	filter: brightness(1.04);
}
.acb-btn:active {
	transform: translateY(0);
}

/* ---------- Countdown ---------- */
.acb-countdown {
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.acb-cd-unit {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	background: rgba(0, 0, 0, .28);
	border-radius: 7px;
	padding: 5px 8px;
	min-width: 40px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 2px rgba(0, 0, 0, .2);
}
.acb-cd-unit b {
	font-size: 17px;
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}
.acb-cd-unit i {
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: .04em;
	opacity: .8;
	font-style: normal;
	margin-top: 2px;
}
.acb-cd-ended b {
	opacity: .4;
}

/* ---------- Sticky bar ---------- */
.acb-bar {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99990;
	background: var(--acb-bg, #232f3e);
	background-image: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(0, 0, 0, .12));
	color: var(--acb-text, #fff);
	box-shadow: 0 2px 16px rgba(0, 0, 0, .28);
	border-bottom: 2px solid var(--acb-accent, #ff9900);
	transform: translateY(-110%);
	transition: transform .35s cubic-bezier(.2, .8, .3, 1);
}
.acb-bar-bottom {
	transform: translateY(110%);
	box-shadow: 0 -2px 16px rgba(0, 0, 0, .28);
	border-bottom: 0;
	border-top: 2px solid var(--acb-accent, #ff9900);
}
.acb-bar-top {
	top: 0;
}
.acb-bar-bottom {
	bottom: 0;
}
.acb-bar.acb-show {
	transform: translateY(0);
}
.acb-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 10px 50px;
}
.acb-bar-text {
	font-weight: 700;
	font-size: 15px;
}
.acb-bar-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.acb-bar-close:hover {
	opacity: 1;
}
body.acb-has-bar-top {
	padding-top: 56px;
}
body.acb-has-bar-bottom {
	padding-bottom: 56px;
}

/* ---------- Disclosure ---------- */
.acb-disclosure {
	display: block;
	margin-top: 10px;
	font-size: 11px;
	line-height: 1.4;
	opacity: .65;
}
.acb-inline .acb-disclosure {
	color: #555;
}

/* Lock background scroll when popup is open. */
body.acb-noscroll {
	overflow: hidden;
}

/* ---------- Popup ---------- */
.acb-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(15, 23, 42, .72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.acb-popup-overlay.acb-show {
	display: flex;
	animation: acb-fade .25s ease;
}
@keyframes acb-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
.acb-popup {
	position: relative;
	background: #fff;
	color: #111;
	max-width: 440px;
	width: 100%;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
	animation: acb-pop .35s cubic-bezier(.2, .8, .3, 1.15);
	box-sizing: border-box;
}
@keyframes acb-pop {
	from { transform: translateY(16px) scale(.96); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}
.acb-pop-img img {
	width: 100%;
	display: block;
	border-radius: 18px 18px 0 0;
}
.acb-pop-body {
	padding: 32px 28px 28px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}
.acb-pop-body h3 {
	margin: 0;
	padding: 0 8px;
	font-size: clamp(20px, 5vw, 25px);
	font-weight: 800;
	line-height: 1.25;
	color: #111;
}
.acb-pop-body p {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #555;
}
.acb-pop-body .acb-countdown {
	margin: 2px 0;
	color: #fff;
	flex-wrap: wrap;
	justify-content: center;
}
.acb-pop-body .acb-cd-unit {
	background: var(--acb-bg, #232f3e);
	min-width: 46px;
}
.acb-pop-body .acb-btn {
	width: 100%;
	max-width: 280px;
	padding: 14px 24px;
	font-size: 16px;
	border-radius: 10px;
}
/* Close button — hardened against theme button styles. */
.acb-popup .acb-pop-close,
.acb-popup .acb-pop-close:hover,
.acb-popup .acb-pop-close:focus {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: 34px !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box !important;
	background: rgba(17, 24, 39, .55) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 50% !important;
	font-size: 22px !important;
	font-weight: 400;
	line-height: 1 !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	outline: none;
	z-index: 5;
	transition: background .15s ease, transform .15s ease;
}
.acb-popup .acb-pop-close:hover {
	background: rgba(17, 24, 39, .85) !important;
	transform: rotate(90deg);
}

/* ---------- In-content block ---------- */
.acb-inline {
	display: flex;
	gap: 18px;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, .06);
	border-left: 4px solid var(--acb-accent, #ff9900);
	border-radius: 14px;
	padding: 20px;
	margin: 28px 0;
	background: linear-gradient(135deg, #fffdf8 0%, #fff6e9 100%);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .07);
	transition: transform .2s ease, box-shadow .2s ease;
}
.acb-inline:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .1);
}
.acb-in-img img {
	width: 140px;
	height: auto;
	border-radius: 10px;
	display: block;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.acb-in-body {
	flex: 1;
}
.acb-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--acb-accent, #ff9900);
	color: #111;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .06em;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
	box-shadow: 0 2px 8px rgba(255, 153, 0, .35);
}
.acb-badge::before {
	content: "★";
	font-size: 10px;
}
.acb-in-body h4 {
	margin: 6px 0 8px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--acb-text, #111);
}
.acb-in-body p {
	margin: 0 0 14px;
	line-height: 1.5;
}
.acb-inline .acb-countdown {
	margin-bottom: 12px;
	color: #111;
}
.acb-inline .acb-cd-unit {
	background: rgba(0, 0, 0, .08);
}

/* ---------- Sidebar ---------- */
.acb-sidebar {
	position: relative;
	border-radius: 16px;
	overflow: hidden;
	background: var(--acb-bg, #232f3e);
	background-image: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18));
	color: #fff;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	border-top: 3px solid var(--acb-accent, #ff9900);
}
.acb-side-img img {
	width: 100%;
	display: block;
}
.acb-side-body {
	padding: 22px 18px;
}
.acb-side-body h4 {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: #fff;
}
.acb-side-body p {
	margin: 0 0 16px;
	opacity: .9;
	font-size: 14px;
	line-height: 1.5;
}
.acb-sidebar .acb-countdown {
	margin-bottom: 16px;
	justify-content: center;
	flex-wrap: wrap;
}
.acb-sidebar .acb-cd-unit {
	background: rgba(0, 0, 0, .3);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
	.acb-inline {
		flex-direction: column;
		text-align: center;
	}
	.acb-in-img img {
		width: 100%;
	}
	.acb-bar-inner {
		padding: 10px 40px;
		gap: 10px;
	}
	.acb-bar-text {
		font-size: 13px;
	}
	.acb-cd-unit {
		min-width: 32px;
		padding: 3px 5px;
	}
	/* Popup on phones: full-width sheet, tighter padding, smaller timer. */
	.acb-popup-overlay {
		padding: 10px;
		align-items: flex-end;
	}
	.acb-popup {
		border-radius: 16px;
	}
	.acb-pop-body {
		padding: 28px 18px 22px;
		gap: 14px;
	}
	.acb-pop-body p {
		font-size: 14px;
	}
	.acb-pop-body .acb-cd-unit {
		min-width: 40px;
		padding: 4px 6px;
	}
	.acb-pop-body .acb-cd-unit b {
		font-size: 15px;
	}
	.acb-pop-body .acb-btn {
		max-width: 100%;
	}
}
