.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;
  z-index: 100;
}

.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: 10px;
}

.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;
}

/* Exposure Table */
.exposureTable {
  margin-top: 16px;
  margin-bottom: 12px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.exposureRow {
  display: flex;
  padding: 4px 5px;
  /* border-bottom: 1px solid #f0f0f0; */
}

.exposureRow:last-child {
  border-bottom: none;
}

.exposureCol {
  padding: 0 5px;
  font-size: 12px;
}

.exposureColLeft {
  flex: 1;
  text-align: left;
}

.exposureColCenter {
  flex: 1;
  text-align: center;
}

.exposureColRight {
  flex: 1;
  text-align: right;
}

.exposureValue {
  font-weight: bold;
}

.exposureValue.positive {
  color: green;
}

.exposureValue.negative {
  color: red;
}

/* Confirm Bet Content */
.confirmBetContent {
  border: 1px solid #000;
  margin: 16px 0 10px;
  padding: 16px 10px 22px;
  border-radius: 2px;
  text-align: center;
  float: left;
  width: 100%;
  display: flex;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.confirmBetContent>div {
  width: 33.33%;
  float: left;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.confirmBetLabel {
  text-transform: uppercase;
  margin-bottom: 0;
  font-size: 12px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

.confirmBetValue {
  margin-bottom: 0;
  font-size: 14px;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif !important;
}

/* Flash Message Styles */
.masterFlashMessage {
  position: fixed;
  bottom: 0;
  right: 0;
  z-index: 100001;
  margin: 0;
  width: 100%;
}

.flashWrapper {
  width: 100%;
}

.flashMessage {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px 30px 10px 15px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background-color: #ccc;
  position: relative;
  font-size: 14px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flashMessageSuccess {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px 30px 10px 15px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  font-size: 14px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background-color: #3c763d;
  border-color: #3c763d;
}

.flashMessageError {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 10px 30px 10px 15px;
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  position: relative;
  font-size: 14px;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background-color: #a94442;
  border-color: #a94442;
}

.flashMessageContent {
  flex: 1;
}

.flashCloseButton {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  padding: 0;
  margin-left: 15px;
  cursor: pointer;
  opacity: 0.8;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flashCloseButton:hover {
  opacity: 1;
}

.flashCloseButton span {
  display: block;
  line-height: 1;
}