/**!
 * Samraworld ELC 2021
 * @file cookie-banner.css
 * @desc Cookie-consent banner that pins to the bottom of the page on
 *       first visit. cookie-banner.js manages the show/hide + cookie
 *       write.
 * @version v6 2026-06-02 - Initial version under the @version convention. Rewrote the legacy flat green bar with groove-bordered button into a pill-shaped overlay (brand-green gradient, drop shadow, safe-area-inset support, inline icon flowing with the text baseline).
 * @author Charlie Samra <charles@samraworld.net>
 * @see {@link samraworld.net }
 */
/************************************************************************************************************************************/

.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	margin: 0 auto;
	max-width: 920px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #0e6630 0%, #084a22 100%);
	color: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22),
	            0 2px 6px  rgba(0, 0, 0, 0.10);
	font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 0.9rem;
	line-height: 1.45;
	z-index: 1000;
}

.cookie-banner__msg {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.96);
}

.cookie-banner__icon {
	margin-right: 6px;
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
}

.cookie-banner__link {
	color: #ffffff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus {
	color: #fff;
	text-decoration: underline;
}

.cookie-banner__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 18px;
	background: #ffffff;
	color: #084a22;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
	flex: 0 0 auto;
}

.cookie-banner__btn:hover {
	background: #f4f9f5;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cookie-banner__btn:active {
	transform: translateY(1px);
}

.cookie-banner__btn:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.75);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.cookie-banner {
		flex-direction: column;
		align-items: stretch;
		padding: 14px 16px;
		gap: 12px;
	}
	.cookie-banner__btn {
		width: 100%;
		justify-content: center;
	}
}
