/**
 * BestPreviews CookieYes theme overrides.
 * Scoped to CookieYes (.cky-*) only — does not affect other site UI.
 */

:root {
	--bp-cky-bg: #16263a;
	--bp-cky-bg-elevated: #1a2d45;
	--bp-cky-border: #2a3d54;
	--bp-cky-text: #f4f7fa;
	--bp-cky-muted: #9aa8b8;
	--bp-cky-accent: #2bb8a8;
	--bp-cky-accent-hover: #3dcdc0;
	--bp-cky-always: #8bc34a;
	--bp-cky-toggle-off: #3a4a5c;
	--bp-cky-radius: 16px;
	--bp-cky-btn-radius: 999px;
}

/* -------------------------------------------------------------------------
   Banner (first layer)
   ------------------------------------------------------------------------- */

.cky-consent-container {
	padding: 12px !important;
	box-sizing: border-box !important;
}

.cky-consent-container .cky-consent-bar {
	background: var(--bp-cky-bg) !important;
	border: 1px solid var(--bp-cky-border) !important;
	border-radius: var(--bp-cky-radius) !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35) !important;
	padding: 18px 22px !important;
	max-width: 1280px !important;
	margin: 0 auto !important;
}

.cky-consent-container .cky-notice {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 20px !important;
	width: 100% !important;
}

.cky-consent-container .cky-title,
.cky-consent-container [data-cky-tag="title"] {
	display: none !important;
}

.cky-consent-container .cky-notice-group,
.cky-consent-container .cky-notice-des,
.cky-consent-container [data-cky-tag="description"] {
	flex: 1 1 auto !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--bp-cky-text) !important;
	font-size: 15px !important;
	line-height: 1.45 !important;
	font-weight: 400 !important;
}

.cky-consent-container [data-cky-tag="description"] p {
	margin: 0 !important;
	color: inherit !important;
}

.cky-consent-container .cky-notice-btn-wrapper,
.cky-consent-container .cky-notice-buttons {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 12px !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
}

.cky-consent-container .cky-btn,
.cky-consent-container .cky-btn-accept,
.cky-consent-container .cky-btn-customize,
.cky-consent-container .cky-btn-reject {
	border-radius: 999px !important;
	border: 1.5px solid #13B3A3 !important;
	background: transparent !important;
	color: #13B3A3 !important;
	box-shadow: none !important;
	min-height: 42px !important;
	padding: 11px 22px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-shadow: none !important;
	white-space: nowrap !important;
}

.cky-consent-container .cky-btn:hover,
.cky-consent-container .cky-btn:focus {
	border-color: var(--bp-cky-accent-hover) !important;
	color: var(--bp-cky-accent-hover) !important;
	background: rgba(43, 184, 168, 0.08) !important;
}

.cky-consent-container .cky-btn-reject,
.cky-consent-container [data-cky-tag="reject-button"],
.cky-consent-container [data-cky-tag="readmore-button"],
.cky-consent-container .cky-banner-btn-close {
	display: none !important;
}

/* Desktop button order: Manage Preferences, then Accept */
.cky-consent-container .cky-btn-customize,
.cky-consent-container [data-cky-tag="settings-button"] {
	order: 1 !important;
}

.cky-consent-container .cky-btn-accept,
.cky-consent-container [data-cky-tag="accept-button"] {
	order: 2 !important;
}

/* -------------------------------------------------------------------------
   Preference centre
   ------------------------------------------------------------------------- */

/* Match Figma: wider centred card (~560px), not the narrow CookieYes default. */
.cky-modal,
.cky-modal.cky-modal-open {
	max-width: 780px !important;
	width: calc(100% - 48px) !important;
	margin: 0 auto !important;
	border-radius: 8px !important;
	overflow: hidden !important;
}
.cky-preference-header .cky-btn-close img{
	height: 12px !important;
	width: 12px !important;
}

.cky-modal .cky-preference-center,
.cky-modal-open .cky-preference-center,
[data-cky-tag="detail"].cky-preference-center,
.cky-preference-center {
	background: var(--bp-cky-bg) !important;
	border: 1px solid var(--bp-cky-border) !important;
	border-radius: 8px !important;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45) !important;
	color: var(--bp-cky-text) !important;
	max-width: 100% !important;
	width: 100% !important;
	padding: 0 !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
}

.cky-preference-center .cky-preference-header,
.cky-preference-center .cky-box-header,
.cky-preference-center [data-cky-tag="detail-title"] {
	color: #fff !important;
	font-size: 18px !important;
	font-weight: 600 !important;
	margin: 0 !important;
}

.cky-preference-center .cky-preference-header,
.cky-preference-center .cky-box-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 16px 16px 10px !important;
	border-bottom: none !important;
	background: transparent !important;
}
.cky-btn{
	margin:0px !important;
}

.cky-preference-center .cky-btn-close,
.cky-preference-center [data-cky-tag="detail-close"] {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	opacity: 0.85 !important;
	filter: invert(1) !important;
}

