/**
 * The consent banner.
 *
 * Bottom left, so it does not sit on top of the WhatsApp and assistant
 * buttons in the opposite corner. A card rather than a full-width bar: a bar
 * across the bottom of a page reads as an advert for itself, and this is
 * meant to be answered and gone.
 *
 * The two buttons are deliberately the same size and the same shape. Making
 * "no" smaller, greyer or further away is the oldest trick in this particular
 * book, and on a site selling careful handling of patient data it would be
 * the most expensive kind of clever.
 */

.praxia-consent {
	position: fixed;
	z-index: 70;
	left: clamp(.75rem, 2vw, 1.5rem);
	bottom: clamp(.75rem, 2vw, 1.5rem);
	width: min(26rem, calc(100vw - 1.5rem));
	box-sizing: border-box;
	padding: 1.15rem 1.25rem 1.1rem;
	border-radius: 14px;
	background: linear-gradient(145deg, #12353B 0%, #0E2A2F 100%);
	color: #EAFBF5;
	box-shadow: 0 18px 44px rgba(0, 0, 0, .34), 0 0 0 1px rgba(255, 255, 255, .07) inset;
	font-size: .9rem;
	line-height: 1.5;
	animation: praxia-consent-in .32s cubic-bezier(.22, .61, .36, 1) both;
}

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

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

.praxia-consent__text {
	margin: 0 0 .95rem;
	color: #D4EDE6;
}

.praxia-consent__text a {
	color: #8FF0D2;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.praxia-consent__choices {
	display: flex;
	gap: .6rem;
}

.praxia-consent__btn {
	flex: 1 1 0;
	min-height: 2.55rem;
	padding: .55rem .9rem;
	border-radius: 9px;
	border: 1px solid rgba(143, 240, 210, .45);
	background: transparent;
	color: #EAFBF5;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease;
}

.praxia-consent__btn:hover {
	background: rgba(143, 240, 210, .12);
}

.praxia-consent__btn--yes {
	background: #8FF0D2;
	border-color: #8FF0D2;
	color: #0E2A2F;
}

.praxia-consent__btn--yes:hover {
	background: #A6F4DC;
	border-color: #A6F4DC;
}

.praxia-consent__btn:focus-visible {
	outline: 2px solid #8FF0D2;
	outline-offset: 2px;
}

/* On a phone the dock's two buttons own the bottom right corner, so the card
   sits above them rather than beside them. */
@media (max-width: 600px) {
	.praxia-consent {
		left: .75rem;
		right: .75rem;
		width: auto;
		bottom: 7.5rem;
	}
}

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