/**
 * Cookie Consent — Front-end styles
 *
 * Covers:
 *   - X-style bottom banner
 *   - Iframe placeholder (click-to-allow)
 *   - BuddyBoss drill-down detail panel toggle list (shared with standalone)
 *   - Standalone /cookies/ page chrome
 *
 * @package BUZEECI
 * @feature cookie-consent
 * @since   10-04-2026
 */

/* ══════════════════════════════════════════════════════════════════════
   X-STYLE BANNER
   ══════════════════════════════════════════════════════════════════════ */

.bzc-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483600;
	background-color: rgb(15, 20, 25);
	color: #fff;
	padding: 24px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	opacity: 0;
	transition: opacity 150ms ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bzc-cc-banner.is-visible {
	opacity: 1;
}

.bzc-cc-banner__text {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 60%;
}

.bzc-cc-banner__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
	margin-bottom: 6px;
}

.bzc-cc-banner__desc {
	font-size: 14px;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.85);
}

.bzc-cc-banner__showmore {
	color: #fff;
	text-decoration: underline;
	margin-left: 4px;
	font-weight: 500;
}

.bzc-cc-banner__showmore:hover,
.bzc-cc-banner__showmore:focus {
	color: #fff;
	text-decoration: underline;
	opacity: 0.85;
}

.bzc-cc-banner__actions {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.bzc-cc-banner__btn {
	background: #fff;
	color: #000;
	border: none;
	border-radius: 9999px;
	font-size: 15px;
	font-weight: 700;
	padding: 12px 24px;
	min-width: 360px;
	cursor: pointer;
	font-family: inherit;
	transition: background 120ms ease;
	text-align: center;
}

.bzc-cc-banner__btn:hover,
.bzc-cc-banner__btn:focus {
	background: #d7dbdc;
	outline: none;
}

@media (max-width: 768px) {
	.bzc-cc-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 16px;
	}
	.bzc-cc-banner__text {
		max-width: 100%;
	}
	.bzc-cc-banner__actions {
		width: 100%;
	}
	.bzc-cc-banner__btn {
		min-width: 0;
		width: 100%;
	}
}

/* ══════════════════════════════════════════════════════════════════════
   IFRAME PLACEHOLDER
   ══════════════════════════════════════════════════════════════════════ */

.bzc-cc-iframe-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f6f8;
	border: 1px solid #e1e8ed;
	border-radius: 12px;
	color: #536471;
	cursor: pointer;
	transition: background 150ms ease, border-color 150ms ease;
	overflow: hidden;
	padding: 24px;
	box-sizing: border-box;
}

.bzc-cc-iframe-placeholder:hover,
.bzc-cc-iframe-placeholder:focus {
	background: #e8eef2;
	border-color: #1d9bf0;
	outline: none;
}

.bzc-cc-iframe-placeholder__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	max-width: 360px;
}

.bzc-cc-iframe-placeholder__icon {
	margin-bottom: 12px;
	color: #1d9bf0;
}

.bzc-cc-iframe-placeholder__provider {
	font-size: 15px;
	font-weight: 700;
	color: #0f1419;
	margin-bottom: 6px;
}

.bzc-cc-iframe-placeholder__msg {
	font-size: 13px;
	color: #536471;
	line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════════
   COOKIE PREFERENCES LIST
   (shared between BB drill-down detail panel and standalone page)
   ══════════════════════════════════════════════════════════════════════ */

.bzc-cc-pref-intro {
	font-size: 14px;
	color: #536471;
	line-height: 1.5;
	margin-bottom: 20px;
}

.bzc-cc-pref-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 24px 0;
	padding: 0;
	list-style: none;
}

.bzc-cc-pref-row__head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
}

.bzc-cc-pref-row__text {
	flex: 1 1 auto;
	min-width: 0;
}

.bzc-cc-pref-row__label {
	font-size: 19px;
	font-weight: 800;
	color: #0f1419;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bzc-cc-pref-row__lock {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 9px;
	font-weight: 800;
	color: #536471;
	background: #eff3f4;
	border-radius: 9999px;
	padding: 2px 8px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.bzc-cc-pref-row__desc {
	font-size: 13px;
	color: #536471;
	line-height: 1.4;
	margin-top: 4px;
}

.bzc-cc-pref-row__control {
	flex: 0 0 auto;
	padding-top: 2px;
}

/* Reuse the existing .bzc-toggle-row structure — see buzeeci-toggle skill. */
.bzc-settings-privacy #bzc-cc-row-necessary .bzc-toggle-row__input:checked + .bzc-toggle-row__track {
	background: rgb(193, 192, 192);
}

