.push-notifications-modal[hidden] {
  display: none;
}

.push-notifications-modal {
  align-items: center;
  background: rgba(21, 31, 43, 0.52);
  border: 0;
  bottom: 0;
  box-sizing: border-box;
  display: flex;
  height: 100%;
  justify-content: center;
  left: 0;
  margin: 0;
  max-height: none;
  max-width: none;
  overflow-y: auto;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 10000;
}

.push-notifications-modal::backdrop {
  background: transparent;
}

.push-notifications-modal__dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(21, 31, 43, 0.24);
  box-sizing: border-box;
  color: #1f2933;
  max-height: calc(100vh - 48px);
  max-width: 520px;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  width: 100%;
}

.push-notifications-modal__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #1f2933;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
}

.push-notifications-modal__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 42px 8px 0;
}

.push-notifications-modal__text {
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 18px;
}

.push-notifications-modal__options {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
}

.push-notifications-modal__option {
  align-items: flex-start;
  border: 1px solid #d5dde5;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.push-notifications-modal__option input {
  margin-top: 3px;
}

.push-notifications-modal__option-title {
  display: block;
  font-weight: 700;
  line-height: 1.25;
}

.push-notifications-modal__option-description {
  color: #52616f;
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 3px;
}

.push-notifications-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.push-notifications-modal__button {
  border: 1px solid #b8c4cf;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  min-height: 40px;
  padding: 8px 14px;
}

.push-notifications-modal__button--primary {
  background: #005ea8;
  border-color: #005ea8;
  color: #fff;
}

.push-notifications-modal__button--secondary {
  background: #fff;
  color: #1f2933;
}

.push-notifications-modal__status {
  color: #52616f;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 14px 0 0;
  min-height: 20px;
}

.push-notifications-modal__status--error {
  color: #b42318;
}

@media (max-width: 520px) {
  .push-notifications-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .push-notifications-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 18px;
  }

  .push-notifications-modal__actions {
    justify-content: stretch;
  }

  .push-notifications-modal__button {
    flex: 1 1 100%;
  }
}
