/* CrateMarket 1.1.30 R82 — Market Alert totals and manual conveyor actions. */
[data-market-alert-owned][data-r82-owned-total="1"] {
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

html.cm-ui-refresh.cm-ui-page-game .cm-game-selection.r82-manual-actions-visible {
  flex-wrap: wrap;
}

.r82-selected-action-row {
  display: grid;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.r82-selected-action-row[hidden] {
  display: none !important;
}

.r82-selected-action-row > .btn,
html.cm-ui-refresh.cm-ui-page-game .cm-game-selection .r82-selected-action-row > #buy,
html.cm-ui-refresh.cm-ui-page-game .cm-game-selection .r82-selected-action-row > #cancelSelectedCrate {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  white-space: normal;
  line-height: 1.2;
}

html.cm-ui-refresh.cm-ui-page-game .cm-game-selection #cancelSelectedCrate {
  border-color: rgba(177, 159, 255, 0.34);
  background: rgba(32, 35, 55, 0.9);
  color: var(--text, #f7f8ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.cm-ui-refresh.cm-ui-page-game .cm-game-selection #cancelSelectedCrate:not(:disabled):hover,
html.cm-ui-refresh.cm-ui-page-game .cm-game-selection #cancelSelectedCrate:not(:disabled):focus-visible {
  border-color: rgba(177, 159, 255, 0.68);
  background: rgba(55, 50, 92, 0.94);
}

.r82-selected-action-row > .btn:disabled {
  cursor: not-allowed;
}

@media (max-width: 420px) {
  .r82-selected-action-row {
    gap: 8px;
  }

  .r82-selected-action-row > .btn {
    padding-inline: 8px;
    font-size: 0.79rem;
  }
}
