/* PorchPig Envelope Receipt + Countdown — shared notification component */
#pp-notice-stage,
#pp-notice-stage * {
  box-sizing: border-box;
}
#pp-notice-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  z-index: 1000;
  font-family: Arial, sans-serif;
}
#pp-notice-stage .pp-notice-receipt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(460px, 100%);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 26px 26px 30px;
  background: #fff;
  border: 1px solid #e0e3d7;
  border-radius: 10px;
  box-shadow: 0 18px 65px #19332626;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  pointer-events: none;
}
#pp-notice-stage .pp-notice-receipt.pp-notice-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
#pp-notice-stage .pp-notice-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: #1c4935;
  color: #fff;
  box-shadow: 0 0 0 4px #e0e9dc;
}
#pp-notice-stage .pp-notice-icon svg {
  display: block;
  width: 25px;
  height: 25px;
}
#pp-notice-stage .pp-notice-message {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 16px;
  background: #f0f5ef;
  border: 1px solid #dce7da;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  color: #62695e;
  overflow-wrap: anywhere;
}
#pp-notice-stage .pp-notice-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: #194d36;
  transform-origin: left;
}
#pp-notice-stage .pp-notice-dismiss {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #62695e;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
}
#pp-notice-stage .pp-notice-dismiss:hover {
  background: #f0f5ef;
}
#pp-notice-stage .pp-notice-dismiss:focus-visible {
  outline: 2px solid #194d36;
  outline-offset: 1px;
}
@media (max-width: 380px) {
  #pp-notice-stage .pp-notice-receipt {
    padding: 23px 18px 27px;
    gap: 12px;
  }
  #pp-notice-stage .pp-notice-icon {
    width: 36px;
    height: 36px;
  }
  #pp-notice-stage .pp-notice-message {
    padding: 12px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #pp-notice-stage .pp-notice-receipt {
    transition: none;
    transform: none;
  }
  #pp-notice-stage .pp-notice-progress {
    transition: none !important;
  }
}
/* Retain legacy elements for existing references, but never display them. */
body.pp-notice-enabled #notice.notice {
  display: none !important;
}


/* PP modal-aware top-layer notification */
#pp-notice-stage[popover] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: transparent;
  overflow: visible;
  color: #24362d;
}
#pp-notice-stage[popover]:not(:popover-open) {
  display: none;
}
#pp-notice-stage[popover]:popover-open {
  display: grid;
}
#pp-notice-stage::backdrop {
  background: transparent;
  pointer-events: none;
}
