/* TDB Currency — switcher ([tdb_currency_switcher]) + checkout note
   Small and self-contained: loaded site-wide because the switcher lives in the header. */

/* Outer box only aligns; the inner .tdb-cur-switch hugs the button so the list anchors to it */
.tdb-cur-switch-wrap { display: block; line-height: 1; }
.tdb-cur-switch-wrap--center { text-align: center; }
.tdb-cur-switch-wrap--right { text-align: right; }

.tdb-cur-switch {
	position: relative;
	display: inline-block;
	font-family: inherit;
	line-height: 1;
	vertical-align: middle;
	text-align: left;
}

.tdb-cur-switch__btn {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	padding: 7px 12px !important;
	border: 1.5px solid #dfe3ea !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: #1A3C8F !important;
	font: inherit;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: none !important;
	text-transform: none !important;
	transition: border-color 0.15s, background 0.15s;
}
.tdb-cur-switch__btn:hover,
.tdb-cur-switch__btn[aria-expanded="true"] { border-color: #1A3C8F !important; background: #f4f6fc !important; }
.tdb-cur-switch__btn:focus-visible { outline: 2px solid #E8743A; outline-offset: 2px; }
.tdb-cur-switch__btn svg { transition: transform 0.15s; }
.tdb-cur-switch__btn[aria-expanded="true"] svg { transform: rotate(180deg); }

.tdb-cur-switch__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 10000;
	min-width: 200px;
	max-height: 320px;
	overflow-y: auto;
	margin: 0 !important;
	padding: 6px !important;
	list-style: none !important;
	background: #fff;
	border: 1px solid #e6e8ec;
	border-radius: 12px;
	box-shadow: 0 12px 32px -12px rgba(20, 24, 40, 0.28);
}
.tdb-cur-switch__list[hidden] { display: none !important; }
.tdb-cur-switch--up .tdb-cur-switch__list { top: auto; bottom: calc(100% + 6px); }
.tdb-cur-switch-wrap--left .tdb-cur-switch__list { right: auto; left: 0; }
.tdb-cur-switch-wrap--center .tdb-cur-switch__list { right: auto; left: 50%; transform: translateX(-50%); }

.tdb-cur-switch__opt {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin: 0 !important;
	padding: 9px 10px !important;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	color: #1c1f26;
	outline: none;
}
.tdb-cur-switch__opt::before { content: none !important; }
.tdb-cur-switch__opt:hover,
.tdb-cur-switch__opt:focus { background: #f4f6fc; }
.tdb-cur-switch__opt[aria-selected="true"] { background: #e8eefb; }
.tdb-cur-switch__opt-code { width: 34px; font-weight: 700; color: #1A3C8F; flex-shrink: 0; }
.tdb-cur-switch__opt-name { color: #5a6270; font-size: 13px; }

/* "You'll be charged AED … at checkout" — shown only when a non-AED currency is selected */
.tdb-cur-note {
	display: block;
	margin: 8px 0 0 !important;
	font-size: 12px !important;
	line-height: 1.45;
	color: #8a8f99;
}
.tdb-cur-note[hidden] { display: none !important; }
