/* client/account-dialog.css */
#ew-account {
  box-sizing: border-box;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 24px 28px;
  color: #e8e1cb;
  background: #101b19;
  border: 1px solid #8c6e42;
  font: 16px/1.5 system-ui, sans-serif;
  overflow: auto;
}
#ew-account::backdrop {
  background: rgb(0 0 0 / 72%);
}
#ew-account [hidden] {
  display: none !important;
}
#ew-account header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
#ew-account h2 {
  margin: 0;
  flex: 1;
  font: 400 30px/1.2 Georgia, serif;
}
#ew-account p {
  margin: 12px 0;
}
#ew-account-identity {
  font-weight: 600;
  overflow-wrap: anywhere;
}
#ew-account-status {
  color: #e7c489;
  overflow-wrap: anywhere;
}
#ew-account button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #8c6e42;
  background: #26312b;
  color: #e8e1cb;
  font: inherit;
  cursor: pointer;
}
#ew-account button:hover:not(:disabled) {
  background: #344439;
}
#ew-account button:active:not(:disabled) {
  background: #1d2923;
}
#ew-account button:disabled {
  opacity: .55;
  cursor: default;
}
#ew-account button.primary {
  background: #64451d;
}
#ew-account button.primary:hover:not(:disabled) {
  background: #805b2c;
}
#ew-account button:focus-visible,
#ew-account textarea:focus-visible {
  outline: 2px solid #e7c489;
  outline-offset: 3px;
}
#ew-account-close {
  width: 44px;
  padding: 0 !important;
  font-size: 26px !important;
  border-color: transparent !important;
  background: transparent !important;
}
#ew-account label {
  display: block;
  margin: 20px 0 8px;
  font-weight: 600;
}
#ew-account textarea {
  box-sizing: border-box;
  resize: none;
  width: 100%;
  padding: 12px;
  background: #13201a;
  border: 1px solid #8c6e42;
  color: #e8e1cb;
  font: 16px/1.7 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
#ew-account .hint {
  color: #bec9bf;
  font-size: 14px;
}
#ew-account .links {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}
#ew-account .links button {
  flex: 1;
  min-width: 130px;
}
#ew-account .signin-methods {
  display: grid;
  gap: 12px;
  margin: 16px 0 24px;
}
#ew-account-google {
  display: flex;
  justify-content: center;
  min-height: 40px;
  font-size: 14px;
  color: #e7c489;
}
#ew-account-wallet-login {
  width: 100%;
}
#ew-account-signin-wallet > div:first-child {
  display: grid;
  gap: 12px;
}
#ew-account-signin-wallet button {
  overflow-wrap: anywhere;
}
#ew-account summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: #e7c489;
  list-style: none;
}
#ew-account summary::after {
  content: "+";
  margin-left: auto;
  font-size: 20px;
}
#ew-account details[open] > summary::after {
  content: "\2212";
}
#ew-account summary:focus-visible {
  outline: 2px solid #e7c489;
  outline-offset: 3px;
}
#ew-account details .links {
  margin-bottom: 0;
}
#ew-account-register,
#ew-account-saved {
  width: 100%;
}
#ew-account-saved {
  margin-top: 20px;
}
@media (max-width: 480px) {
  #ew-account {
    padding: 20px;
  }
  #ew-account h2 {
    font-size: 26px;
  }
}
#ew-account-wallet > div:first-of-type {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#ew-account-wallet .wallet-address {
  overflow-wrap: anywhere;
  font: 14px/1.6 ui-monospace, monospace;
  color: #e8e1cb;
  margin: 4px 0 8px;
}
#ew-account-wallet button {
  overflow-wrap: anywhere;
}
#ew-account-payment > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#ew-account-payment .wallet-address {
  overflow-wrap: anywhere;
  font: 13px/1.5 ui-monospace, monospace;
  margin: 0 0 8px;
}
#ew-account-payment .hint {
  margin: 4px 0 0;
}
#ew-account-payment a {
  color: #e7c489;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
#ew-account-payment a:focus-visible {
  outline: 2px solid #e7c489;
  outline-offset: 3px;
}
#ew-account-payment .payment-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 12px 0 20px;
}
#ew-account-payment .payment-totals dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#ew-account-payment .payment-totals dt:last-of-type,
#ew-account-payment .payment-totals dd:last-of-type {
  padding-top: 10px;
  border-top: 1px solid #8c6e42;
  font-weight: 600;
}
#ew-account .traveller-seal {
  width: 30px;
  height: 38px;
  flex: none;
  fill: none;
  stroke: #b59461;
  stroke-width: 1.5;
  stroke-linejoin: bevel;
}
#ew-account-return {
  width: 100%;
  margin-top: 12px;
}
#ew-account header {
  padding-bottom: 16px;
  border-bottom: 1px solid #655537;
}
#ew-account-retry {
  width: 100%;
  margin-top: 12px;
}
#ew-account .wallet-icon {
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 4px;
}
#ew-account-bank .bank-balance {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 4px;
}
#ew-account-bank .bank-amount {
  font: 400 40px/1.1 Georgia, serif;
  color: #f0c674;
}
#ew-account-bank .bank-unit {
  font-size: 18px;
  color: #e7c489;
}
#ew-account-bank .wallet-address {
  overflow-wrap: anywhere;
  font: 14px/1.6 ui-monospace, monospace;
  margin: 4px 0 8px;
}
#ew-account-bank form {
  display: grid;
  gap: 10px;
}
#ew-account-bank input {
  box-sizing: border-box;
  min-height: 44px;
  width: 100%;
  padding: 10px 12px;
  background: #13201a;
  border: 1px solid #8c6e42;
  color: #e8e1cb;
  font: 16px ui-monospace, monospace;
}
#ew-account-bank input:focus-visible {
  outline: 2px solid #e7c489;
  outline-offset: 3px;
}
#ew-account-bank .bank-row {
  display: flex;
  gap: 10px;
}
#ew-account-bank .bank-row button {
  flex: 0 0 auto;
}
#ew-account-bank .bank-recent {
  margin: 0;
  padding-left: 20px;
  color: #bec9bf;
  font-size: 14px;
}
