details.w3s-country-picker { display: inline-block; margin: 0; padding: 0; border: 0; vertical-align: middle; }
.w3s-country-picker > summary {
	display: inline-flex; align-items: center; gap: 8px; min-height: 34px; box-sizing: border-box;
	padding: 5px 12px; background: transparent; color: inherit; list-style: none; cursor: pointer;
	font: 400 12px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .015em;
}
.w3s-country-picker > summary::-webkit-details-marker { display: none; }
.w3s-country-picker > summary svg { width: 20px; height: 20px; flex: none; }
.w3s-country-picker > summary:hover span { text-decoration: underline; text-underline-offset: 3px; }
.w3s-country-picker[open] > form { margin-top: 8px; }
dialog.w3s-country-dialog {
	position: fixed; inset: 0; width: min(26rem, calc(100% - 2rem)); max-height: calc(100% - 2rem);
	box-sizing: border-box; margin: auto; padding: 26px; border: 0; border-radius: 4px;
	background: #fff; color: #191919; box-shadow: 0 16px 60px #0003;
}
.w3s-country-dialog::backdrop { background: rgb(0 0 0 / 55%); }
@media (prefers-reduced-motion: no-preference) {
	.w3s-country-dialog[open] { animation: w3s-country-enter 180ms ease-out; }
	.w3s-country-dialog[open]::backdrop { animation: w3s-country-fade 180ms ease-out; }
	.w3s-country-dialog[open][data-closing] { animation: w3s-country-exit 150ms ease-in forwards; }
	.w3s-country-dialog[open][data-closing]::backdrop { animation: w3s-country-backdrop-exit 150ms ease-in forwards; }
}
@keyframes w3s-country-enter {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes w3s-country-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes w3s-country-exit { to { opacity: 0; transform: translateY(8px); } }
@keyframes w3s-country-backdrop-exit { to { opacity: 0; } }
form.w3s-country-selector { margin: 0; font: inherit; text-align: start; }
.w3s-country-selector fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.w3s-country-selector legend { float: none; width: auto; margin: 0 0 14px; padding: 0 32px 0 0; line-height: 1.4; font-family: inherit; font-size: 1.15rem; font-weight: 600; }
.w3s-country-selector button, .w3s-country-dialog .w3s-country-close {
	background: transparent; color: inherit; font: inherit; cursor: pointer; border: 0; border-radius: 0;
}
.w3s-country-options {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(6rem, 100%), 1fr)); gap: 8px;
}
.w3s-country-picker[open] .w3s-country-options { min-width: min(13rem, 80vw); }
.w3s-country-options button {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 6px; width: 100%; min-width: 0; min-height: 80px; box-sizing: border-box; margin: 0;
	padding: 10px 8px; border: 1px solid #ccc; border-radius: 4px; text-align: center;
	white-space: normal; overflow-wrap: anywhere;
}
.w3s-country-options .w3s-country-flag { display: block; width: 40px; height: 30px; object-fit: contain; font-size: 24px; line-height: 30px; }
.w3s-country-options button[aria-pressed="true"] { border-color: currentColor; font-weight: 600; }
.w3s-country-options button[aria-pressed="true"]::after {
	content: ''; position: absolute; inset-block-start: 8px; inset-inline-end: 9px; width: 5px; height: 9px;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.w3s-country-dialog .w3s-country-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; margin: 0; padding: 0; font-size: 24px; line-height: 1; }
.w3s-country-dialog button:hover { background: #f4f4f4; }
.w3s-country-picker summary:focus-visible, .w3s-country-selector button:focus-visible, .w3s-country-close:focus-visible { outline: 2px solid currentColor; outline-offset: -3px; }
