/* Amounts and payment methods have separate, full-width touch targets. */
#calculator{padding:28px;border:1px solid #e9edf4;border-radius:20px}
#calculator .card-heading{margin-bottom:28px;gap:16px}
#calculator .card-kicker{display:block;font-size:11px;font-weight:500;line-height:1.6;color:#7c89a0}
#calculator .card-heading h2{margin:6px 0 0;font-size:23px;line-height:1.5}
#calculator .shield{width:40px;height:40px;border-radius:12px;flex:none}
#calculator .shield svg{width:22px;height:22px}
#calculator .field-label{margin:0 0 9px;font-size:14px;line-height:1.6;font-weight:500;color:#56647b}
#calculator .amount-box{display:flex;flex-direction:column;align-items:stretch;gap:0;height:auto;padding:0;border:1px solid #e0e7f1;border-radius:14px;background:#fff;transition:border-color .15s}
#calculator .amount-value{display:flex;align-items:center;gap:12px;min-height:68px;padding:14px 18px}
#calculator .amount-box input,#calculator .amount-box output{flex:1;width:0;min-width:0;font:700 28px/1.4 'Manrope',Arial,sans-serif;letter-spacing:-.5px;direction:ltr;unicode-bidi:isolate;color:#182841;background:transparent}
#calculator .amount-box input{cursor:text}
#calculator .amount-box input:focus-visible{outline:0}
#calculator input[type=number]{appearance:textfield;-moz-appearance:textfield}
#calculator input::-webkit-inner-spin-button,#calculator input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#calculator .currency-code{flex:none;direction:ltr;unicode-bidi:isolate;font:600 13px/1.5 'DM Sans',Arial,sans-serif;color:#718098}
#calculator .currency-select{position:relative;display:grid;grid-template-columns:36px minmax(0,1fr) auto 14px;align-items:center;column-gap:11px;flex:none;width:100%;max-width:none;min-width:0;min-height:71px;padding:12px 18px;border:0;border-top:1px solid #e7edf5;border-radius:0 0 13px 13px;background:#f7f9fd;cursor:pointer;transition:background .15s}
#calculator .currency-select::after{content:none}
#calculator .currency-select:hover,#calculator .currency-select.picker-open{background:#edf3ff}
#calculator .coin-image{grid-column:1;grid-row:1;width:36px;height:36px;box-shadow:0 0 0 1px #1828410a}
#calculator .currency-details{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:2px;min-width:0;text-align:start}
#calculator .currency-caption{font:500 11px/1.5 var(--font);color:#748198}
#calculator .currency-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px 7px;min-width:0;font:700 14px/1.5 var(--font);color:#263650;overflow-wrap:anywhere}
.currency-network{display:inline-block;flex:none;padding:2px 5px;border:1px solid #dce5f1;border-radius:4px;font:600 9px/1.3 'DM Sans',Arial,sans-serif;color:#657791;background:#eef2f8;white-space:nowrap}
#calculator .currency-change{grid-column:3;grid-row:1;font:600 12px/1.5 var(--font);color:#346edb}
#calculator .currency-chevron{grid-column:4;grid-row:1;width:14px;height:14px;color:#346edb;pointer-events:none;transition:transform .15s}
#calculator .picker-open .currency-chevron{transform:rotate(180deg)}
#calculator .currency-trigger{position:absolute;inset:0;z-index:1;width:100%;height:100%;padding:0;border:0;border-radius:0 0 13px 13px;background:transparent;cursor:pointer}
#calculator .currency-trigger:disabled{cursor:wait}
#calculator .currency-trigger:focus-visible{outline:2px solid #3474f6;outline-offset:-3px}
#calculator .swap-row{margin:11px 0;gap:12px}
#calculator .swap-line{background:#e9edf4}
#calculator .swap-button{width:32px;height:32px;font-size:18px;flex:none;background:#f7f9ff}
#calculator .rate-line{justify-content:center;gap:8px;min-height:48px;padding:12px 0;font-size:12px;line-height:1.6}
#calculator .market-line{margin:0 auto 8px;max-width:520px;font-size:11px;line-height:1.7;text-align:center;color:#8b97ac}
#calculator .info-button{width:18px;height:18px;line-height:16px;font-size:10px}
#calculator .exchange-button{display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;border-radius:10px;font-size:16px;line-height:1.5}
#calculator .exchange-button .dir-arrow{margin:0;font:20px/1 Arial,sans-serif}
#calculator .terms-note{max-width:360px;margin:14px auto 0;font-size:12px;line-height:1.85;text-wrap:pretty;color:#758299}

/* Search stays visible while the payment methods scroll. */
.currency-menu{position:fixed;z-index:50;display:flex;flex-direction:column;overflow:hidden;padding:16px 8px 8px;border:1px solid #dce5f2;border-radius:16px;background:#fff;box-shadow:0 18px 60px #15223a2b;color:#263650;font-family:var(--font)}
.currency-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 8px 12px;flex:none}
.currency-menu-title{margin:0;font:700 16px/1.5 var(--font);letter-spacing:0}
.currency-menu-close{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid #e5eaf3;border-radius:8px;background:#f7f9fc;color:#718098;cursor:pointer;flex:none}
.currency-menu-close:hover{background:#edf3ff;color:#346edb}
.currency-menu-close svg{width:16px;height:16px}
.currency-search{display:flex;align-items:center;gap:9px;margin:0 8px 10px;padding:0 12px;min-height:44px;border:1px solid #e0e7f1;border-radius:10px;background:#f7f9fc;flex:none}
.currency-search:focus-within{border-color:#6595ef;box-shadow:0 0 0 3px #3474f610}
.currency-search>svg{width:17px;height:17px;flex:none;color:#8391a6}
.currency-search input{width:100%;min-width:0;padding:10px 0;border:0;outline:0;background:transparent;color:inherit;font:500 13px/1.6 var(--font)}
.currency-search input:focus-visible{outline:0}
.currency-search input::placeholder{color:#7c8aa0;opacity:1}
.currency-options{position:relative;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:4px;outline:0}
.currency-option{display:flex;align-items:center;gap:12px;min-height:66px;margin:3px 0;padding:10px 12px;border:1px solid transparent;border-radius:10px;cursor:pointer;text-align:start}
.currency-option img{width:36px;height:36px;object-fit:contain;border-radius:50%;background:#fff;flex:none}
.currency-option-text{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.currency-option b{font-size:14px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.currency-option-meta{display:flex;align-items:center;gap:8px}
.currency-option small{font:500 11px/1.4 'DM Sans',Arial,sans-serif;color:#7b89a0}
.currency-option.highlighted{background:#f3f6fc;border-color:#dce6f5}
.currency-option[aria-selected=true]{background:#edf3ff;border-color:#c8dafa;color:#2e66d9}
.currency-option[aria-selected=true].highlighted{border-color:#6998f0}
.currency-check{width:21px;height:21px;flex:none;visibility:hidden;padding:3px;border-radius:50%;background:#3474f6;color:#fff}
.currency-option[aria-selected=true] .currency-check{visibility:visible}
.currency-empty{padding:24px 16px;text-align:center;overflow-y:auto}
.currency-empty b{font-size:14px}
.currency-empty p{margin:6px 0 14px;font-size:12px;color:#7b89a0}
.currency-clear{border:0;background:transparent;color:#346edb;font:700 13px var(--font);padding:8px 12px;cursor:pointer}
html:lang(ar) #calculator .currency-name,html:lang(ar) .currency-option b{font-size:16px}
html:lang(ar) #calculator .currency-caption{font-size:12px}
html:lang(ar) #calculator .currency-change{font-size:14px}
html:lang(ar) .currency-menu-title{font-size:18px}
html:lang(ar) .currency-search input{font-size:14px}
[data-theme=dark] #calculator{border-color:#2b3951}
[data-theme=dark] #calculator .amount-box{background:#111c2d;border-color:#34425b}
[data-theme=dark] #calculator .currency-select{border-color:#293951;background:#1c2b42}
[data-theme=dark] #calculator .currency-select:hover,[data-theme=dark] #calculator .currency-select.picker-open{background:#253754}
[data-theme=dark] #calculator .amount-box input,[data-theme=dark] #calculator .amount-box output,[data-theme=dark] #calculator .currency-name{color:#e4eaf5}
[data-theme=dark] #calculator .field-label,[data-theme=dark] #calculator .terms-note,[data-theme=dark] #calculator .card-kicker,[data-theme=dark] #calculator .currency-code{color:#abb8cf}
[data-theme=dark] #calculator .currency-caption{color:#9eafc8}
[data-theme=dark] #calculator .currency-change,[data-theme=dark] #calculator .currency-chevron,[data-theme=dark] .currency-clear{color:#93b9ff}
[data-theme=dark] .currency-network{border-color:#40536e;background:#263a53;color:#bacce7}
[data-theme=dark] #calculator .swap-button{background:#25344d}
[data-theme=dark] #calculator .swap-line{background:#2b3951}
[data-theme=dark] .currency-menu{background:#182336;border-color:#3a4c68;color:#e4eaf5;box-shadow:0 18px 60px #0007}
[data-theme=dark] .currency-search,[data-theme=dark] .currency-menu-close{background:#111c2d;border-color:#34425b;color:#abb8cf}
[data-theme=dark] .currency-search input{color:#e4eaf5;background:transparent}
[data-theme=dark] .currency-search input::placeholder{color:#96a6bf}
[data-theme=dark] .currency-search:focus-within{border-color:#719ce9}
[data-theme=dark] .currency-option.highlighted{background:#25344d;border-color:#3a4c68}
[data-theme=dark] .currency-option[aria-selected=true]{background:#243958;border-color:#46699f;color:#bdd3ff}
[data-theme=dark] .currency-option[aria-selected=true].highlighted{border-color:#7aa8f5}
[data-theme=dark] .currency-option small,[data-theme=dark] .currency-empty p{color:#abb8cf}
@media(max-width:480px){
  #calculator{padding:22px 18px;border-radius:16px}
  #calculator .card-heading{margin-bottom:22px}
  #calculator .card-heading h2{font-size:21px}
  #calculator .amount-value{padding:13px 14px;min-height:65px}
  #calculator .amount-box input,#calculator .amount-box output{font-size:26px}
  #calculator .currency-select{padding:11px 14px;column-gap:9px;grid-template-columns:34px minmax(0,1fr) auto 12px}
  #calculator .coin-image{width:34px;height:34px}
  #calculator .currency-name{font-size:13px}
  .currency-menu{padding-top:12px}
  .currency-menu-close{width:36px;height:36px}
}
@media(max-width:360px){
  #calculator{padding:20px 14px}
  #calculator .currency-select{padding-inline:12px;column-gap:7px}
  #calculator .amount-value{padding-inline:12px}
}
