.push-notification-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 25rem);
  margin: .95rem auto 0;
  text-align: left;
}

.push-notification-panel[hidden],
.push-notification-card[hidden],
.push-notification-active[hidden] {
  display: none !important;
}

.push-notification-card {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
  border: 1px solid rgb(11 93 76 / 15%);
  border-left: 3px solid #e7bd4d;
  border-radius: 1rem;
  color: #173b31;
  background: linear-gradient(135deg, #fff, #effaf4);
  box-shadow: 0 9px 25px rgb(0 30 23 / 13%);
  text-align: left;
  animation: push-invite-appear .24s ease-out both;
}

.push-notification-heading {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding-right: 1.25rem;
}

.push-notification-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgb(7 94 79 / 10%);
  border-radius: .85rem;
  color: #086650;
  background: #e7f5ed;
}

.push-notification-icon svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.push-notification-copy {
  min-width: 0;
}

.push-notification-copy h2 {
  margin: .05rem 0 .3rem;
  color: #103f33;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -.015em;
}

.push-notification-copy p {
  margin: 0;
  color: #405d52;
  font-size: .84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.push-notification-close {
  position: absolute;
  top: .55rem;
  right: .55rem;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 1px solid rgb(7 94 79 / 12%);
  border-radius: 50%;
  color: #285246;
  background: rgb(7 94 79 / 6%);
  font: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.push-notification-close:hover {
  background: rgb(7 94 79 / 13%);
}

.push-notification-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin-top: .9rem;
}

.push-notification-button,
.push-notification-later,
.push-notification-disable {
  box-sizing: border-box;
  min-height: 2.4rem;
  padding: .58rem .9rem;
  border-radius: .72rem;
  font: inherit;
  font-size: .84rem;
  font-weight: 750;
  line-height: 1.3;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.push-notification-button {
  flex: 1 1 11rem;
  border: 1px solid #086650;
  color: #fff;
  background: linear-gradient(135deg, #086650, #11765f);
  box-shadow: 0 4px 10px rgb(8 102 80 / 12%);
}

.push-notification-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #075744;
}

.push-notification-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.push-notification-later {
  flex: 0 0 auto;
  border: 1px solid rgb(7 94 79 / 15%);
  color: #315b4d;
  background: #fff;
}

.push-notification-later:hover {
  background: #e8f4ed;
}

.push-notification-status {
  margin: .55rem 0 0;
  color: #526c61;
  font-size: .77rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.push-notification-status:empty {
  display: none;
}

.push-notification-active {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .8rem;
  box-sizing: border-box;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid rgb(255 255 255 / 19%);
  border-radius: .85rem;
  color: #edf8f2;
  background: rgb(6 61 53 / 69%);
  box-shadow: 0 5px 16px rgb(0 30 23 / 12%);
  text-align: left;
}

.push-notification-active-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 700;
}

.push-notification-active-dot {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #f1cc5e;
  box-shadow: 0 0 0 3px rgb(241 204 94 / 16%);
}

.push-notification-disable {
  min-height: 2rem;
  padding: .4rem .7rem;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: .6rem;
  color: #fff;
  background: rgb(255 255 255 / 8%);
  font-size: .78rem;
}

.push-notification-disable:hover:not(:disabled) {
  background: rgb(255 255 255 / 16%);
}

.push-notification-disable:disabled {
  cursor: not-allowed;
  opacity: .6;
}

.push-notification-active .push-notification-status {
  flex: 0 0 100%;
  margin: 0;
  color: #e2f0e8;
}

.push-notification-button:focus-visible,
.push-notification-later:focus-visible,
.push-notification-close:focus-visible,
.push-notification-disable:focus-visible {
  outline: 3px solid #e7bd4d;
  outline-offset: 3px;
}

@keyframes push-invite-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 520px) {
  .push-notification-panel {
    width: 100%;
    margin-top: .8rem;
  }

  .push-notification-card {
    padding: .85rem;
    border-radius: .9rem;
  }

  .push-notification-heading {
    gap: .6rem;
    padding-right: 1.1rem;
  }

  .push-notification-icon {
    flex-basis: 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .75rem;
  }

  .push-notification-copy h2 {
    font-size: .93rem;
  }

  .push-notification-copy p {
    font-size: .81rem;
  }

  .push-notification-actions {
    gap: .45rem;
    margin-top: .75rem;
  }

  .push-notification-button,
  .push-notification-later {
    min-height: 2.35rem;
    padding: .55rem .7rem;
    font-size: .8rem;
  }

  .push-notification-active {
    padding: .65rem .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .push-notification-card {
    animation: none;
  }
}
