/* One visible action selector; the chosen method opens the amount step below. */
.wallet-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 5px;
  overflow: visible;
  border: 1px solid #e9ebed;
  border-radius: 17px;
  background: #f5f6f7;
}

.wallet-tabs button {
  justify-content: flex-start;
  min-width: 0;
  min-height: 72px;
  padding: 13px 15px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #3f4650;
  white-space: normal;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1);
}

.wallet-tabs button::after {
  content: none;
}

.wallet-tabs button svg {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
}

.wallet-tab-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.wallet-tab-copy strong {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.015em;
}

.wallet-tab-copy small {
  color: #65707a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.wallet-tabs button[aria-selected="true"] {
  color: #201e14;
  background: var(--yellow);
  border-color: #e8d45a;
}

.wallet-tabs button[aria-selected="true"] svg,
.wallet-tabs button[aria-selected="true"] .wallet-tab-copy small {
  color: #514a25;
}

.wallet-tabs button[aria-selected="true"] .glyph-accent {
  fill: #c5aa29;
}

.wallet-tabs button:focus-visible {
  outline: 2px solid #5e5114;
  outline-offset: 3px;
}

.wallet-tabs button:active {
  transform: scale(.985);
}

.wallet-tabs[data-keyboard="true"] button {
  transition: none;
}

.wallet-tabs[data-keyboard="true"] button:active {
  transform: none;
}

/* The full method buttons are the single place to proceed to the calculation. */
.wallet-panel .operation-methods {
  display: none;
}

.wallet-choice-hint,
.wallet-stage-title {
  margin: 0 0 5px;
  color: #5f6872;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}

.wallet-stage-title {
  margin-bottom: 14px;
  color: #333b45;
  font-size: 15px;
  font-weight: 600;
}

.wallet-stage-title:focus {
  outline: none;
}

.wallet-screen[data-stage="choose"] .screen-top {
  display: none;
}

.screen-option {
  cursor: pointer;
  touch-action: manipulation;
}

.screen-option:focus-visible {
  outline: 2px solid #847028;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .wallet-tabs button:not([aria-selected="true"]):hover {
    background: #fff;
    border-color: #e3e6e9;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .wallet-tabs button {
    padding-inline: 10px;
    gap: 8px;
  }

  .wallet-tabs button svg {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }
}

@media (max-width: 760px) {
  .wallet-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 4px;
    overflow: visible;
    border-radius: 16px;
  }

  .wallet-tabs button {
    min-height: 72px;
    padding: 11px 12px;
    gap: 9px;
    border-radius: 11px;
  }

  .wallet-tabs button svg {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
  }

  .wallet-tab-copy strong {
    font-size: 15px;
  }

  .wallet-tab-copy small {
    font-size: 13px;
  }

  .wallet-panel {
    padding-top: 23px;
  }

  .wallet-choice-hint {
    margin-bottom: 4px;
  }

  .wallet-panel[data-stage="choose"] .wallet-demo {
    margin-top: 18px;
  }

  .wallet-stage-title {
    margin-bottom: 12px;
  }
}

@media (max-width: 359px) {
  .wallet-tabs button {
    padding-inline: 9px;
    gap: 7px;
  }

  .wallet-tabs button svg {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wallet-tabs button {
    transition: none;
  }

  .wallet-tabs button:active {
    transform: none;
  }
}
