/* ==========================================================================
   Cookie Consent Banner & Modal Styles
   ========================================================================== */

/* Floating Launcher Button */
.bt-cookie-launcher {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(3, 5, 11, 0.75);
	backdrop-filter: blur(8px);
	border: 1px solid var(--bt-line, rgba(255, 255, 255, 0.15));
	color: var(--bt-text, #f7fbff);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999998;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bt-cookie-launcher:hover {
	transform: scale(1.1) rotate(15deg);
	border-color: var(--bt-cyan, #66f4ff);
	color: var(--bt-cyan, #66f4ff);
	box-shadow: 0 0 15px rgba(102, 244, 255, 0.4);
}

.bt-cookie-launcher svg {
	width: 26px;
	height: 26px;
	display: block;
}

/* Floating Banner */
.bt-cookie-banner {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: calc(100% - 40px);
	max-width: 850px;
	background: rgba(3, 5, 11, 0.82);
	backdrop-filter: blur(16px);
	border: 1px solid var(--bt-line, rgba(255, 255, 255, 0.16));
	border-radius: 16px;
	padding: 20px 24px;
	z-index: 999999;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
	animation: bt-fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bt-cookie-banner-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bt-cookie-banner-text {
	margin: 0;
	color: var(--bt-muted, rgba(231, 240, 255, 0.8));
	font-family: var(--bt-menu-font, sans-serif);
	font-size: clamp(0.78rem, 0.74rem + 0.16vw, 0.88rem);
	line-height: 1.6;
}

.bt-cookie-banner-link {
	color: var(--bt-cyan, #66f4ff);
	text-decoration: none;
	font-weight: 600;
	transition: opacity 0.2s ease;
}

.bt-cookie-banner-link:hover {
	text-decoration: underline;
}

.bt-cookie-banner-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Base Cookie Buttons */
.bt-cookie-btn {
	font-family: var(--bt-menu-font, sans-serif);
	font-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
	font-weight: 700;
	padding: 10px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.25s ease;
	white-space: nowrap;
}

.bt-cookie-btn--primary {
	background: var(--bt-cyan, #66f4ff);
	color: #03050b;
}

.bt-cookie-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 244, 255, 0.35);
}

.bt-cookie-btn--secondary {
	background: rgba(255, 255, 255, 0.08);
	border-color: var(--bt-line, rgba(255, 255, 255, 0.15));
	color: var(--bt-text, #f7fbff);
}

.bt-cookie-btn--secondary:hover {
	background: rgba(255, 255, 255, 0.14);
}

.bt-cookie-btn--ghost {
	background: transparent;
	color: var(--bt-muted, rgba(231, 240, 255, 0.8));
	border-color: transparent;
	text-decoration: underline;
}

.bt-cookie-btn--ghost:hover {
	color: var(--bt-text, #f7fbff);
}

.bt-cookie-btn--full {
	width: 100%;
}

/* Preference Modal Overlay */
.bt-cookie-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(2, 4, 9, 0.65);
	backdrop-filter: blur(6px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000000;
	padding: 20px;
	animation: bt-fade-in 0.3s ease forwards;
}

/* Modal Content Card */
.bt-cookie-modal {
	background: rgba(3, 5, 11, 0.9);
	backdrop-filter: blur(20px);
	border: 1px solid var(--bt-line, rgba(255, 255, 255, 0.16));
	border-radius: 20px;
	width: 100%;
	max-width: 520px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	animation: bt-scale-in 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.bt-cookie-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--bt-line, rgba(255, 255, 255, 0.12));
}

.bt-cookie-modal-header h3 {
	margin: 0;
	font-family: var(--bt-menu-font, sans-serif);
	color: var(--bt-text, #f7fbff);
	font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
	font-weight: 760;
}

.bt-cookie-modal-close {
	background: transparent;
	border: none;
	color: var(--bt-muted, rgba(231, 240, 255, 0.6));
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
}

.bt-cookie-modal-close:hover {
	color: var(--bt-text, #f7fbff);
}

.bt-cookie-modal-body {
	padding: 24px;
	overflow-y: auto;
	max-height: 60vh;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.bt-cookie-modal-desc {
	margin: 0 0 8px 0;
	color: var(--bt-muted, rgba(231, 240, 255, 0.72));
	font-family: var(--bt-menu-font, sans-serif);
	font-size: clamp(0.78rem, 0.74rem + 0.16vw, 0.88rem);
	line-height: 1.55;
}

/* Category Item block */
.bt-cookie-pref-item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: 16px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	transition: background 0.25s ease;
}

.bt-cookie-pref-item:hover {
	background: rgba(255, 255, 255, 0.06);
}

.bt-cookie-pref-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bt-cookie-pref-title {
	font-family: var(--bt-menu-font, sans-serif);
	font-weight: 760;
	color: var(--bt-text, #f7fbff);
	font-size: clamp(0.82rem, 0.8rem + 0.12vw, 0.94rem);
}

.bt-cookie-pref-desc {
	margin: 0;
	font-family: var(--bt-menu-font, sans-serif);
	color: var(--bt-muted, rgba(231, 240, 255, 0.64));
	font-size: clamp(0.72rem, 0.7rem + 0.1vw, 0.8rem);
	line-height: 1.5;
}

.bt-cookie-always-on {
	font-family: var(--bt-menu-font, sans-serif);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--bt-cyan, #66f4ff);
	background: rgba(102, 244, 255, 0.1);
	padding: 4px 10px;
	border-radius: 99px;
	white-space: nowrap;
}

/* Toggle Switches */
.bt-cookie-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.bt-cookie-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.bt-cookie-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background-color: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.1);
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 34px;
}

.bt-cookie-slider:before {
	position: absolute;
	content: "";
	height: 16px;
	width: 16px;
	left: 3px;
	bottom: 3px;
	background-color: #f7fbff;
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 50%;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bt-cookie-switch input:checked + .bt-cookie-slider {
	background-color: var(--bt-cyan, #66f4ff);
}

.bt-cookie-switch input:checked + .bt-cookie-slider:before {
	transform: translateX(20px);
	background-color: #03050b;
}

.bt-cookie-modal-footer {
	padding: 20px 24px;
	border-top: 1px solid var(--bt-line, rgba(255, 255, 255, 0.12));
}

/* Responsive Overrides (Mobile) */
@media (max-width: 600px) {
	.bt-cookie-banner {
		padding: 16px 20px;
	}
	
	.bt-cookie-banner-buttons {
		flex-direction: column;
	}
	
	.bt-cookie-btn {
		width: 100%;
		text-align: center;
	}

	.bt-cookie-pref-item {
		flex-direction: column;
		gap: 12px;
	}
}

/* Animation Keyframes */
@keyframes bt-fade-in-up {
	from {
		opacity: 0;
		transform: translate(-50%, 40px);
	}
	to {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

@keyframes bt-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bt-scale-in {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Light Theme Overrides */
body.botmotics-theme-light .bt-cookie-launcher,
html.botmotics-theme-light .bt-cookie-launcher {
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(17, 30, 55, 0.13);
	color: #0c1527;
}

body.botmotics-theme-light .bt-cookie-launcher:hover,
html.botmotics-theme-light .bt-cookie-launcher:hover {
	color: var(--bt-cyan, #66f4ff);
	border-color: var(--bt-cyan, #66f4ff);
}

body.botmotics-theme-light .bt-cookie-banner,
html.botmotics-theme-light .bt-cookie-banner {
	background: rgba(255, 255, 255, 0.88);
	border-color: rgba(17, 30, 55, 0.14);
	box-shadow: 0 12px 40px rgba(35, 67, 126, 0.18);
}

body.botmotics-theme-light .bt-cookie-banner-text,
html.botmotics-theme-light .bt-cookie-banner-text {
	color: rgba(17, 30, 55, 0.82);
}

body.botmotics-theme-light .bt-cookie-btn--secondary,
html.botmotics-theme-light .bt-cookie-btn--secondary {
	background: rgba(17, 30, 55, 0.05);
	border-color: rgba(17, 30, 55, 0.12);
	color: #0c1527;
}

body.botmotics-theme-light .bt-cookie-btn--secondary:hover,
html.botmotics-theme-light .bt-cookie-btn--secondary:hover {
	background: rgba(17, 30, 55, 0.1);
}

body.botmotics-theme-light .bt-cookie-btn--ghost,
html.botmotics-theme-light .bt-cookie-btn--ghost {
	color: rgba(17, 30, 55, 0.7);
}

body.botmotics-theme-light .bt-cookie-modal,
html.botmotics-theme-light .bt-cookie-modal {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(17, 30, 55, 0.14);
	box-shadow: 0 24px 64px rgba(35, 67, 126, 0.2);
}

body.botmotics-theme-light .bt-cookie-modal-header,
html.botmotics-theme-light .bt-cookie-modal-header {
	border-bottom: 1px solid rgba(17, 30, 55, 0.1);
}

body.botmotics-theme-light .bt-cookie-modal-header h3,
html.botmotics-theme-light .bt-cookie-modal-header h3 {
	color: #0c1527;
}

body.botmotics-theme-light .bt-cookie-modal-desc,
html.botmotics-theme-light .bt-cookie-modal-desc {
	color: rgba(17, 30, 55, 0.76);
}

body.botmotics-theme-light .bt-cookie-pref-item,
html.botmotics-theme-light .bt-cookie-pref-item {
	background: rgba(17, 30, 55, 0.03);
	border-color: rgba(17, 30, 55, 0.05);
}

body.botmotics-theme-light .bt-cookie-pref-item:hover,
html.botmotics-theme-light .bt-cookie-pref-item:hover {
	background: rgba(17, 30, 55, 0.05);
}

body.botmotics-theme-light .bt-cookie-pref-title,
html.botmotics-theme-light .bt-cookie-pref-title {
	color: #0c1527;
}

body.botmotics-theme-light .bt-cookie-pref-desc,
html.botmotics-theme-light .bt-cookie-pref-desc {
	color: rgba(17, 30, 55, 0.68);
}

body.botmotics-theme-light .bt-cookie-slider,
html.botmotics-theme-light .bt-cookie-slider {
	background-color: rgba(17, 30, 55, 0.12);
	border: 1px solid rgba(17, 30, 55, 0.08);
}

body.botmotics-theme-light .bt-cookie-slider:before,
html.botmotics-theme-light .bt-cookie-slider:before {
	background-color: #ffffff;
}

body.botmotics-theme-light .bt-cookie-switch input:checked + .bt-cookie-slider:before,
html.botmotics-theme-light .bt-cookie-switch input:checked + .bt-cookie-slider:before {
	background-color: #f7fbff;
}

body.botmotics-theme-light .bt-cookie-modal-footer,
html.botmotics-theme-light .bt-cookie-modal-footer {
	border-top: 1px solid rgba(17, 30, 55, 0.1);
}

/* Cookies Table in Legal Documents */
.bt-cookies-table-container {
	margin: 20px 0;
	width: 100%;
	overflow-x: auto;
	border-radius: 8px;
	border: 1px solid var(--bt-line, rgba(255, 255, 255, 0.15));
}
.bt-cookies-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
	text-align: left;
	font-family: var(--bt-menu-font, sans-serif);
}
.bt-cookies-table th,
.bt-cookies-table td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--bt-line, rgba(255, 255, 255, 0.1));
}
.bt-cookies-table th {
	background: rgba(255, 255, 255, 0.03);
	color: var(--bt-text, #f7fbff);
	font-weight: 700;
}
.bt-cookies-table td {
	color: var(--bt-muted, rgba(231, 240, 255, 0.75));
}
.bt-cookies-table tr:last-child td {
	border-bottom: none;
}
.bt-cookies-table .badge {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
}
.bt-cookies-table .badge-necessary { background: var(--bt-cyan, #66f4ff); color: #03050b; }
.bt-cookies-table .badge-analytics { background: #46b450; color: #fff; }
.bt-cookies-table .badge-marketing { background: #cca300; color: #fff; }

/* Light Theme Overrides for Table */
body.botmotics-theme-light .bt-cookies-table th,
html.botmotics-theme-light .bt-cookies-table th {
	background: rgba(17, 30, 55, 0.02);
	color: #0c1527;
}
body.botmotics-theme-light .bt-cookies-table td,
html.botmotics-theme-light .bt-cookies-table td {
	color: rgba(17, 30, 55, 0.8);
}
body.botmotics-theme-light .bt-cookies-table .badge-necessary,
html.botmotics-theme-light .bt-cookies-table .badge-necessary {
	background: #00aec2;
	color: #fff;
}

/* ==========================================================================
   White Premium Theme Overrides
   ========================================================================== */
body.botmotics-theme-white-premium .bt-cookie-launcher,
html.botmotics-theme-white-premium .bt-cookie-launcher {
	background: rgba(255, 255, 255, 0.82) !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
	color: #0f172a !important;
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookie-launcher:hover,
html.botmotics-theme-white-premium .bt-cookie-launcher:hover {
	color: #2563eb !important;
	border-color: #2563eb !important;
	box-shadow: 0 0 15px rgba(37, 99, 235, 0.2) !important;
}

body.botmotics-theme-white-premium .bt-cookie-banner,
html.botmotics-theme-white-premium .bt-cookie-banner {
	background: rgba(255, 255, 255, 0.92) !important;
	backdrop-filter: blur(16px) !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
	box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookie-banner-text,
html.botmotics-theme-white-premium .bt-cookie-banner-text {
	color: #475569 !important;
}

body.botmotics-theme-white-premium .bt-cookie-banner-link,
html.botmotics-theme-white-premium .bt-cookie-banner-link {
	color: #2563eb !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--primary,
html.botmotics-theme-white-premium .bt-cookie-btn--primary {
	background: #2563eb !important;
	color: #ffffff !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--primary:hover,
html.botmotics-theme-white-premium .bt-cookie-btn--primary:hover {
	background: #1d4ed8 !important;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--secondary,
html.botmotics-theme-white-premium .bt-cookie-btn--secondary {
	background: rgba(15, 23, 42, 0.03) !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--secondary:hover,
html.botmotics-theme-white-premium .bt-cookie-btn--secondary:hover {
	background: rgba(15, 23, 42, 0.06) !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--ghost,
html.botmotics-theme-white-premium .bt-cookie-btn--ghost {
	color: #475569 !important;
}

body.botmotics-theme-white-premium .bt-cookie-btn--ghost:hover,
html.botmotics-theme-white-premium .bt-cookie-btn--ghost:hover {
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-overlay,
html.botmotics-theme-white-premium .bt-cookie-modal-overlay {
	background: rgba(15, 23, 42, 0.45) !important;
	backdrop-filter: blur(6px) !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal,
html.botmotics-theme-white-premium .bt-cookie-modal {
	background: rgba(255, 255, 255, 0.96) !important;
	backdrop-filter: blur(20px) !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12) !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-header,
html.botmotics-theme-white-premium .bt-cookie-modal-header {
	border-bottom-color: rgba(15, 23, 42, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-header h3,
html.botmotics-theme-white-premium .bt-cookie-modal-header h3 {
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-close,
html.botmotics-theme-white-premium .bt-cookie-modal-close {
	color: #475569 !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-close:hover,
html.botmotics-theme-white-premium .bt-cookie-modal-close:hover {
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-desc,
html.botmotics-theme-white-premium .bt-cookie-modal-desc {
	color: #475569 !important;
}

body.botmotics-theme-white-premium .bt-cookie-pref-item,
html.botmotics-theme-white-premium .bt-cookie-pref-item {
	background: rgba(15, 23, 42, 0.02) !important;
	border-color: rgba(15, 23, 42, 0.05) !important;
}

body.botmotics-theme-white-premium .bt-cookie-pref-item:hover,
html.botmotics-theme-white-premium .bt-cookie-pref-item:hover {
	background: rgba(15, 23, 42, 0.04) !important;
}

body.botmotics-theme-white-premium .bt-cookie-pref-title,
html.botmotics-theme-white-premium .bt-cookie-pref-title {
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookie-pref-desc,
html.botmotics-theme-white-premium .bt-cookie-pref-desc {
	color: #475569 !important;
}

body.botmotics-theme-white-premium .bt-cookie-always-on,
html.botmotics-theme-white-premium .bt-cookie-always-on {
	color: #2563eb !important;
	background: rgba(37, 99, 235, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookie-slider,
html.botmotics-theme-white-premium .bt-cookie-slider {
	background-color: rgba(15, 23, 42, 0.1) !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookie-slider:before,
html.botmotics-theme-white-premium .bt-cookie-slider:before {
	background-color: #ffffff !important;
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1) !important;
}

body.botmotics-theme-white-premium .bt-cookie-switch input:checked + .bt-cookie-slider,
html.botmotics-theme-white-premium .bt-cookie-switch input:checked + .bt-cookie-slider {
	background-color: #2563eb !important;
}

body.botmotics-theme-white-premium .bt-cookie-switch input:checked + .bt-cookie-slider:before,
html.botmotics-theme-white-premium .bt-cookie-switch input:checked + .bt-cookie-slider:before {
	background-color: #ffffff !important;
}

body.botmotics-theme-white-premium .bt-cookie-modal-footer,
html.botmotics-theme-white-premium .bt-cookie-modal-footer {
	border-top-color: rgba(15, 23, 42, 0.08) !important;
}

/* Cookies Table in Legal Documents */
body.botmotics-theme-white-premium .bt-cookies-table-container,
html.botmotics-theme-white-premium .bt-cookies-table-container {
	border-color: rgba(15, 23, 42, 0.08) !important;
}

body.botmotics-theme-white-premium .bt-cookies-table th,
html.botmotics-theme-white-premium .bt-cookies-table th {
	background: rgba(15, 23, 42, 0.02) !important;
	color: #0f172a !important;
}

body.botmotics-theme-white-premium .bt-cookies-table td,
html.botmotics-theme-white-premium .bt-cookies-table td {
	color: #475569 !important;
	border-bottom-color: rgba(15, 23, 42, 0.05) !important;
}

body.botmotics-theme-white-premium .bt-cookies-table .badge-necessary,
html.botmotics-theme-white-premium .bt-cookies-table .badge-necessary {
	background: #2563eb !important;
	color: #ffffff !important;
}

body.botmotics-theme-white-premium .bt-cookies-table .badge-analytics,
html.botmotics-theme-white-premium .bt-cookies-table .badge-analytics {
	background: #10b981 !important;
	color: #ffffff !important;
}

body.botmotics-theme-white-premium .bt-cookies-table .badge-marketing,
html.botmotics-theme-white-premium .bt-cookies-table .badge-marketing {
	background: #f59e0b !important;
	color: #ffffff !important;
}

