/*!
 * Storzen — Currency Switcher
 */

/* ════════════════════════════════════════════════════════════════════════
 * Switcher container (base for all styles)
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-switcher {
	display: inline-block;
	font-family: inherit;
	font-size: 13px;
	line-height: 1.4;
	color: #374151;
}
.sz-cur-switcher * {
	box-sizing: border-box;
}

/* ════════════════════════════════════════════════════════════════════════
 * Style: dropdown
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-switcher--dropdown .sz-cur-select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff
		url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
		right 10px center / 10px no-repeat;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 7px 28px 7px 12px;
	color: #1f2937;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	min-width: 110px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sz-cur-switcher--dropdown .sz-cur-select:hover {
	border-color: #d1d5db;
}
.sz-cur-switcher--dropdown .sz-cur-select:focus-visible {
	outline: none;
	border-color: #FF3636;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
}

/* ════════════════════════════════════════════════════════════════════════
 * Shared: list-based styles (vertical list / pill buttons / flag grid)
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sz-cur-list li {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sz-cur-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: transparent;
	border: 1px solid #e5e7eb;
	color: #4b5563;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	font-family: inherit;
	transition: border-color .15s ease, color .15s ease, background .15s ease, transform .12s ease;
}
.sz-cur-item:hover {
	border-color: #FF3636;
	color: #FF3636;
}
.sz-cur-item:focus-visible {
	outline: 2px solid #FF3636;
	outline-offset: 2px;
}
.sz-cur-item.is-active {
	background: #FF3636;
	border-color: #FF3636;
	color: #fff;
}
.sz-cur-item.is-active:hover {
	background: #E62E2E;
	border-color: #E62E2E;
	color: #fff;
}
.sz-cur-flag {
	font-size: 16px;
	line-height: 1;
	display: inline-block;
}

/* ════════════════════════════════════════════════════════════════════════
 * Style: vertical list
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-switcher--list .sz-cur-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sz-cur-switcher--list .sz-cur-item {
	width: 100%;
	justify-content: flex-start;
}

/* ════════════════════════════════════════════════════════════════════════
 * Style: pill buttons (horizontal row)
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-switcher--buttons .sz-cur-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.sz-cur-switcher--buttons .sz-cur-item {
	border-radius: 20px;
	padding: 6px 14px;
}

/* ════════════════════════════════════════════════════════════════════════
 * Style: flag grid
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-switcher--flags .sz-cur-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	gap: 6px;
}
.sz-cur-switcher--flags .sz-cur-item {
	flex-direction: column;
	padding: 8px 6px;
	gap: 2px;
}
.sz-cur-switcher--flags .sz-cur-flag {
	font-size: 22px;
}
.sz-cur-switcher--flags .sz-cur-label {
	font-size: 11px;
	font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
 * Sticky widget (floating button bottom-right)
 * ════════════════════════════════════════════════════════════════════════ */
.sz-cur-sticky {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	padding: 10px;
	max-width: 260px;
	max-height: 360px;
	overflow: auto;
}

/* If Floating Cart module is also active (renders bottom-right too),
 * push the currency widget left to avoid overlap. */
.storzen-fc-widget ~ .sz-cur-sticky,
body:has(.storzen-fc-widget) .sz-cur-sticky {
	right: 86px;
}

/* ════════════════════════════════════════════════════════════════════════
 * Mobile
 * ════════════════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
	.sz-cur-sticky {
		right: 12px;
		bottom: 12px;
		max-width: 200px;
		padding: 8px;
	}
	.sz-cur-switcher--flags .sz-cur-list {
		grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
	}
	.sz-cur-switcher--flags .sz-cur-flag { font-size: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sz-cur-item,
	.sz-cur-select { transition: none !important; }
}
