/* v0.9.56 — targeted Poker raise-control visibility fix. */

/* The complete live-action grid now fits exactly inside the fixed Poker
   betting bar. This prevents the lower raise buttons from being clipped. */
#pokerApp #pokerActionControls.poker-action-controls-v048:not(.hidden) {
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
  padding: 4px 8px !important;
  grid-template-rows: 38px 68px !important;
  gap: 4px !important;
  align-content: start !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-action-head-v048 {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-action-bar-v048 {
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  grid-template-rows: 68px !important;
  align-items: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-action-bar-v048 > .poker-raise-control-v046 {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  align-self: center !important;
  height: 60px !important;
  min-height: 60px !important;
  max-height: 60px !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: 20px 34px !important;
  gap: 2px !important;
  padding: 0 !important;
  align-content: center !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-raise-slider-stack {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  grid-template-rows: 20px !important;
  align-items: center !important;
  width: 100% !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  margin: 0 !important;
  padding: 0 3px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

#pokerApp #pokerActionControls .poker-raise-slider-stack > label {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}

#pokerApp #pokerActionControls .poker-raise-slider-stack > .poker-raise-range-v046 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
}

#pokerApp #pokerActionControls .poker-raise-buttons-v046 {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  display: grid !important;
  grid-template-columns: 38px minmax(68px, 1fr) 38px !important;
  grid-template-rows: 28px !important;
  align-items: center !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 3px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-raise-buttons-v046 > button,
#pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  grid-row: 1 !important;
  align-self: center !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  transform: none !important;
  box-sizing: border-box !important;
}

#pokerApp #pokerActionControls .poker-raise-buttons-v046 > :nth-child(1) { grid-column: 1 !important; }
#pokerApp #pokerActionControls .poker-raise-buttons-v046 > :nth-child(2) { grid-column: 2 !important; }
#pokerApp #pokerActionControls .poker-raise-buttons-v046 > :nth-child(3) { grid-column: 3 !important; }

@media (max-width: 800px) {
  #pokerApp #pokerActionControls.poker-action-controls-v048:not(.hidden) {
    height: 276px !important;
    min-height: 276px !important;
    max-height: 276px !important;
    padding: 0 !important;
    grid-template-rows: 42px 142px !important;
    gap: 8px !important;
    align-content: center !important;
  }

  #pokerApp #pokerActionControls .poker-action-head-v048 {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  #pokerApp #pokerActionControls .poker-action-bar-v048 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 56px 78px !important;
    height: 142px !important;
    min-height: 142px !important;
    max-height: 142px !important;
    gap: 8px !important;
    overflow: hidden !important;
  }

  #pokerApp #pokerActionControls .poker-action-bar-v048 > .poker-raise-control-v046 {
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    grid-template-rows: 24px 42px !important;
    gap: 2px !important;
  }

  #pokerApp #pokerActionControls .poker-raise-slider-stack {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    grid-template-rows: 24px !important;
  }

  #pokerApp #pokerActionControls .poker-raise-slider-stack > label {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
  }

  #pokerApp #pokerActionControls .poker-raise-buttons-v046 {
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    grid-template-columns: 38px minmax(62px, 1fr) 38px !important;
    grid-template-rows: 34px !important;
    padding: 4px !important;
  }

  #pokerApp #pokerActionControls .poker-raise-buttons-v046 > button,
  #pokerApp #pokerActionControls .poker-raise-buttons-v046 #pokerRaiseButton {
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
  }
}
