/* popup-engine.css -- Smart notification popup banner */

.pe-popup {
  position: fixed;
  z-index: 99999;
  bottom: 1.25rem;
  max-width: 380px;
  width: calc(100vw - 2rem);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  transform: translateY(30px);
  opacity: 0;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
  pointer-events: none;
}
.pe-popup.pe-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.pe-popup.pe-bottom-right { right: 1.25rem; }
.pe-popup.pe-bottom-left  { left: 1.25rem;  }

.pe-popup-img {
  width: 110px;
  flex-shrink: 0;
  object-fit: cover;
  display: block;
}

.pe-popup-body {
  flex: 1;
  padding: .75rem .9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  min-width: 0;
}

.pe-popup-headline {
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  word-break: break-word;
}

.pe-popup-text {
  font-size: .78rem;
  line-height: 1.45;
  margin: 0;
  word-break: break-word;
}

.pe-popup-cta {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: .32rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: fit-content;
  margin-top: .1rem;
  transition: opacity .15s;
}
.pe-popup-cta:hover { opacity: .88; }

.pe-popup-close {
  position: absolute;
  top: .45rem;
  right: .55rem;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.18);
  border-radius: 50%;
  font-size: .65rem;
  color: #fff;
  cursor: pointer;
  border: none;
  padding: 0;
  line-height: 1;
  transition: background .15s;
}
.pe-popup-close:hover { background: rgba(0,0,0,.35); }

@media (max-width: 480px) {
  .pe-popup {
    max-width: calc(100vw - 1.5rem);
    bottom: .75rem;
  }
  .pe-popup.pe-bottom-right { right: .75rem; }
  .pe-popup.pe-bottom-left  { left: .75rem;  }
  .pe-popup-img { width: 88px; }
}
