/**
 * Custom cookie consent bar — black panel, gold actions.
 *
 * @package ProdentLab
 */

.cookie-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: none;
	padding: clamp(0.85rem, 2vw, 1.15rem);
	pointer-events: none;
}

html.professional-gate-accepted.cookie-consent-pending .cookie-consent {
	display: flex;
	justify-content: center;
	pointer-events: auto;
}

html.professional-gate-pending .cookie-consent {
	display: none;
}

.cookie-consent__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: clamp(1.25rem, 3vw, 2.25rem);
	align-items: center;
	width: var(--container);
	max-width: calc(100% - 1.75rem);
	padding: clamp(1.25rem, 2.8vw, 1.6rem) clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--header-surface-border);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, rgba(22, 22, 22, 0.98) 0%, rgba(8, 8, 8, 0.98) 100%);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
	pointer-events: auto;
}

.cookie-consent__body {
	min-width: 0;
}

.cookie-consent__head {
	display: flex;
	gap: clamp(0.75rem, 2vw, 1rem);
	align-items: center;
	margin-bottom: 0.55rem;
}

.cookie-consent__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 2.85rem;
	height: 2.85rem;
	border: 1px solid rgba(198, 161, 91, 0.35);
	border-radius: 0.85rem;
	background: rgba(198, 161, 91, 0.08);
	color: var(--color-gold);
}

.cookie-consent__icon svg {
	width: 1.4rem;
	height: 1.4rem;
}

.cookie-consent__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(1.05rem, 2.1vw, 1.2rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--color-white);
}

.cookie-consent__text {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.65;
	color: var(--color-muted);
}

.cookie-consent__text a {
	color: var(--color-gold);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.cookie-consent__text a:hover,
.cookie-consent__text a:focus-visible {
	color: var(--color-white);
}

.cookie-consent__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 0.65rem;
	align-items: center;
	align-self: center;
}

.cookie-consent__button {
	min-width: 9rem;
	white-space: nowrap;
	justify-content: center;
}

.cookie-consent__button span {
	width: 100%;
	text-align: center;
}

@media (max-width: 900px) {
	.cookie-consent__inner {
		grid-template-columns: 1fr;
		row-gap: 1rem;
		width: min(100% - 1.75rem, 40rem);
	}

	.cookie-consent__actions {
		justify-content: stretch;
		width: 100%;
	}

	.cookie-consent__button {
		flex: 1 1 calc(50% - 0.35rem);
		min-width: 0;
	}
}

@media (max-width: 520px) {
	.cookie-consent__icon {
		display: none;
	}

	.cookie-consent__actions {
		flex-direction: column;
	}

	.cookie-consent__button {
		width: 100%;
	}
}