.cky-preference-center [data-cky-tag="detail-description"],
.cky-preference-center .cky-preference-content-wrapper > .cky-preference-content-wrapper,
.cky-preference-center .cky-show-desc-btn,
.cky-preference-center [data-cky-tag="show-desc-button"],
.cky-preference-center [data-cky-tag="hide-desc-button"],
.cky-preference-center .cky-powered-by,
.cky-preference-center [data-cky-tag="detail-powered-by"],
.cky-preference-center .cky-audit-table,
.cky-preference-center [data-cky-tag="audit-table"],
.cky-preference-center .cky-accordion-chevron,
.cky-preference-center .cky-accordion-body,
.cky-preference-center [data-cky-tag="detail-reject-button"],
.cky-preference-center .cky-btn-reject {
	display: none !important;
}

.cky-preference-center .cky-preference-body,
.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-accordion-wrapper {
	padding-left: 16px !important;
	padding-right: 16px !important;
	background: transparent !important;
	box-sizing: border-box !important;
}
.cky-preference-center .cky-preference-body-wrapper{
	padding-right: 0px !important;
	padding-left: 0px !important;
}
.cky-accordion-wrapper{
	margin:0px !important;
}

.cky-preference-center .cky-preference-body,
.cky-preference-center .cky-preference-content-wrapper {
	padding-top: 4px !important;
	padding-bottom: 8px !important;
}

.cky-preference-center .cky-accordion,
.cky-preference-center .cky-accordion-item {
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 5px 0 !important;
	/* border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important; */
}

.cky-preference-center .cky-accordion:last-child,
.cky-preference-center .cky-accordion-item:last-child {
	border-bottom: none !important;
}

.cky-preference-center .cky-accordion-header-wrapper {
	display: grid !important;
	grid-template-columns: 1fr auto !important;
	grid-template-areas:
		"title control"
		"desc control" !important;
	align-items: center !important;
	column-gap: 12px !important;
	row-gap: 2px !important;
	width: 100% !important;
}

.cky-preference-center .cky-accordion-header {
	display: contents !important;
}

.cky-preference-center .cky-accordion-btn,
.cky-preference-center [data-cky-tag="detail-category-title"] {
	grid-area: title !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 16px !important;
	line-height: 20px !important;
	font-weight: 700 !important;
	padding: 0 !important;
	margin: 0 !important;
	text-align: left !important;
	cursor: default !important;
	pointer-events: none !important;
}

.cky-preference-center .cky-accordion-header-des,
.cky-preference-center [data-cky-tag="detail-category-description"] {
	grid-area: desc !important;
	color: #ffffff !important;
	font-size: 16px !important;
	line-height: 20px !important;
	font-weight: 400 !important;
	margin: 0 !important;
	padding: 0 !important;
}
.cky-footer-shadow{
	background: transparent !important;
	display: none !important;
}

.cky-preference-center .cky-accordion-header-des p,
.cky-preference-center [data-cky-tag="detail-category-description"] p {
	color: inherit !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: Roboto, sans-serif !important;
}

.cky-preference-center .cky-always-active {
	grid-area: control !important;
	color: var(--bp-cky-always) !important;
	font-size: 16px !important;
	line-height: 20px !important;
	font-weight: 700 !important;
	white-space: nowrap !important;
	margin: 0 !important;
	align-self: center !important;
	justify-self: end !important;
}

.cky-preference-center .cky-switch {
	grid-area: control !important;
	margin: 0 !important;
	flex: 0 0 auto !important;
	align-self: center !important;
	justify-self: end !important;
}

.cky-preference-center .cky-switch input[type="checkbox"] {
	width: 44px !important;
	height: 24px !important;
	border-radius: 999px !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	background: #2A4C6E !important;
	border: none !important;
	position: relative !important;
	cursor: pointer !important;
	outline: none !important;
	transition: background 0.2s ease !important;
}

.cky-preference-center .cky-switch input[type="checkbox"]::before {
	content: "" !important;
	position: absolute !important;
	top: 3px !important;
	left: 3px !important;
	width: 18px !important;
	height: 18px !important;
	border-radius: 50% !important;
	background: #fff !important;
	transition: transform 0.2s ease !important;
}

.cky-preference-center .cky-switch input[type="checkbox"]:checked {
	background: #B8F36B !important;
}

.cky-preference-center .cky-switch input[type="checkbox"]:checked::before {
	transform: translateX(20px) !important;
}

.cky-preference-center .cky-preference-footer,
.cky-preference-center .cky-footer-wrapper,

.cky-preference-center [data-cky-tag="detail-buttons"] {
	display: flex !important;
	gap: 8px !important;
	padding: 18px 16px 24px !important;
	border-top: none !important;
	background: transparent !important;
}
.cky-preference-center .cky-prefrence-btn-wrapper{
	padding: 0px !important;
	width:100% !important;
}

.cky-preference-center .cky-btn,
.cky-preference-center .cky-btn-accept,
.cky-preference-center .cky-btn-preferences,
.cky-preference-center [data-cky-tag="detail-accept-button"],
.cky-preference-center [data-cky-tag="detail-save-button"] {
	flex: 1 1 0 !important;
	border-radius: 999px !important;
	border: 1.5px solid #13B3A3 !important;
	background: transparent !important;
	color: #13B3A3 !important;
	box-shadow: none !important;
	min-height: 44px !important;
	padding: 11px 14px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}

