/**
 * Deluxe Cookie Popup – overrides for Cookie Law Info consent bar.
 * Design tokens: primary #FBBF24, chocolate #3C1F0C, brand-red #E11D48.
 */

/* ---- Overlay: blur background when bar is visible; do not block clicks to bar ---- */
.cky-overlay:not(.cky-hide) {
	background: rgba(0, 0, 0, 0.3) !important;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	pointer-events: none !important;
}

/* ---- Hidden state: honour CookieYes hide class so the container does not block other popups ---- */
.cky-consent-container.cky-hide {
	display: none !important;
}

/* ---- Container: full-width, bottom, flex; above overlay so bar/buttons receive clicks ---- */
.cky-consent-container {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	bottom: 0 !important;
	left: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-end !important;
	align-items: stretch !important;
	box-sizing: border-box !important;
	z-index: 100000000 !important;
}

/* Optional: pseudo-backdrop blur behind bar when container is visible */
.cky-consent-container:not(.cky-hide)::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	pointer-events: none;
	z-index: -1;
}

/* ---- Consent bar: glass-morphism ---- */
.cky-consent-container .cky-consent-bar {
	position: relative !important;
	background: rgba(30, 15, 5, 0.85) !important;
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: none !important;
	border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 2.5rem 2.5rem 0 0 !important;
	padding: 1.5rem 1.5rem 1.5rem !important;
	padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)) !important;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2) !important;
	box-sizing: border-box !important;
}

/* Drag handle pill at top of bar */
.cky-consent-bar::before {
	content: '';
	position: absolute;
	top: 1rem;
	left: 50%;
	transform: translateX(-50%);
	width: 3rem;
	height: 4px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 9999px;
}

/* ---- Notice layout ---- */
.cky-consent-bar .cky-notice {
	padding: 0;
	margin: 0;
}

/* Hide default close button if present; we keep drag handle only */
.cky-consent-bar .cky-banner-btn-close {
	opacity: 0.5;
}

/* ---- Title: Playfair Display, large, white ---- */
.cky-consent-bar .cky-title {
	font-family: 'Playfair Display', serif !important;
	font-weight: 700 !important;
	font-size: 1.5rem !important;
	line-height: 1.2 !important;
	color: #fff !important;
	margin: 0 0 0.75rem 0 !important;
}

/* ---- Description: Montserrat, gray-300 ---- */
.cky-consent-bar .cky-notice-des,
.cky-consent-bar .cky-notice-des p {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 13px !important;
	line-height: 1.5 !important;
	color: #d1d5db !important;
	margin: 0 0 1rem 0 !important;
	font-weight: 400 !important;
}

.cky-consent-bar .cky-notice-des p:last-child {
	margin-bottom: 0 !important;
}

/* ---- Notice group: column layout, button order ---- */
.cky-consent-bar .cky-notice-group {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	justify-content: flex-start !important;
}

.cky-consent-bar .cky-notice-btn-wrapper {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0.75rem !important;
	margin: 0 !important;
	margin-top: 0.5rem !important;
}

/* Order: Accept first, then two-column row for Terms & Reject */
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-accept {
	order: 1;
}
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-customize,
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-reject {
	order: 2;
}

/* Two-column row for secondary buttons */
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-customize,
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-reject {
	flex: 1;
	min-width: 0;
}

/* Two-column row for Terms & Reject (Accept stays full width above) */
.cky-consent-bar .cky-notice-btn-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto auto;
	gap: 0.75rem !important;
}
.cky-consent-bar .cky-notice-btn-wrapper .cky-btn-accept {
	grid-column: 1 / -1;
}

/* ---- Primary button (Confirm / Accept) ---- */
.cky-consent-bar .cky-btn.cky-btn-accept {
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 800 !important;
	font-size: 1.125rem !important;
	line-height: 1.25 !important;
	color: #3C1F0C !important;
	background: #FBBF24 !important;
	border: none !important;
	border-radius: 0.75rem !important;
	padding: 1rem 1.5rem !important;
	width: 100% !important;
	min-height: auto !important;
	box-shadow: 0 4px 25px rgba(251, 191, 36, 0.4) !important;
	text-shadow: none !important;
	cursor: pointer !important;
	position: relative !important;
	overflow: hidden !important;
	transition: box-shadow 0.15s ease !important;
}
.cky-consent-bar .cky-btn.cky-btn-accept:hover {
	opacity: 1 !important;
	box-shadow: 0 4px 30px rgba(251, 191, 36, 0.5) !important;
}
.cky-consent-bar .cky-btn.cky-btn-accept:active {
	opacity: 1 !important;
}

/* Shimmer effect on Confirm */
.cky-consent-bar .cky-btn.cky-btn-accept::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		to right,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, 0.35) 50%,
		rgba(255, 255, 255, 0) 100%
	);
	transform: skewX(-25deg);
	pointer-events: none;
	animation: deluxe-cookie-shimmer 4s ease-in-out infinite;
}
@keyframes deluxe-cookie-shimmer {
	0%, 100% { transform: skewX(-25deg) translateX(-100%); }
	50% { transform: skewX(-25deg) translateX(200%); }
}

