/*
 * « EUR (€) » display currency (modules/currency-display.php): the footer button, its menu, and the indicative
 * amount written after a price by currency-display.js.
 */

/* ---------- The note beside a price: secondary text, never larger than the price ---------- */
.gp-fx-amount { display: inline-block; margin-left: .4em; color: var(--muted, inherit); font-family: var(--font-body, inherit); font-size: clamp(.78rem, .64em, 1rem); font-weight: 400; font-style: normal; line-height: 1.25; letter-spacing: 0; text-decoration: none; text-transform: none; white-space: nowrap; vertical-align: baseline; }
ins .gp-fx-amount, a .gp-fx-amount { text-decoration: none; }
/* Narrow places: the note takes its own line under the price instead of pushing it. */
.gp-card__price .gp-fx-amount, .gp-rcard__price .gp-fx-amount, .gp-buybar .gp-fx-amount, .gp-addons__price .gp-fx-amount, .gp-upsell__price .gp-fx-amount, .gp-merci__price .gp-fx-amount, .gp-compare__price .gp-fx-amount, .gp-compare__row .gp-fx-amount, td.product-price .gp-fx-amount, td.product-subtotal .gp-fx-amount, .woocommerce-mini-cart-item .gp-fx-amount { display: block; margin-left: 0; }

/* ---------- The footer button: same outlined button as the language one (theme site.css, .gp-footer__ctl) ---------- */
.gp-fx { display: inline-flex; }
:where(.gp-fx__toggle) { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--accent-ink, currentColor); border-radius: 12px; background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1; cursor: pointer; }
:where(.gp-fx__toggle) .gp-i { width: 20px; height: 20px; }
.gp-fx__toggle::after { content: ""; width: 6px; height: 6px; margin: -3px 2px 0 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; rotate: 45deg; } /* the small chevron of a menu button, as on the language one */
.gp-fx__toggle[aria-expanded="true"]::after { margin-top: 3px; rotate: -135deg; }
.gp-fx__code { font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.gp-footer__controls .gp-fx__toggle { font-size: .9rem; } /* the size of the language code beside it */

/* ---------- The menu: a small dark panel with the accent outline, above the button (set by the script) ---------- */
.gp-fx__menu { position: fixed; inset: auto; box-sizing: border-box; width: min(21rem, calc(100vw - 16px)); max-width: none; max-height: calc(100vh - 16px); margin: 0; padding: 0; overflow: hidden; border: 1.5px solid var(--accent-ink); border-radius: 18px; background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body); letter-spacing: normal; text-align: left; box-shadow: 0 18px 60px rgba(0, 0, 0, .55); }
.gp-fx__menu[open] { display: flex; flex-direction: column; }
.gp-fx__menu::backdrop { background: transparent; }
.gp-fx__inner { min-height: 0; padding: 10px 12px 14px; overflow: hidden auto; overscroll-behavior: contain; }
.gp-fx__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-left: 6px; }
.gp-fx__title { margin: 0; font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.gp-fx__close { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer; }
.gp-fx__close:hover { background: var(--hover); }
.gp-fx__close .gp-i { width: 20px; height: 20px; }
.gp-fx__note { margin: 0 6px 10px; color: var(--ink-2); font-size: .82rem; line-height: 1.45; }
.gp-fx__list { display: grid; gap: 2px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gp-fx__opt { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 12px 6px 8px; border: 1.5px solid transparent; border-radius: 10px; font-size: .92rem; line-height: 1.25; cursor: pointer; }
.gp-fx__opt[hidden] { display: none; }
.gp-fx__opt:hover { background: var(--hover); }
.gp-fx__opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.gp-fx__sign { flex: none; width: 2.4em; font-weight: 700; text-align: center; }
.gp-fx__name { flex: 1; min-width: 0; }
.gp-fx__name strong { font-weight: 700; letter-spacing: .02em; }
.gp-fx__tick { flex: none; display: none; width: 1.1rem; height: 1.1rem; color: var(--accent-ink); }
/* The chosen line: an accent frame and a tick (never colour alone). */
.gp-fx__opt:has(input:checked) { border-color: var(--accent-ink); }
.gp-fx__opt input:checked ~ .gp-fx__tick { display: block; }
.gp-fx__opt input:checked ~ .gp-fx__name { font-weight: 600; }
.gp-fx__opt:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.gp-fx__opt input:focus-visible ~ .gp-fx__name { text-decoration: underline; text-underline-offset: .2em; } /* where :has() is missing */
.gp-fx__rate { margin: 10px 6px 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.gp-fx__rate[hidden] { display: none; }
.gp-fx__menu :focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

@media (max-width: 699.98px) {
	/* Phones: docked at the bottom of the screen, over a dimmed page. */
	.gp-fx__menu { inset: auto 8px 8px; width: auto; }
	.gp-fx__menu::backdrop { background: rgba(10, 11, 13, .5); }
}
@media (forced-colors: active) {
	.gp-fx__opt:has(input:checked) { outline: 2px solid Highlight; outline-offset: -2px; }
}