.cky-preference-center .cky-btn:hover,
.cky-preference-center .cky-btn:focus {
	border-color: var(--bp-cky-accent-hover) !important;
	color: var(--bp-cky-accent-hover) !important;
	background: rgba(43, 184, 168, 0.08) !important;
}

.cky-overlay {
	background: rgba(6, 12, 20, 0.72) !important;
}

/* -------------------------------------------------------------------------
   Mobile — full-width bottom sheet (match Figma)
   ------------------------------------------------------------------------- */
@media (max-width: 1280px) {
	.cky-consent-container {
		padding: 48px !important;
	}
}
@media (max-width: 900px) {
	.cky-consent-container {
		padding: 24px !important;
	}
}
@media (max-width: 768px) {
	
	.cky-consent-container,
	.cky-consent-container.cky-banner-bottom,
	.cky-consent-container.cky-box-bottom-left,
	.cky-consent-container.cky-box-bottom-right {
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		transform: none !important;
	}

	.cky-consent-container .cky-consent-bar {
		max-width: 100% !important;
		width: 100% !important;
		border-radius: 16px 16px 0 0 !important;
		border-left: none !important;
		border-right: none !important;
		border-bottom: none !important;
		padding: 20px 18px 22px !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	.cky-consent-container .cky-notice {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 16px !important;
		width: 100% !important;
	}

	.cky-consent-container .cky-notice-group {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		width: 100% !important;
		gap: 16px !important;
		margin: 0 !important;
	}

	.cky-consent-container .cky-notice-des,
	.cky-consent-container [data-cky-tag="description"] {
		text-align: left !important;
		font-size: 14px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.cky-consent-container .cky-notice-btn-wrapper,
	.cky-consent-container .cky-notice-buttons {
		display: flex !important;
		flex-direction: column !important;
		width: 100% !important;
		max-width: 100% !important;
		gap: 12px !important;
		margin: 0 !important;
	}

	.cky-consent-container .cky-btn {
		width: 100% !important;
		max-width: 100% !important;
		justify-content: center !important;
		margin: 0 !important;
		box-sizing: border-box !important;
	}

	/* Mobile button order: Accept, then Manage Preferences */
	.cky-consent-container .cky-btn-accept,
	.cky-consent-container [data-cky-tag="accept-button"] {
		order: 1 !important;
	}

	.cky-consent-container .cky-btn-customize,
	.cky-consent-container [data-cky-tag="settings-button"] {
		order: 2 !important;
	}

	/* Kill CookieYes centred modal so preferences become a full-bleed bottom sheet */
	.cky-modal,
	.cky-modal.cky-modal-open {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100vw !important;
		max-width: 100vw !important;
		height: auto !important;
		max-height: 90vh !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: none !important;
		-webkit-transform: none !important;
		box-sizing: border-box !important;
		display: block !important;
		inset-inline: 0 !important;
		border-radius: 8px 8px 0 0 !important;
		overflow: hidden !important;
	}

	.cky-modal .cky-preference-center,
	.cky-modal-open .cky-preference-center,
	[data-cky-tag="detail"].cky-preference-center,
	.cky-preference-center {
		position: relative !important;
		left: 0 !important;
		right: 0 !important;
		bottom: auto !important;
		top: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 100% !important;
		margin: 0 !important;
		transform: none !important;
		-webkit-transform: none !important;
		border-radius: 8px 8px 0 0 !important;
		border-left: none !important;
		border-right: none !important;
		border-bottom: none !important;
		max-height: 90vh !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		box-sizing: border-box !important;
	}

	.cky-preference-center .cky-preference-header,
	.cky-preference-center .cky-box-header {
		padding: 18px 20px 8px !important;
	}

	.cky-preference-center .cky-preference-body,
	.cky-preference-center .cky-preference-body-wrapper,
	.cky-preference-center .cky-preference-content-wrapper,
	.cky-preference-center .cky-accordion-wrapper {
		padding-left: 20px !important;
		padding-right: 20px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.cky-preference-center .cky-preference-footer,
	.cky-preference-center .cky-footer-wrapper,
	.cky-preference-center .cky-prefrence-btn-wrapper,
	.cky-preference-center [data-cky-tag="detail-buttons"] {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 12px !important;
		padding: 16px 20px 22px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.cky-preference-center .cky-btn,
	.cky-preference-center [data-cky-tag="detail-accept-button"],
	.cky-preference-center [data-cky-tag="detail-save-button"] {
		flex: 1 1 0 !important;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
	}
	.cky-custom-brand-logo-wrapper, .cky-notice .cky-title, .cky-notice-des, .cky-notice-btn-wrapper{
		padding: 0px !important;
	}
	.cky-preference-center .cky-accordion-wrapper{
		padding-left: 0px !important;
		padding-right: 0px !important;
	}
	.cky-preference-center .cky-prefrence-btn-wrapper, .cky-preference-center [data-cky-tag="detail-buttons"]{
		padding: 0px !important;
	}
}
