.risk-waiver-dialog-backdrop {
  position: fixed;
  z-index: 1800;
  inset: 0;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(2px);
}

.risk-waiver-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dbe5ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.risk-waiver-dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.risk-waiver-dialog header > div {
  display: grid;
  gap: 3px;
}

.risk-waiver-dialog header span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.risk-waiver-dialog header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.risk-waiver-dialog header button {
  width: 32px;
  height: 32px;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.risk-waiver-dialog-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--warning-line);
  border-radius: 6px;
  background: var(--warning-soft);
  color: var(--warning-active);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
}

.risk-waiver-dialog-notice.danger {
  border-color: var(--danger-line);
  background: rgba(239, 68, 68, .07);
  color: var(--danger);
}

.risk-waiver-dialog-summary {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  background: #f8fafc;
}

.risk-waiver-dialog-summary div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.risk-waiver-dialog-summary dt,
.risk-waiver-dialog-summary dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.risk-waiver-dialog-summary dt {
  color: #64748b;
  font-weight: 850;
}

.risk-waiver-dialog-summary dd {
  color: #0f172a;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.risk-waiver-dialog form,
.risk-waiver-dialog label {
  display: grid;
  gap: 8px;
}

.risk-waiver-dialog form {
  gap: 13px;
}

.risk-waiver-dialog label > span {
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.risk-waiver-dialog label em,
.risk-waiver-dialog label small {
  margin-left: 4px;
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.risk-waiver-dialog label small {
  color: #94a3b8;
}

.risk-waiver-dialog textarea,
.risk-waiver-dialog input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #dbe5ef;
  border-radius: 5px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  line-height: 1.55;
}

.risk-waiver-dialog textarea {
  min-height: 72px;
  resize: vertical;
}

.risk-waiver-dialog textarea:focus,
.risk-waiver-dialog input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
  outline: 0;
}

.risk-waiver-dialog-validation {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.risk-waiver-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.risk-waiver-dialog footer button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid #dbe5ef;
  border-radius: 5px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.risk-waiver-dialog footer button.primary {
  border-color: var(--warning-line);
  background: var(--warning-soft);
  color: var(--warning-active);
}

.risk-waiver-dialog footer button.primary.danger {
  border-color: var(--danger-line);
  background: rgba(239, 68, 68, .07);
  color: var(--danger);
}

.risk-waiver-dialog button:disabled,
.risk-waiver-dialog textarea:disabled,
.risk-waiver-dialog input:disabled {
  cursor: not-allowed;
  opacity: .66;
}

@media (max-width: 640px) {
  .risk-waiver-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .risk-waiver-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 12px 12px 0 0;
  }

  .risk-waiver-dialog-summary div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
