/* ==========================================
   VÝBĚR ZEMĚ DORUČENÍ (erosveneziani, 2026-10-11)
   Markup: _global/template/_indexR.php ($_ctry_render) — .ctry-sel--header (desktop
   hlavička) a .ctry-sel--drawer (mobilní menu). Načítá se jen na eros doménách, ignite ne.
   ========================================== */

.ctry-sel {
	position: relative;
	font-size: 12px;
}

/* HEADER má z-index 100, sticky NAV 150 (indexR.css) → otevřený panel by zajel pod navigaci.
   Po dobu otevření zvednout celou hlavičku nad NAV. */
HEADER:has(.ctry-sel.is-open) { z-index: 160; }

.ctry-sel__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px 4px 6px;
	border: 1px solid rgba(255,255,255,.16);
	border-radius: 20px;
	background: rgba(255,255,255,.05);
	color: var(--text-light);
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.ctry-sel__btn:hover,
.ctry-sel.is-open .ctry-sel__btn {
	border-color: var(--brand-primary);
	background: rgba(156,120,74,.14);
	color: var(--text-white);
}
.ctry-sel__btn:focus-visible,
.ctry-sel__opt:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}
.ctry-sel__btn .fi {
	width: 20px;
	height: 15px;
	border-radius: 2px;
	flex: none;
}
.ctry-sel__btn-cur {
	padding-left: 6px;
	border-left: 1px solid rgba(255,255,255,.18);
	opacity: .8;
}
.ctry-sel__btn .fa-chevron-down {
	font-size: 9px;
	opacity: .7;
	transition: transform .15s ease;
}
.ctry-sel.is-open .fa-chevron-down { transform: rotate(180deg); }

/* panel (desktop: plovoucí pod tlačítkem) */
.ctry-sel__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	width: 270px;
	max-height: min(440px, 70vh);
	overflow-y: auto;
	padding: 6px;
	background: #232424;
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0,0,0,.45);
	overscroll-behavior: contain;
}
.ctry-sel__panel[hidden] { display: none; }

.ctry-sel__title {
	padding: 6px 10px 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
}

.ctry-sel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ctry-sel__opt {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 10px;
	border-radius: 6px;
	color: var(--text-light);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.3;
}
.ctry-sel__opt:hover {
	background: rgba(156,120,74,.18);
	color: var(--text-white);
}
.ctry-sel__opt.is-active {
	background: rgba(156,120,74,.26);
	color: var(--text-white);
	font-weight: 600;
}
.ctry-sel__opt .fi {
	width: 22px;
	height: 16px;
	border-radius: 2px;
	flex: none;
	box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.ctry-sel__name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ctry-sel__cur {
	font-size: 11px;
	font-weight: 600;
	opacity: .6;
}

.ctry-sel__sep {
	height: 1px;
	margin: 6px 6px;
	background: rgba(255,255,255,.1);
}

/* mobilní menu (drawer): seznam se rozbalí v toku stránky, ne jako plovoucí panel */
.ctry-sel--drawer { width: 100%; font-size: 13px; }
.ctry-sel--drawer .ctry-sel__btn {
	width: 100%;
	padding: 8px 12px;
	border-radius: 8px;
	border-color: rgba(255,255,255,.14);
}
.ctry-sel--drawer .ctry-sel__btn .fa-chevron-down { margin-left: auto; }
.ctry-sel--drawer .ctry-sel__panel {
	position: static;
	width: auto;
	max-height: 50vh;
	margin-top: 8px;
	box-shadow: none;
}
