/**
 * varsby3u5c49-style.css
 * CSS Stylesheet for the Varsby component.
 *
 * @since 1.0.0
 * @package varsby
 * @version 1.1.4
 * @author Steven Spoor
 * @license GPL-2.0-or-later
 * @license URI https://www.gnu.org/licenses/gpl-2.0.html
 */

[id^="varsby3u5c49-bar-"] {
	background: var(--varsby3u5c49-bg, #1e73be);
	box-sizing: border-box;
	color: var(--varsby3u5c49-color, #fff);
	display: none; /* Hidden by default until JS decides. */
	font-size: var(--varsby3u5c49-font, 16px);
	left: 0;
	padding: 12px 44px;
	text-align: center;
	width: 100%;
	z-index: 9999;
}

/* Position + behaviour, set from the varsby3u5c49-fixed/varsby3u5c49-static and
   varsby3u5c49-pos-top/varsby3u5c49-pos-bottom classes on the wrapper. */
.varsby3u5c49-fixed {
	position: fixed;
}

.varsby3u5c49-fixed.varsby3u5c49-pos-top {
	top: 0;
}

.varsby3u5c49-fixed.varsby3u5c49-pos-bottom {
	bottom: 0;
}

.varsby3u5c49-static {
	position: relative;
}

/* Message + optional button. */
.varsby3u5c49-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.varsby3u5c49-message {
	font-weight: bold;
}

.varsby3u5c49-message a {
	color: inherit;
}

.varsby3u5c49-button {
	background: var(--varsby3u5c49-btn-bg, #fff);
	border-radius: 4px;
	color: var(--varsby3u5c49-btn-color, #1e73be);
	display: inline-block;
	font-weight: 600;
	line-height: 1.4;
	padding: 6px 14px;
	text-decoration: none;
	white-space: nowrap;
}

.varsby3u5c49-close {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
}

/* Keyboard focus ring. !important so it survives themes that blanket-remove
   outlines (e.g. `*:focus-visible { outline: none }`) — the dismiss control
   must always show where focus is. */
.varsby3u5c49-close:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 2px !important;
}

.varsby3u5c49-close::after {
	content: "\00D7";
}

/* Device targeting (Show On). The frontend script reveals the bar with an inline
   display:block, so these overrides need !important to take effect. */
@media screen and (max-width: 782px) {
	[id^="varsby3u5c49-bar-"].varsby3u5c49-desktop {
		display: none !important;
	}
}

@media screen and (min-width: 783px) {
	[id^="varsby3u5c49-bar-"].varsby3u5c49-mobile {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	[id^="varsby3u5c49-bar-"] {
		animation: none !important;
		transition: none !important;
	}
}
