.poem-currency {
position: relative;
display: inline-block;
width: max-content;
vertical-align: middle;
}
.poem-currency--floating {
position: fixed;
left: max(22px, calc(env(safe-area-inset-left) + 8px));
bottom: max(22px, calc(env(safe-area-inset-bottom) + 10px));
z-index: var(--poem-currency-layer, 60);
opacity: 0;
visibility: hidden;
pointer-events: none;
transform: translateY(6px);
transition: opacity 180ms ease, transform 220ms cubic-bezier(.2,.7,.25,1);
}
.poem-currency--floating.is-visible {
opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(0);
}
html.acx-lock .poem-currency--floating,
body:has([data-acx-drawer].is-open) .poem-currency--floating {
visibility: hidden;
pointer-events: none;
}
.poem-currency .poem-currency__trigger {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
gap: 11px;
min-width: 74px;
min-height: 40px;
margin: 0;
padding: 0 12px;
border: 1px solid #d4d4d4;
border-radius: 0;
background: #fff;
color: #111;
font: 600 10px/1 "DM Sans", "Helvetica Neue", Arial, sans-serif;
letter-spacing: .14em;
box-shadow: 0 4px 16px rgba(0,0,0,.07);
cursor: pointer;
transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.poem-currency .poem-currency__trigger:hover {
border-color: #111;
background: #f3f3f3;
box-shadow: 0 5px 18px rgba(0,0,0,.12);
}
.poem-currency__chevron {
width: 5px;
height: 5px;
border-right: 1px solid;
border-bottom: 1px solid;
transform: translateY(-1px) rotate(45deg);
}
html:has(.poem-destination[open]) { overflow: hidden; }
.poem-destination {
--poem-paper: #fff;
--poem-ink: #111;
--poem-muted: #5e5e5e;
--poem-edge: #e4e4e4;
--poem-wash: #f5f5f5;
--poem-gutter: 24px;
--poem-motion: cubic-bezier(.2,.7,.25,1);
box-sizing: border-box;
width: min(480px, calc(100% - 32px));
max-height: min(76vh, 590px);
max-height: min(76dvh, 590px);
margin: auto;
padding: 0;
overflow: hidden;
border: 1px solid var(--poem-edge);
border-radius: 0;
background: var(--poem-paper);
color: var(--poem-ink);
font: 400 14px/1.4 "DM Sans", "Helvetica Neue", Arial, sans-serif;
box-shadow: 0 22px 72px rgba(0,0,0,.18);
}
.poem-destination[open] {
display: flex;
flex-direction: column;
animation: poem-destination-enter 240ms var(--poem-motion) both;
}
.poem-destination[open][data-poem-closing] {
animation: poem-destination-exit 170ms ease-in both;
pointer-events: none;
}
.poem-destination::backdrop {
background: rgba(0,0,0,.42);
animation: poem-backdrop-enter 210ms ease-out both;
}
.poem-destination[data-poem-closing]::backdrop {
animation: poem-backdrop-exit 170ms ease-in both;
}
.poem-destination__head {
display: flex;
flex: none;
align-items: center;
justify-content: space-between;
gap: 10px;
min-height: 70px;
padding: 0 calc(var(--poem-gutter) - 9px) 0 var(--poem-gutter);
border-bottom: 1px solid var(--poem-edge);
}
.poem-destination__head h2 {
margin: 0;
color: inherit;
text-transform: none;
font: 500 clamp(16px, 4.5vw, 19px)/1.25 Archivo, "Helvetica Neue", Arial, sans-serif;
letter-spacing: -.01em;
}
.poem-destination button {
box-sizing: border-box;
margin: 0;
border: 0;
border-radius: 0;
background: transparent;
color: inherit;
font: inherit;
box-shadow: none;
cursor: pointer;
}
.poem-destination .poem-destination__icon-button {
display: grid;
flex: 0 0 44px;
width: 44px;
height: 44px;
padding: 0;
place-items: center;
color: var(--poem-muted);
transition: background-color 150ms ease, color 150ms ease;
}
.poem-destination .poem-destination__icon-button:hover {
background: var(--poem-wash);
color: var(--poem-ink);
}
.poem-destination__cross {
position: relative;
width: 15px;
height: 15px;
}
.poem-destination__cross::before,
.poem-destination__cross::after {
content: "";
position: absolute;
top: 7px;
left: 0;
width: 100%;
height: 1px;
background: currentColor;
transform: rotate(45deg);
}
.poem-destination__cross::after { transform: rotate(-45deg); }
.poem-destination__search {
position: relative;
flex: none;
margin: 16px var(--poem-gutter) 9px;
}
.poem-destination__lens {
box-sizing: border-box;
position: absolute;
top: 15px;
left: 14px;
width: 12px;
height: 12px;
border: 1px solid var(--poem-muted);
border-radius: 50%;
pointer-events: none;
}
.poem-destination__lens::after {
content: "";
position: absolute;
right: -4px;
bottom: -2px;
width: 5px;
height: 1px;
background: var(--poem-muted);
transform: rotate(45deg);
}
.poem-destination__search input[type="search"] {
box-sizing: border-box;
display: block;
width: 100%;
min-height: 46px;
margin: 0;
padding: 0 44px 0 38px;
border: 1px solid #d4d4d4;
border-radius: 0;
background: #fff;
color: var(--poem-ink);
font: 400 16px/1.25 "DM Sans", "Helvetica Neue", Arial, sans-serif;
box-shadow: none;
transition: border-color 160ms ease;
}
.poem-destination__search input[type="search"]::placeholder { color: var(--poem-muted); opacity: 1; }
.poem-destination__search input[type="search"]::-webkit-search-cancel-button { display: none; }
.poem-destination [data-poem-clear] {
position: absolute;
top: 1px;
right: 1px;
}
.poem-destination__results {
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: #b1b1b1 transparent;
margin: 0 0 10px;
padding: 0 var(--poem-gutter);
}
.poem-destination .poem-destination__list {
padding: 0;
margin: 0;
list-style: none;
}
.poem-destination__list li { border-bottom: 1px solid var(--poem-edge); }
.poem-destination__list li:last-child { border-bottom: 0; }
.poem-destination [hidden] { display: none !important; }
.poem-destination .poem-destination__list button {
display: grid;
grid-template-columns: minmax(0,1fr) max-content 12px;
align-items: center;
gap: 11px;
width: 100%;
min-height: 51px;
padding: 8px 9px;
text-align: left;
white-space: normal;
text-transform: none;
transition: background-color 150ms ease;
}
.poem-destination__country { overflow-wrap: anywhere; }
.poem-destination__currency {
color: var(--poem-muted);
font-size: 10px;
font-weight: 500;
letter-spacing: .09em;
white-space: nowrap;
}
.poem-destination .poem-destination__list button:hover,
.poem-destination .poem-destination__list button[aria-pressed="true"] { background: var(--poem-wash); }
.poem-destination__check {
justify-self: center;
width: 8px;
height: 4px;
border-left: 1px solid currentColor;
border-bottom: 1px solid currentColor;
opacity: 0;
transform: translateY(-1px) rotate(-45deg);
}
.poem-destination button[aria-pressed="true"] .poem-destination__check { opacity: 1; }
.poem-destination :focus-visible,
.poem-currency .poem-currency__trigger:focus-visible {
outline: 1px solid currentColor;
outline-offset: -3px;
}
.poem-destination__empty { margin: 20px 0; color: var(--poem-muted); }
.poem-destination__note {
flex: none;
margin: 0;
padding: 11px var(--poem-gutter);
border-top: 1px solid var(--poem-edge);
color: var(--poem-muted);
font-size: 12px;
}
.poem-destination[aria-busy="true"] .poem-destination__results { opacity: .68; }
.poem-destination[aria-busy="true"] .poem-destination__list button { cursor: progress; }
[data-poem-original][hidden] { display: none !important; }
@keyframes poem-destination-enter {
from { opacity: 0; transform: translateY(var(--poem-entry, 10px)) scale(.99); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes poem-destination-exit {
from { opacity: 1; transform: translateY(0) scale(1); }
to { opacity: 0; transform: translateY(var(--poem-entry, 10px)) scale(.99); }
}
@keyframes poem-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes poem-backdrop-exit { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 767px) {
.poem-currency--floating {
left: max(14px, calc(env(safe-area-inset-left) + 8px));
bottom: max(14px, calc(env(safe-area-inset-bottom) + 8px));
}
.poem-currency .poem-currency__trigger { min-height: 44px; }
.poem-destination {
--poem-gutter: 16px;
--poem-entry: 20px;
width: calc(100% - 20px);
margin: auto auto max(10px, env(safe-area-inset-bottom));
}
.poem-destination__head { min-height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
.poem-destination[open],
.poem-destination[open][data-poem-closing],
.poem-destination::backdrop,
.poem-destination[data-poem-closing]::backdrop { animation: none; }
.poem-destination *,
.poem-currency--floating,
.poem-currency .poem-currency__trigger { transition: none; }
} body .poem-currency button.poem-currency__trigger[data-poem-open] {
background: #fff !important;
border-color: #d4d4d4 !important;
color: #111 !important;
}
body .poem-currency button.poem-currency__trigger[data-poem-open]:is(:hover, :focus-visible, :active) {
background: #f3f3f3 !important;
border-color: #111 !important;
color: #111 !important;
}
#poem-currency-dialog {
background: #fff !important;
color: #111 !important;
}
#poem-currency-dialog :is(button[data-poem-close], button[data-poem-clear], button[data-poem-select]) {
appearance: none;
-webkit-tap-highlight-color: transparent;
background: transparent !important;
border: 0 !important;
color: #111 !important;
text-decoration: none !important;
}
#poem-currency-dialog :is(button[data-poem-close], button[data-poem-clear], button[data-poem-select]):is(:hover, :focus-visible, :active),
#poem-currency-dialog button[data-poem-select][aria-pressed="true"] {
background: #f5f5f5 !important;
color: #111 !important;
}
#poem-currency-dialog input[data-poem-search] {
appearance: none;
-webkit-tap-highlight-color: transparent;
background: #fff !important;
border: 1px solid #d4d4d4 !important;
color: #111 !important;
box-shadow: none !important;
caret-color: #111;
}
#poem-currency-dialog input[data-poem-search]:focus {
border-color: #111 !important;
outline: none;
}
#poem-currency-dialog :is(button[data-poem-close], button[data-poem-clear], button[data-poem-select]):focus-visible,
body .poem-currency button.poem-currency__trigger[data-poem-open]:focus-visible {
outline: 1px solid #111 !important;
outline-offset: -3px;
}
body .poem-currency button.poem-currency__trigger[data-poem-open] {
-webkit-tap-highlight-color: transparent;
}