.mac-download-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 64px rgba(23, 36, 65, .18);
  letter-spacing: 0;
}

.mac-download-dialog::backdrop {
  background: rgba(23, 36, 65, .4);
}

.mac-download-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.mac-download-heading h2 {
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
}

.mac-download-close {
  flex: 0 0 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--body);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.mac-download-close:hover {
  background: #f1f4fa;
}

.mac-download-choices {
  display: grid;
  gap: 12px;
}

.mac-download-choices .download-button {
  width: 100%;
  min-width: 0;
  max-width: none;
  min-height: 56px;
  height: auto;
  padding: 14px 18px;
  justify-content: space-between;
  white-space: normal;
  text-align: left;
  border-radius: 8px;
  letter-spacing: 0;
}

.mac-download-choices [data-availability] {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 400;
}

.mac-download-choices .download-button:disabled {
  color: var(--muted);
  background: #f6f7fa;
  border-color: var(--line);
  cursor: not-allowed;
}

.mac-download-status {
  margin-top: 16px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.6;
}

.mac-download-status:empty {
  display: none;
}
