/* Cookie consent banner (mu-plugins/aruba-jobs-consent.php).
   A card in the bottom-left corner on desktop, a bottom sheet on phones.
   It does not block the page. "Reject all" and "Accept all" have the same
   size and weight on purpose: refusing must be as easy as accepting. */

.aj-consent {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 10000;
	box-sizing: border-box;
	width: min(440px, calc(100vw - 40px));
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 22px;
	border: 1px solid var(--aj-border, #e6e9f0);
	border-radius: 18px;
	background: var(--aj-bg, #fff);
	color: var(--aj-text, #10141c);
	box-shadow: 0 20px 48px rgba(16, 20, 28, 0.18);
	font-family: var(--aj-font, inherit);
	animation: aj-consent-in 220ms ease-out;
}

.aj-consent[hidden] {
	display: none;
}

@keyframes aj-consent-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aj-consent {
		animation: none;
	}
}

.aj-consent__title {
	margin: 0 0 8px;
	font-size: 17px;
	font-weight: 800;
}

.aj-consent__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--aj-text-muted, #616b7a);
}

.aj-consent__text a {
	color: var(--aj-brand, #0070ff);
	font-weight: 600;
}

.aj-consent__choices {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
}

.aj-consent__choices[hidden] {
	display: none;
}

.aj-consent__choice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--aj-border, #e6e9f0);
	border-radius: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--aj-text-muted, #616b7a);
	cursor: pointer;
}

.aj-consent__choice strong {
	display: block;
	margin-bottom: 2px;
	font-size: 14px;
	color: var(--aj-text, #10141c);
}

.aj-consent__choice input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--aj-brand, #0070ff);
}

.aj-consent__choice.is-locked {
	cursor: default;
	background: var(--aj-bg-subtle, #f5f7fb);
}

.aj-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.aj-consent__btn {
	flex: 1 1 140px;
	padding: 11px 18px;
	border: 1.5px solid var(--aj-brand, #0070ff);
	border-radius: 999px;
	background: var(--aj-brand, #0070ff);
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.aj-consent__btn:hover {
	background: var(--aj-brand-dark, #0057c7);
	border-color: var(--aj-brand-dark, #0057c7);
}

.aj-consent__btn[hidden],
.aj-consent__link[hidden] {
	display: none;
}

.aj-consent__btn--save {
	flex-basis: 100%;
}

.aj-consent__link {
	flex-basis: 100%;
	padding: 4px;
	border: 0;
	background: none;
	color: var(--aj-text, #10141c);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.aj-consent button:focus-visible {
	outline: 2px solid var(--aj-brand, #0070ff);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.aj-consent {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-height: 85vh;
		border-radius: 18px 18px 0 0;
		padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
	}
}

/* Footer "Cookie settings" link looks like the other legal links. */
.aj-consent-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
