.modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.4);
  transition: opacity 0.3s ease;
}

.modalOverlay.open {
  opacity: 1;
}

.modalOverlay.closed {
  opacity: 0;
}

.modalContent {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 97%;
  max-width: 100%;
  max-height: 80vh;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom: 4px solid #72bbef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 8px;
  overflow-y: auto;
  transition: transform 0.3s ease, border-bottom-color 0.3s ease;
}

.modalContent.lay {
  border-bottom-color: #faa9ba;
}

.modalContent.back {
  border-bottom-color: #72bbef;
}

.modalContent.open {
  transform: translateX(-50%) translateY(0);
}

.modalContent.closed {
  transform: translateX(-50%) translateY(100%);
}

.header {
  margin-bottom: 16px;
}

.headerTitle {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  padding-bottom: 8px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.betItems {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.betItem {
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 16px;
}

.controlsRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.oddsControl {
  display: flex;
  align-items: center;
}

.controlButton {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  background-color: #0f2327;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.controlButton:hover {
  opacity: 0.9;
}

.oddsInput {
  height: 35px;
  width: 80px;
  padding: 0 8px;
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  outline: none;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.oddsInput:focus {
  border-color: #72bbef;
}

.stakeInput {
  flex: 1;
  height: 35px;
  padding: 0 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: left;
  outline: none;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.stakeInput:focus {
  border-color: #72bbef;
  box-shadow: 0 0 0 2px rgba(114, 187, 239, 0.2);
}

.quickStakes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
}

.quickStakeButton {
  height: 29px;
  font-size: 12px;
  background-color: #0f2327;
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.quickStakeButton:hover {
  opacity: 0.9;
}

.actionButtons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.actionButton {
  flex: 1;
  height: 48px;
  font-size: 12px;
  border: 1px solid #222;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.cancelButton {
  background-color: #fff;
  color: #000;
}

.cancelButton:hover {
  background-color: #f5f5f5;
}

.submitButton {
  background-color: #2c4f58;
  color: #fff;
  border: none;
}

.submitButton:hover {
  background-color: rgba(44, 79, 88, 0.9);
}

.submitButtonContent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.submitButtonText {
  font-size: 12px;
}

.profitText {
  font-size: 8px;
  margin-top: 2px;
}

.confirmSection {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 8px 0 8px;
  font-size: 12px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.toggleContainer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggleSwitch {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  width: 64px;
  border-radius: 12px;
  transition: background-color 0.3s ease;
  cursor: pointer;
  outline: none;
}

.toggleSwitch.on {
  background-color: #000;
}

.toggleSwitch.off {
  background-color: #fff;
  border: 1px solid #ddd;
}

.toggleSlider {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 0.5px solid #999;
}

.toggleSwitch.on .toggleSlider {
  transform: translateX(36px);
}

.toggleSwitch.off .toggleSlider {
  transform: translateX(-4px);
}

.toggleLabel {
  position: absolute;
  font-size: 10px;
  font-weight: 700;
  transition: opacity 0.2s ease;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.toggleSwitch.on .toggleLabel {
  left: 8px;
  color: #fff;
  opacity: 1;
}

.toggleSwitch.off .toggleLabel {
  right: 8px;
  color: #666;
  opacity: 1;
}

