/* Crisp text over the original, still-interactive legacy form controls. */
.BigButton.nx-readable-button,
.MediumButtonBackground.nx-readable-button {
  position: relative;
  box-sizing: border-box;
  width: 135px;
  height: auto;
  min-height: 32px;
  border: 1px solid #503710;
  border-top-color: #e1bd68;
  border-left-color: #c99a48;
  border-radius: 2px;
  background: linear-gradient(180deg, #245f83 0%, #174663 48%, #0b2c43 100%) !important;
  box-shadow: 0 1px 2px #0005, inset 0 0 0 1px #c89a4759, inset 0 2px 0 #ffffff12;
  filter: none !important;
  transform: none !important;
  transition: background-color .12s ease, border-color .12s ease;
}

.MediumButtonBackground.nx-readable-button {
  width: 150px;
  min-height: 38px;
}

.nx-readable-button .nx-button-label {
  display: block;
  box-sizing: border-box;
  position: relative;
  z-index: 21;
  padding: 7px 6px;
  color: #fff4d6;
  font: 700 13px/16px Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  text-shadow: 0 1px 0 #071c2b;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.MediumButtonBackground.nx-readable-button .nx-button-label { padding-block: 10px; }

.nx-readable-button .nx-button-control {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  z-index: 22;
  opacity: 0 !important;
  cursor: pointer;
}

.nx-readable-button .BigButtonOver,
.nx-readable-button .MediumButtonOver { display: none !important; }

.nx-readable-button:hover,
.nx-readable-button:focus-within {
  border-color: #e8c673;
  background: linear-gradient(180deg, #2d7197 0%, #1b5374 48%, #103852 100%) !important;
}

.nx-readable-button:focus-within {
  outline: 2px solid #ecb84e;
  outline-offset: 2px;
}

.nx-readable-button:active { box-shadow: inset 0 2px 4px #0007; }
.nx-readable-button:has(:disabled) { opacity: .55; }
.nx-readable-button .nx-button-control:disabled { cursor: not-allowed; }

/* A medium button can now wrap a long label instead of clipping it. */
.MediumButtonForm:has(.nx-readable-button) { height: auto; }
