/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.cookie-consent {
	position: fixed;
	left: 24px;
	right: 24px;
	bottom: 24px;
	z-index: 10000;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.cookie-consent[hidden] {
	display: none !important;
}

body.cookie-consent-active::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9990;
	pointer-events: none;
	background: rgba(15, 23, 42, 0.14);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.cookie-consent__panel {
	width: min(100%, 760px);
	display: grid;
	gap: 16px;
	padding: 20px 22px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
	backdrop-filter: blur(12px);
	pointer-events: auto;
}

.cookie-consent__title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #0f172a;
}

.cookie-consent__text {
	margin: 0;
	color: #334155;
	line-height: 1.55;
}

.cookie-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.cookie-consent__button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 12px 16px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.cookie-consent__button:hover {
	transform: translateY(-1px);
}

.cookie-consent__button--primary {
	background: #006c49;
	color: #fff;
	box-shadow: 0 10px 22px rgba(0, 108, 73, 0.22);
}

.cookie-consent__button--secondary {
	background: #e2e8f0;
	color: #0f172a;
}

.cookie-consent__link {
	color: #006c49;
	font-weight: 600;
	text-decoration: none;
}

.cookie-consent__link:hover {
	text-decoration: underline;
}

.cookie-consent-manage {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9995;
	appearance: none;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 999px;
	padding: 8px 14px;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
	cursor: pointer;
}

.cookie-consent-manage:hover {
	color: #006c49;
}

@media (max-width: 640px) {
	.cookie-consent {
		left: 12px;
		right: 12px;
		bottom: 12px;
	}

	.cookie-consent__panel {
		padding: 18px;
		border-radius: 18px;
	}

	.cookie-consent__actions {
		flex-direction: column;
		align-items: stretch;
	}

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