/* 코인 충전 창. 모양은 v8의 .dlg와 맞춘다. */
.side-pill.coin { background: #ffd23f; font-weight: 700; }
.coin-layer { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(21, 21, 21, .35); }
.coin-layer[hidden] { display: none; }
.coin-box { width: min(420px, 100%); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; border: 2px solid var(--ink); border-radius: 22px; background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.coin-box header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 8px; background: var(--cream); }
.coin-box h2 { margin: 0; font-size: 17px; }
.coin-box .x { width: 34px; height: 34px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font-size: 18px; line-height: 1; }
.coin-step { padding: 4px 18px 0; }
.coin-step[hidden] { display: none; }
.coin-lead { margin: 0 0 12px; font-size: 13px; }
.coin-field { display: grid; gap: 6px; font-size: 12px; }
.coin-field input { width: 100%; padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); }
.coin-help { margin: 6px 0 12px; font-size: 11px; opacity: .65; }
.coin-field[hidden], .coin-help[hidden] { display: none; }
.coin-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.coin-item { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; text-align: left; }
.coin-item[aria-checked="true"] { background: var(--lemon); box-shadow: 0 3px 0 var(--ink); }
.coin-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.coin-amt { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.coin-item b { font-size: 12px; opacity: .75; }
.coin-ico { width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23FFD400'/%3E%3Cpath d='M15.6 8.7a5 5 0 1 0 0 6.6' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.coin-err { min-height: 0; margin: 8px 0 0; font-size: 12px; color: #d93a3a; }
.coin-err:empty { display: none; }
.coin-step .solid { margin: 14px 0 6px; width: 100%; }
.coin-step .solid:disabled { opacity: .5; cursor: default; }
.coin-sum { display: grid; gap: 2px; margin: 0 0 8px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: #fff; font-size: 14px; }
.coin-sum span { font-size: 11px; font-weight: 600; opacity: .7; word-break: break-all; }
#coinMethods, #coinAgreement { margin: 0 -6px; }
.coin-back[hidden] { display: none; }
.coin-back { display: block; margin: 0 auto 4px; padding: 6px 10px; border: 0; background: none; font-size: 12px; text-decoration: underline; opacity: .7; }
.coin-legal { padding: 10px 18px 16px; font-size: 10px; font-weight: 500; line-height: 1.5; opacity: .6; }
.coin-legal p { margin: 0 0 4px; }
.coin-legal a { color: inherit; }

/* on a phone the coin window is a bottom sheet like the others */
@media (max-width: 520px) {
  .coin-layer { align-items: flex-end; padding: 0; }
  .coin-box { width: 100%; max-height: 88dvh; border-bottom: 0; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .coin-box header { padding-top: 20px; }
  .coin-box header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #d7d2bd; }
}
.coin-fx { grid-column: 1 / -1; margin: 2px 2px 0; font-size: 11.5px; line-height: 1.45; opacity: .7; }
