.bet-settings-backdrop {
  position: fixed;
  z-index: 25;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 30px;
  background: rgba(0, 0, 0, .66);
}

.bet-settings-backdrop[hidden] { display: none; }
body.bet-settings-open { overflow: hidden; }

.bet-settings-sheet {
  display: flex;
  width: min(100%, 460px);
  min-height: 340px;
  flex-direction: column;
  padding: 9px 10px max(8px, env(safe-area-inset-bottom));
  border-radius: 23px 23px 0 0;
  background: #17181d;
  color: #f8f8fa;
  outline: none;
}

.bet-settings-handle {
  width: 37px;
  height: 4px;
  flex: 0 0 auto;
  align-self: center;
  border-radius: 999px;
  background: #44464d;
}

.bet-settings-header {
  display: flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-bottom: 48px;
}

.bet-settings-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.bet-settings-close {
  position: absolute;
  right: max(13px, calc((100vw - 434px) / 2));
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #292b31;
  color: #f3f3f5;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.bet-settings-amount-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bet-settings-amount-card {
  position: relative;
  display: flex;
  min-width: 0;
  height: 110px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #24262d;
  cursor: text;
}

.bet-settings-amount-card:focus-within { border-color: rgba(46,169,245,.75); }

.bet-settings-amount-symbol {
  flex: 0 0 auto;
  color: #fff;
  font-size: 15px;
}

.bet-settings-amount-card input {
  width: min(58px, calc(100% - 41px));
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  appearance: textfield;
}

.bet-settings-amount-card input::-webkit-inner-spin-button,
.bet-settings-amount-card input::-webkit-outer-spin-button { margin: 0; appearance: none; }

.bet-settings-edit-button {
  position: absolute;
  top: 9px;
  right: 8px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #aeb5c3;
  font-size: 13px;
  cursor: pointer;
}

.bet-settings-error {
  margin: 12px 2px 0;
  color: #ff7e8c;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.bet-settings-error[hidden] { display: none; }

.bet-settings-save {
  min-height: 52px;
  flex: 0 0 auto;
  margin-top: auto;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(180deg, #2ea9f5, #087acb);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.bet-settings-save:disabled {
  background: #343640;
  color: #999ba4;
  cursor: not-allowed;
}

.bet-settings-close:focus-visible,
.bet-settings-edit-button:focus-visible,
.bet-settings-save:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 360px) {
  .bet-settings-header { margin-bottom: 35px; }
  .bet-settings-amount-options { gap: 8px; }
  .bet-settings-amount-card { height: 100px; border-radius: 17px; }
  .bet-settings-amount-card input { font-size: 14px; }
}