/* Shake when user swipes down (class added by JS) */
.cky-consent-bar .cky-btn.cky-btn-accept.deluxe-cookie-shake {
	animation: deluxe-cookie-shake 0.5s ease-in-out;
}
@keyframes deluxe-cookie-shake {
	0%, 100% { transform: translateX(0); }
	15% { transform: translateX(-6px); }
	30% { transform: translateX(6px); }
	45% { transform: translateX(-4px); }
	60% { transform: translateX(4px); }
	75% { transform: translateX(-2px); }
}

/* ---- Secondary buttons (Terms & Cookies, Reject all) ---- */
.cky-consent-bar .cky-btn.cky-btn-customize,
.cky-consent-bar .cky-btn.cky-btn-reject {
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600 !important;
	font-size: 0.75rem !important;
	line-height: 1.25 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	background: transparent !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important;
	border-radius: 0.75rem !important;
	padding: 0.75rem 1rem !important;
	min-height: auto !important;
	text-shadow: none !important;
	box-shadow: none !important;
	transition: background 0.15s ease !important;
}
/* View terms & cookies and Reject cookies: same white outline style */
.cky-consent-bar .cky-btn.cky-btn-customize,
.cky-consent-bar .cky-btn.cky-btn-reject {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
}
.cky-consent-bar .cky-btn.cky-btn-customize:hover,
.cky-consent-bar .cky-btn.cky-btn-reject:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	opacity: 1 !important;
}

/* ---- Enter animation: bar slides up from bottom ---- */
.cky-consent-container.cky-consent-container:not(.cky-hide) .cky-consent-bar {
	animation: deluxe-cookie-slide-up 0.4s ease-out;
}
@keyframes deluxe-cookie-slide-up {
	from {
		transform: translateY(100%);
		opacity: 0.9;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* ---- Compliance footer (injected by JS): muted row ---- */
.cky-consent-bar .deluxe-cookie-compliance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0.5rem 0;
	margin-top: 0.5rem;
	opacity: 0.4;
	filter: grayscale(1);
}
.cky-consent-bar .deluxe-cookie-compliance-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}
.cky-consent-bar .deluxe-cookie-compliance-item .material-symbols-outlined {
	font-size: 1.25rem;
	color: #d1d5db;
}
.cky-consent-bar .deluxe-cookie-compliance-item span:last-child {
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	color: #9ca3af;
	font-family: 'Montserrat', sans-serif;
}

/* ---- Optional: Casino Luks header (injected by JS) ---- */
.cky-consent-bar .deluxe-cookie-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
}
.cky-consent-bar .deluxe-cookie-header-badges {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.cky-consent-bar .deluxe-cookie-badge {
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background: #E11D48;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	font-family: 'Montserrat', sans-serif;
	line-height: 1;
	flex-shrink: 0;
}
.cky-consent-bar .deluxe-cookie-badge-jackpot {
	background: #E11D48;
	color: #fff;
	padding: 0;
}
/* Jackpot icon: same visual height as 18+ (12px) */
.cky-consent-bar .deluxe-cookie-jackpot-icon {
	width: 12px;
	height: 12px;
	display: block;
}
.cky-consent-bar .deluxe-cookie-title-text {
	font-family: 'Playfair Display', serif !important;
	font-weight: 700 !important;
	font-size: 1.875rem !important;
	line-height: 1.2 !important;
	color: #fff;
}
.cky-consent-bar .deluxe-cookie-title-text .gold {
	color: #FBBF24;
}

/* ---- Second screen (preference/detail): button styles inline with main screen ---- */
.cky-prefrence-btn-wrapper,
.cky-prefrence-btn-wrapper[data-cky-tag="detail-buttons"] {
	display: flex !important;
	flex-wrap: wrap;
	gap: 0.75rem !important;
	align-items: stretch;
	justify-content: flex-start;
}
/* Reject on preference screen: same white outline as View terms & cookies */
.cky-prefrence-btn-wrapper .cky-btn-reject,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-reject-button"] {
	color: #fff !important;
	background-color: transparent !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 0.75rem !important;
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600 !important;
	transition: background 0.15s ease, opacity 0.15s ease !important;
}
.cky-prefrence-btn-wrapper .cky-btn-reject:hover,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-reject-button"]:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	opacity: 1 !important;
}
.cky-prefrence-btn-wrapper .cky-btn-preferences,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-save-button"] {
	color: #fff !important;
	background-color: transparent !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 0.75rem !important;
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 600 !important;
	transition: background 0.15s ease, opacity 0.15s ease !important;
}
.cky-prefrence-btn-wrapper .cky-btn-preferences:hover,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-save-button"]:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	opacity: 1 !important;
}
.cky-prefrence-btn-wrapper .cky-btn-accept,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-accept-button"] {
	color: #000000 !important;
	background-color: #FDBF1A !important;
	border-color: #FFFFFF !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-radius: 0.75rem !important;
	font-family: 'Montserrat', sans-serif !important;
	font-weight: 800 !important;
	transition: box-shadow 0.15s ease !important;
	transform: none !important;
}
.cky-prefrence-btn-wrapper .cky-btn-accept:hover,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-accept-button"]:hover {
	box-shadow: 0 4px 30px rgba(253, 191, 26, 0.5) !important;
	opacity: 1 !important;
	transform: none !important;
}
.cky-prefrence-btn-wrapper .cky-btn-accept:active,
.cky-prefrence-btn-wrapper [data-cky-tag="detail-accept-button"]:active {
	transform: none !important;
}
