/* Player v3.10.121 — compact wallet actions and contained customer support. */

/* Keep the icon beside the label and keep both actions compact. */
#gamesDepositButton.wallet-quick-action,
#gamesWithdrawButton.wallet-quick-action,
#mobileLobbyDepositButton.mobile-lobby-shortcut,
#mobileLobbyWithdrawButton.mobile-lobby-shortcut {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  white-space: nowrap !important;
}

#gamesDepositButton.wallet-quick-action,
#gamesWithdrawButton.wallet-quick-action {
  width: auto !important;
  min-width: 94px !important;
  min-height: 38px !important;
  height: 38px !important;
  padding: 6px 11px !important;
  line-height: 1 !important;
}

#gamesDepositButton .wallet-quick-action-icon,
#gamesWithdrawButton .wallet-quick-action-icon {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
  margin: 0 !important;
}

#gamesDepositButton > span,
#gamesWithdrawButton > span,
#mobileLobbyDepositButton > span:last-child,
#mobileLobbyWithdrawButton > span:last-child {
  display: inline !important;
  margin: 0 !important;
  line-height: 1 !important;
}

/* Customer Service is a contained chat window, not a full page-sized card. */
body.support-popup-open {
  overflow: hidden !important;
}

body.support-popup-open .pwa-install-button,
body.support-popup-open #supportChatLauncher {
  display: none !important;
}

#view-support.support-popup-view {
  position: fixed !important;
  inset: 0 !important;
  z-index: 400 !important;
  display: none !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px !important;
  overflow: hidden !important;
}

#view-support.support-popup-view.active {
  display: block !important;
}

#view-support .support-popup-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(2, 3, 6, .46) !important;
  backdrop-filter: none !important;
}

#view-support .support-popup-card {
  position: absolute !important;
  right: 22px !important;
  bottom: 22px !important;
  left: auto !important;
  top: auto !important;
  width: min(420px, calc(100vw - 44px)) !important;
  max-width: 420px !important;
  height: min(590px, calc(100dvh - 44px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: calc(100dvh - 44px) !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}

#view-support .support-popup-titlebar {
  min-height: 54px !important;
  padding: 9px 11px 9px 13px !important;
}

#view-support .support-popup-titlebar strong {
  font-size: 14px !important;
}

#view-support .support-popup-titlebar span {
  font-size: 10px !important;
}

#view-support .support-popup-close {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  line-height: 1 !important;
}

#view-support .messenger-shell,
#view-support .messenger-chat,
#view-support .smart-help-panel,
#view-support .bot-message-card,
#view-support .support-choice-grid,
#view-support .support-auto-answer,
#view-support .messenger-live-panel,
#view-support .messenger-message-list,
#view-support .messenger-composer {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#view-support .messenger-shell,
#view-support .messenger-chat {
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#view-support .messenger-chat-header {
  min-height: 54px !important;
  padding: 9px 12px !important;
}

#view-support .smart-help-panel {
  padding: 12px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

#view-support .bot-message-card {
  padding: 11px !important;
  gap: 9px !important;
}

#view-support .support-choice-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  margin-top: 10px !important;
}

#view-support .support-choice-button {
  min-height: 38px !important;
  padding: 8px 10px !important;
  text-align: left !important;
}

#view-support .support-auto-answer {
  margin-top: 10px !important;
}

#view-support .support-auto-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
  margin-top: 8px !important;
}

#view-support .support-auto-actions .button {
  min-height: 38px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
}

#view-support .messenger-live-panel:not(.hidden) {
  min-height: 0 !important;
  overflow: hidden !important;
}

#view-support .messenger-message-list {
  min-height: 0 !important;
  padding: 10px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

#view-support .messenger-composer {
  padding: 9px !important;
}

@media (max-width: 860px) {
  #gamesDepositButton.wallet-quick-action,
  #gamesWithdrawButton.wallet-quick-action {
    min-width: 84px !important;
    min-height: 36px !important;
    height: 36px !important;
    padding: 5px 9px !important;
    gap: 6px !important;
    font-size: 11px !important;
  }

  #mobileLobbyDepositButton.mobile-lobby-shortcut,
  #mobileLobbyWithdrawButton.mobile-lobby-shortcut {
    min-height: 42px !important;
    padding: 6px 9px !important;
  }

  #mobileLobbyDepositButton .mobile-lobby-shortcut-icon,
  #mobileLobbyWithdrawButton .mobile-lobby-shortcut-icon {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    margin: 0 !important;
  }
}

@media (max-width: 620px) {
  #view-support.support-popup-view {
    padding: 10px 10px calc(76px + env(safe-area-inset-bottom)) !important;
  }

  #view-support .support-popup-card {
    right: 10px !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    width: calc(100vw - 20px) !important;
    max-width: 440px !important;
    height: min(68dvh, 560px) !important;
    max-height: min(68dvh, 560px) !important;
    border-radius: 15px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-support .support-popup-card,
  #gamesDepositButton,
  #gamesWithdrawButton {
    transition: none !important;
  }
}
