/* =============================================
   GIVEAWAY MARQUEE BAR — fixed top, RTL scroll
   ============================================= */
:root {
	--agribid-marquee-height: 36px;
}
body.has-giveaway-marquee {
	padding-top: var(--agribid-marquee-height);
}
body.has-giveaway-marquee .stricky-header.stricky-fixed {
	top: var(--agribid-marquee-height);
}
.agribid-marquee-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--agribid-marquee-height);
	background: linear-gradient(90deg, #f0a500 0%, #ffd166 50%, #f0a500 100%);
	border-bottom: 1px solid rgba(26, 26, 26, 0.12);
	overflow: hidden;
	z-index: 1000;
	display: flex;
	align-items: center;
}
.agribid-marquee-bar__track {
	display: flex;
	width: max-content;
	animation: agribid-marquee-rtl 28s linear infinite;
}
.agribid-marquee-bar__text {
	white-space: nowrap;
	padding-right: 64px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.2px;
}
@keyframes agribid-marquee-rtl {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}
@media (max-width: 767px) {
	:root { --agribid-marquee-height: 34px; }
	.agribid-marquee-bar__text { font-size: 11px; }
}

/* =============================================
   CRICKET TICKET GIVEAWAY POPUP
   ============================================= */
.cp-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99998;
}
.cp-overlay.cp-visible { display: block; }

.cricket-popup {
	position: fixed;
	left: -360px;
	bottom: 12px;
	top: auto;
	transform: none;
	width: 300px;
	max-height: 88vh;
	overflow-y: auto;
	background: linear-gradient(160deg, #1b3220 0%, #263c28 60%, #0f1f14 100%);
	border-radius: 0 16px 16px 0;
	border-top: 1px solid rgba(107, 168, 90, 0.25);
	border-right: 1px solid rgba(107, 168, 90, 0.25);
	border-bottom: 1px solid rgba(107, 168, 90, 0.25);
	border-left: 4px solid #f0a500;
	box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
	z-index: 99999;
	transition: left 0.55s cubic-bezier(0.34, 1.26, 0.64, 1);
	scrollbar-width: none;
}
.cricket-popup::-webkit-scrollbar { display: none; }
.cricket-popup.cp-open { left: 0; }

@keyframes cp-bounce {
	0%, 100% { transform: scale(1); }
	50%       { transform: scale(1.012); }
}
.cricket-popup.cp-open { animation: cp-bounce 0.6s ease 0.55s 1; }

.cp-ribbon {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: linear-gradient(90deg, #f0a500, #ffd166);
	color: #1a1a1a;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	padding: 7px 4px;
	border-radius: 0 14px 0 0;
	box-sizing: border-box;
}

.cp-close {
	width: 22px;
	height: 22px;
	min-width: 22px;
	background: rgba(26, 26, 26, 0.18);
	border: 1.5px solid rgba(26, 26, 26, 0.3);
	border-radius: 50%;
	color: #1a1a1a;
	font-size: 11px;
	font-weight: 900;
	line-height: 20px;
	text-align: center;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	flex-shrink: 0;
	position: static;
}
.cp-close:hover {
	background: rgba(26, 26, 26, 0.35);
	transform: rotate(90deg);
}

.cp-body {
	position: relative;
	padding: 6px 8px;
}

.cp-promo-zone {
	position: relative;
	border-radius: 8px;
}
.cp-promo-img-wrap {
	position: relative;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(240, 165, 0, 0.22);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	line-height: 0;
}
.cp-promo-img {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}
.cp-promo-zone .cp-btn {
	position: absolute;
	bottom: 8px;
	left: 4px;
	right: 4px;
	width: auto;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(110%);
	transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), visibility 0.35s ease;
	z-index: 5;
}
.cp-promo-zone:hover .cp-btn,
.cp-promo-zone.cp-promo-zone--active .cp-btn {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}
.cp-promo-zone:hover .cp-btn:hover,
.cp-promo-zone.cp-promo-zone--active .cp-btn:hover {
	transform: translateY(-2px);
}

.cp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: 100%;
	background: linear-gradient(90deg, #f0a500 0%, #ffd166 100%);
	color: #1a1a1a;
	font-size: 13px;
	font-weight: 800;
	text-align: center;
	padding: 9px 16px;
	border-radius: 8px;
	text-decoration: none;
	letter-spacing: 0.3px;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 3px 16px rgba(240, 165, 0, 0.35);
}
.cp-btn::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -60%;
	width: 40%;
	height: 200%;
	background: rgba(255, 255, 255, 0.3);
	transform: skewX(-20deg);
	animation: cp-shine 3s ease infinite;
}
@keyframes cp-shine {
	0%   { left: -60%; }
	60%  { left: 130%; }
	100% { left: 130%; }
}
.cp-btn:hover {
	color: #1a1a1a;
	transform: translateY(-2px);
	box-shadow: 0 7px 22px rgba(240, 165, 0, 0.5);
	text-decoration: none;
}
.cp-btn:active { transform: translateY(0); }

@keyframes cp-glow {
	0%, 100% { box-shadow: 8px 0 40px rgba(0,0,0,0.6), 0 0 0 rgba(240,165,0,0); }
	50%       { box-shadow: 8px 0 40px rgba(0,0,0,0.6), 0 0 18px rgba(240,165,0,0.18); }
}
.cricket-popup.cp-open { animation: cp-glow 3s ease infinite, cp-bounce 0.6s ease 0.55s 1; }

#cp-confetti {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 100000;
	display: none;
}

@media (max-width: 767px) {
	.cricket-popup {
		left: 0 !important;
		bottom: -100%;
		top: auto;
		transform: none;
		width: 100%;
		max-width: 100%;
		border-radius: 16px 16px 0 0;
		border-left: none;
		border-top: 4px solid #f0a500;
		border-right: 1px solid rgba(107, 168, 90, 0.25);
		border-bottom: none;
		max-height: 85vh;
		transition: bottom 0.5s cubic-bezier(0.34, 1.2, 0.64, 1);
	}
	.cricket-popup.cp-open {
		bottom: 0;
		animation: none;
	}
	.cp-ribbon { border-radius: 14px 14px 0 0; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.cricket-popup { width: 280px; }
}
