.mg-push-prompt[hidden] {
  display: none;
}

.mg-push-prompt {
  position: fixed;
  z-index: 9998;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  color: #111;
}

.mg-push-control {
  position: fixed;
  z-index: 9997;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  place-items: center;
  border: 1px solid #d6d6d6;
  border-radius: 50%;
  background: #fff;
  color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .16);
  cursor: pointer;
}

.mg-push-control[hidden] {
  display: none;
}

.mg-push-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mg-push-prompt__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem 1.25rem;
  align-items: center;
  width: min(100%, 720px);
  margin-left: auto;
  padding: 1rem;
  border: 1px solid #d6d6d6;
  border-left: 4px solid #d5001c;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.mg-push-prompt__copy {
  display: grid;
  gap: .2rem;
  font-size: .875rem;
  line-height: 1.4;
}

.mg-push-prompt__copy strong {
  font-size: 1rem;
}

.mg-push-prompt__actions {
  display: flex;
  gap: .5rem;
  align-items: center;
}

.mg-push-enable,
.mg-push-disable {
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid #111;
  border-radius: 3px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.mg-push-enable:disabled,
.mg-push-disable:disabled {
  cursor: wait;
  opacity: .7;
}

.mg-push-dismiss {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.mg-push-prompt__status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: #a21a1a;
  font-size: .8125rem;
}

.mg-push-prompt.is-success .mg-push-prompt__status {
  color: #176b36;
}

@media (max-width: 560px) {
  .mg-push-prompt {
    right: .5rem;
    bottom: .5rem;
    left: .5rem;
  }

  .mg-push-prompt__inner {
    grid-template-columns: 1fr;
  }

  .mg-push-prompt__actions {
    justify-content: space-between;
  }

  .mg-push-enable {
    flex: 1;
  }

  .mg-push-disable {
    flex: 1;
  }
}
