.px-install-result-root {
  bottom: 24px;
  left: 50%;
  max-width: min(760px, calc(100vw - 32px));
  padding: 0;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  width: max-content;
  z-index: 1200;
}

.px-install-result-root:empty {
  display: none;
}

.px-install-result {
  align-items: center;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 14px;
  color: #14532d;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 16px 18px;
  pointer-events: auto;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.px-install-result--neutral {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.px-install-result--error {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.px-install-result__message {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.px-install-result__message strong,
.px-install-result__message span {
  overflow-wrap: anywhere;
}

.px-install-result__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 12px;
}

.px-install-result__actions a,
.px-install-result__actions button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.px-install-result__actions .px-install-result__primary {
  background: #166534;
  border-radius: 9px;
  color: #fff;
  padding: 9px 14px;
  text-decoration: none;
}

@media (max-width: 720px) {
  .px-install-result-root {
    bottom: 16px;
    max-width: calc(100vw - 24px);
    width: calc(100vw - 24px);
  }

  .px-install-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .px-install-result__actions {
    width: 100%;
  }
}
