/* S3 Smiles Region Switcher — override any of these in Appearance → Customize → Additional CSS */
:root {
	--s3rs-accent: #0b6e99;
	--s3rs-accent-text: #fff;
	--s3rs-bar-bg: #f3f5f7;
	--s3rs-bar-text: #333;
}

/* Top bar */
.s3rs-bar {
	position: relative;
	z-index: 99990;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 10px;
	padding: 7px 16px;
	background: var(--s3rs-bar-bg);
	color: var(--s3rs-bar-text);
	font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: center;
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.s3rs-bar .s3rs-sep { opacity: .5; }
.s3rs-switch-link {
	color: var(--s3rs-accent);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.s3rs-switch-link:hover,
.s3rs-switch-link:focus { text-decoration-thickness: 2px; }

/* Pop-up */
.s3rs-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 20, 25, .55);
	opacity: 0;
	transition: opacity .2s ease;
}
.s3rs-overlay.is-open { opacity: 1; }
.s3rs-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 32px 28px 26px;
	background: #fff;
	color: #222;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	text-align: center;
	font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transform: translateY(8px) scale(.98);
	transition: transform .2s ease;
}
.s3rs-overlay.is-open .s3rs-modal { transform: none; }
.s3rs-flag { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.s3rs-modal h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; color: #111; }
.s3rs-modal p { margin: 0 0 22px; color: #444; }
.s3rs-actions { display: flex; flex-direction: column; gap: 10px; }
.s3rs-btn {
	display: block;
	width: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}
.s3rs-btn--primary { background: var(--s3rs-accent); color: var(--s3rs-accent-text); border: 1px solid var(--s3rs-accent); }
.s3rs-btn--primary:hover, .s3rs-btn--primary:focus { filter: brightness(1.08); color: var(--s3rs-accent-text); }
.s3rs-btn--secondary { background: transparent; color: #333; border: 1px solid #ccd; }
.s3rs-btn--secondary:hover, .s3rs-btn--secondary:focus { background: #f4f5f7; }
.s3rs-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: #777;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
}
.s3rs-close:hover, .s3rs-close:focus { background: #f1f1f1; color: #222; }
.s3rs-modal :focus-visible { outline: 3px solid var(--s3rs-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.s3rs-overlay, .s3rs-modal { transition: none; }
}