.bzc-settings-privacy #bzc-cc-row-necessary .bzc-toggle-row__input:checked + .bzc-toggle-row__track::after {
	background: #787979;
}

.bzc-cc-pref-row .bzc-toggle-row {
	justify-content: flex-end;
	padding: 0;
	border: 0;
}

.bzc-cc-pref-row__cookies-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 0 12px;
	font-size: 13px;
	color: #1d9bf0;
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

.bzc-cc-pref-row__cookies-toggle:hover,
.bzc-cc-pref-row__cookies-toggle:focus {
	text-decoration: underline;
	outline: none;
}

.bzc-cc-pref-row__cookies-chev {
	transition: transform 180ms ease;
}

.bzc-cc-pref-row.is-expanded .bzc-cc-pref-row__cookies-chev {
	transform: rotate(90deg);
}

.bzc-cc-pref-row__cookies {
	display: none;
	margin: 0;
	padding: 0 0 16px;
	list-style: none;
}

.bzc-cc-pref-row.is-expanded .bzc-cc-pref-row__cookies {
	display: block;
}

/* Cookie disclosure accordion items — native <details>/<summary>, each
   collapses to a single row with name + duration tag and expands to reveal
   the full purpose + metadata list. Rendered inside
   `.bzc-cc-pref-row__cookies` (the per-category expandable list). */
.bzc-cc-cookie-item {
	border-bottom: 1px solid #eff3f4;
}
.bzc-cc-cookie-item:last-child {
	border-bottom: 0;
}

.bzc-cc-cookie-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 4px;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.bzc-cc-cookie-summary::-webkit-details-marker { display: none; }
.bzc-cc-cookie-summary::marker { display: none; }

.bzc-cc-cookie-name-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.bzc-cc-cookie-chev {
	width: 16px;
	height: 16px;
	color: #8b98a5;
	transition: transform 0.15s ease;
	flex-shrink: 0;
}
details[open] > .bzc-cc-cookie-summary .bzc-cc-cookie-chev {
	transform: rotate(90deg);
}

.bzc-cc-cookie-name {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Cascadia Code", monospace;
	font-size: 14px;
	font-weight: 700;
	color: #0f1419;
	word-break: break-all;
}

.bzc-cc-cookie-summary-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.bzc-cc-cookie-tag {
	background: #eff3f4;
	color: #536471;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.bzc-cc-cookie-body {
	padding: 0 4px 16px 26px;
	font-size: 14px;
	color: #536471;
	line-height: 1.55;
}
.bzc-cc-cookie-body p {
	margin: 0 0 10px;
}
.bzc-cc-cookie-body dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 4px 16px;
	margin: 8px 0 0;
	font-size: 12px;
}
.bzc-cc-cookie-body dt {
	color: #8b98a5;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 10px;
	letter-spacing: 0.4px;
	align-self: center;
}
.bzc-cc-cookie-body dd {
	margin: 0;
	color: #0f1419;
}

@media (max-width: 480px) {
	.bzc-cc-cookie-summary {
		flex-wrap: wrap;
		gap: 8px;
	}
	.bzc-cc-cookie-name {
		font-size: 13px;
	}
}

.bzc-cc-pref-empty {
	text-align: center;
	color: #536471;
	font-size: 13px;
	padding: 12px 0;
}

/* ══════════════════════════════════════════════════════════════════════
   STANDALONE /cookies/ PAGE CHROME
   ══════════════════════════════════════════════════════════════════════ */

.bzc-cc-standalone {
	max-width: 720px;
	margin: 0 auto;
	padding: 48px 24px 96px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bzc-cc-standalone__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.bzc-cc-standalone__logo {
	font-family: buzeeci;
	font-size: 50px;
	line-height: 50px;
	font-weight: 900;
	color: #0f1419;
	text-decoration: none;
}

.bzc-cc-standalone__back {
	font-size: 14px;
	color: #536471;
	text-decoration: none;
	margin-top: -8px;
}

.bzc-cc-standalone__back:hover,
.bzc-cc-standalone__back:focus {
	color: #1d9bf0;
}

.bzc-cc-standalone__title {
	font-size: 24px;
	font-weight: 700;
	color: #0f1419;
	margin: 0 0 12px 0;
}
