/* Paint Outfit Currency Switcher v1.0.1 */
.posc-scope { --posc-brand: #c66a3d; --posc-text: #595858; }
.posc, .posc *, .posc-topbar, .posc-topbar * { box-sizing: border-box; }

/* Theme-proofing: Blocksy/global styles must not uppercase or capitalise our text */
.posc-topbar, .posc-topbar *, .posc, .posc *, .posc-menu, .posc-menu * {
	text-transform: none !important;
	font-variant: normal !important;
}

.posc { position: relative !important; display: inline-block; font-size: 13px; line-height: 1.4; color: var(--posc-text); z-index: 9990; }

/* ---------- Button ---------- */
.posc-btn {
	display: inline-flex !important; align-items: center; gap: 7px; height: 32px; padding: 0 12px !important; margin: 0 !important;
	background: #fff !important; color: var(--posc-text) !important; border: 1px solid #e4e2df !important; border-radius: 999px !important;
	font: inherit; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; line-height: 1 !important; cursor: pointer;
	box-shadow: none !important; transition: background .25s, color .25s, border-color .25s; white-space: nowrap;
}
.posc-btn:hover, .posc.is-open .posc-btn { background: #000 !important; color: #fff !important; border-color: #000 !important; }
.posc-btn:focus-visible, .posc-opt:focus-visible { outline: 2px solid var(--posc-brand); outline-offset: 2px; }
/* Globe icon: pure black (white only while the button itself is black, so it stays visible) */
.posc-globe { color: #000 !important; stroke: #000 !important; transition: color .25s; }
.posc-btn:hover .posc-globe, .posc.is-open .posc-globe { color: #fff !important; stroke: #fff !important; }
.posc-btn-sym { font-weight: 500; opacity: .75; letter-spacing: 0; }
.posc-chev { transition: transform .25s; }
.posc.is-open .posc-chev { transform: rotate(180deg); }
.posc.is-loading .posc-btn { opacity: .6; pointer-events: none; }

/* ---------- Dropdown (positioned by JS directly below the button) ---------- */
.posc-menu {
	position: fixed; top: 0; left: 0; width: 290px; max-width: calc(100vw - 20px);
	margin: 0 !important; background: #fff; border: 1px solid #ebe9e6; border-radius: 6px; box-shadow: 0 20px 44px rgba(0,0,0,.14);
	overflow: hidden; z-index: 999999; animation: posc-in .18s ease;
}
.posc-menu[hidden] { display: none !important; }
@keyframes posc-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.posc-menu-head { padding: 14px 16px 4px; font-size: 12px; letter-spacing: .02em; color: var(--posc-brand); font-weight: 600; }
.posc-search { display: flex !important; align-items: center; gap: 8px; margin: 6px 12px 8px !important; padding: 0 12px !important; height: 38px; border: 1px solid #e4e2df; border-radius: 4px; color: #a3a1a0; }
.posc-search:focus-within { border-color: #000; }
.posc-search input { flex: 1; min-width: 0; height: 100% !important; min-height: 0 !important; margin: 0 !important; border: 0 !important; outline: 0; background: none !important; font: inherit; font-size: 13px !important; color: #111; padding: 0 !important; box-shadow: none !important; }
.posc-list { list-style: none !important; margin: 0 !important; padding: 4px 6px 6px !important; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.posc-list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.posc-list li::before { display: none !important; }
.posc-list li[hidden] { display: none; }
.posc-opt {
	display: flex !important; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px;
	color: var(--posc-text) !important; text-decoration: none !important; transition: background .2s, color .2s;
}
.posc-opt:hover, .posc-opt:focus-visible { background: #000; color: #fff !important; }
.posc-sym {
	flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	background: #f5f3f1; color: #111; font-size: 13px; font-weight: 700; transition: background .2s, color .2s;
}
.posc-sym.is-long { font-size: 9px; }
.posc-opt:hover .posc-sym, .posc-opt:focus-visible .posc-sym { background: #fff; color: #000; }
.posc-opt-code { font-weight: 700; font-size: 12.5px; letter-spacing: .04em; color: #111; min-width: 34px; transition: color .2s; }
.posc-opt:hover .posc-opt-code, .posc-opt:focus-visible .posc-opt-code { color: #fff; }
.posc-opt-name { flex: 1; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posc-opt.is-active { background: #fbf4ef; }
.posc-opt.is-active .posc-sym { background: var(--posc-brand); color: #fff; }
.posc-opt.is-active:hover { background: #000; }
.posc-tick { color: var(--posc-brand); flex-shrink: 0; }
.posc-opt:hover .posc-tick { color: #fff; }
.posc-empty { margin: 4px 16px 10px !important; font-size: 12.5px; color: #a3a1a0; }
.posc-foot { margin: 0 !important; padding: 10px 16px; border-top: 1px solid #f0eeec; font-size: 11px; color: #a3a1a0; background: #fcfbfa; }

/* ---------- Top bar: right side (above Account), no lines ---------- */
.posc-topbar {
	position: relative; z-index: 9991; width: 100%; margin: 0 !important; padding: 0 !important;
	background: #fff; border: 0 !important; box-shadow: none !important;
}
.posc-topbar-in {
	display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important;
	justify-content: flex-end; gap: 10px; width: 100% !important; max-width: none !important; margin: 0 !important;
	padding: 6px 20px !important; min-height: 40px; border: 0 !important; box-shadow: none !important;
}
.posc-topbar-in::before, .posc-topbar-in::after, .posc-topbar::before, .posc-topbar::after { display: none !important; content: none !important; }
.posc-topbar-in.posc-align-right { justify-content: flex-end !important; }
.posc-topbar-in.posc-align-left { justify-content: flex-start !important; }
.posc-topbar-in.posc-align-center { justify-content: center !important; }
.posc-topbar-text {
	display: inline-block; margin: 0 !important; white-space: nowrap;
	font-size: 11.5px !important; font-weight: 400 !important; letter-spacing: 0 !important; line-height: 1.2 !important;
	color: var(--posc-text);
}
/* Remove any line directly below the bar */
.posc-topbar + *, .posc-topbar + header, .posc-topbar ~ #header { border-top: 0 !important; }

/* ---------- Floating ---------- */
.posc-floating-wrap { position: fixed; top: 14px; right: 14px; z-index: 99990; }
.admin-bar .posc-floating-wrap { top: 46px; }
.posc-floating .posc-btn { box-shadow: 0 8px 22px rgba(0,0,0,.12) !important; }

/* ---------- Checkout notes ---------- */
.posc-checkout-note { margin: 0 0 20px; padding: 12px 16px; background: #f5f5f4; color: #7a7878; font-size: 13px; line-height: 1.6; border-left: 3px solid #c66a3d; }
.posc-checkout-note strong { color: #111; }
tr.posc-approx th, tr.posc-approx td { color: #9a9898; font-weight: 400; font-size: .92em; }

@media (max-width: 600px) {
	.posc-topbar-in { padding: 4px 12px !important; min-height: 36px; justify-content: flex-end !important; }
	.posc-topbar-text { font-size: 11px !important; }
	.posc-list { max-height: 55vh; }
}
@media (max-width: 380px) {
	.posc-topbar-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.posc *, .posc-menu { animation: none !important; transition: none !important; }
}
