/**
 * KD Alert Bar — front-end styles.
 * All colours are driven by CSS custom properties set inline on #kd-alert-bar,
 * so the same stylesheet renders any palette configured in the admin.
 */

.kdab {
	--kdab-bar-bg: #00476c;
	--kdab-accent: #faaf7c;
	--kdab-callout-bg: #faaf7c;
	--kdab-callout-text: #00476c;
	--kdab-message: #ffffff;
	--kdab-btn-bg: #ffffff;
	--kdab-btn-text: #00476c;
	--kdab-btn-hover-bg: #faaf7c;
	--kdab-btn-hover-text: #00476c;

	position: relative;
	background: var(--kdab-bar-bg);
	border-top: 5px solid var(--kdab-accent);
	color: var(--kdab-message);
	font-family: "Oswald", "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-sizing: border-box;
}

.kdab *,
.kdab *::before,
.kdab *::after {
	box-sizing: border-box;
}

.kdab__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: nowrap;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.75rem 3.75rem 0.75rem 0.75rem;
}

.kdab__wage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--kdab-callout-bg);
	color: var(--kdab-callout-text);
	padding: 0.6rem 1.5rem;
	flex-shrink: 0;
	line-height: 0.95;
}

.kdab__unit {
	font-weight: 600;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 0.25rem;
}

.kdab__amt {
	font-weight: 700;
	font-size: 2rem;
	letter-spacing: 0.01em;
}

.kdab__msg {
	font-weight: 500;
	font-size: 1.1875rem;
	text-transform: uppercase;
	line-height: 1.25;
	white-space: nowrap;
	color: var(--kdab-message);
}

.kdab__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 0;
	font-size: 0.9375rem;
	padding: 0.9rem 2.1rem;
	background: var(--kdab-btn-bg);
	color: var(--kdab-btn-text);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.kdab__cta:hover,
.kdab__cta:focus-visible {
	transform: translateY(-1px);
	background: var(--kdab-btn-hover-bg);
	color: var(--kdab-btn-hover-text);
}

.kdab__cta:focus-visible {
	outline: 2px solid var(--kdab-message);
	outline-offset: 2px;
}

.kdab__arrow {
	flex-shrink: 0;
}

/* Reset native button chrome hard — the theme forces -webkit-appearance:button
   on all buttons, which otherwise renders this as a white rounded box. */
.kdab .kdab__dismiss {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.7);
	font-family: inherit;
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1;
	text-shadow: none;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.kdab .kdab__dismiss:hover,
.kdab .kdab__dismiss:focus-visible {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.12);
}

.kdab .kdab__dismiss:focus-visible {
	outline: 2px solid var(--kdab-message);
	outline-offset: 2px;
}

@media (max-width: 900px) {
	.kdab__inner {
		flex-wrap: wrap;
		text-align: center;
		gap: 1rem 1.5rem;
		padding-left: 1.25rem;
		padding-right: 2.75rem;
	}

	.kdab__msg {
		white-space: normal;
		font-size: 1.0625rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kdab__cta {
		transition: none;
	}

	.kdab__cta:hover,
	.kdab__cta:focus-visible {
		transform: none;
	}
}
