/* Public registration dialogs only. The receipt message helper appends its
   stylesheet at runtime, so these body-qualified selectors must outrank it. */
body .regmsg-receipt-overlay {
  padding: 18px;
  background: rgba(25, 31, 29, 0.42);
}

body .regmsg-receipt-dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #242826;
  box-shadow: 0 18px 50px rgba(26, 37, 33, 0.22);
}

body .regmsg-receipt-dialog-header {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1ef;
  background: #fff;
}

body .regmsg-receipt-dialog-header h2 {
  color: #242826;
  font-size: 17px;
}

body .regmsg-receipt-dialog-list {
  padding: 2px 18px;
  background: #fff;
}

body .regmsg-receipt-dialog-item {
  border-bottom-color: #edf1ef;
}

body .regmsg-receipt-dialog-item p {
  color: #14264d;
}

body .regmsg-receipt-dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 58px;
  padding: 0 18px;
  border-top: 1px solid #edf1ef;
  background: #fff;
}

body .regmsg-receipt-dialog-error:not(:empty) {
  flex: 1 1 180px;
}

body .regmsg-receipt-confirm {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #147d72;
  border-radius: 8px;
  background: #147d72;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
}

body .registration-serial-modal {
  width: min(520px, calc(100vw - 36px));
  border-radius: 4px;
}
