/* post_view_popup popup */

.pvp-toast {
  position: fixed;
  bottom: 20px;
  z-index: 999999;
  width: 360px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  background: rgba(20, 20, 20, 0.96);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.pvp-toast.pvp-left { left: 20px; }
.pvp-toast.pvp-right { right: 20px; }

.pvp-toast.pvp-show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pvp-toast__inner{
  display: flex;
  align-items: stretch;
}

.pvp-toast__media{
  width: 34%;
  min-width: 102px;
  background: rgba(255,255,255,0.08);
}

.pvp-toast__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pvp-toast__content{
  width: 66%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.pvp-toast__line1{
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

.pvp-toast__line2{
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
}

.pvp-toast__recent{
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.98;
  line-height: 1.35;
}

.pvp-toast__recent a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pvp-toast__recent a:focus-visible,
.pvp-close:focus-visible {
  outline: 2px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 4px;
}

.pvp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .85;
}

/* In RTL, place close button on the opposite side */
:root[dir="rtl"] .pvp-close,
html[dir="rtl"] .pvp-close,
body.rtl .pvp-close {
  right: auto;
  left: 8px;
}

.pvp-close:hover { opacity: 1; }

@media (max-width: 420px){
  .pvp-toast { bottom: 12px; }
  .pvp-toast.pvp-left { left: 12px; }
  .pvp-toast.pvp-right { right: 12px; }
}

.pvp-line{display:flex;align-items:center;gap:8px;}
.pvp-line-icon{width:18px;height:18px;object-fit:contain;flex:0 0 auto;}

.pvp-toast.pvp-light{background:#ffffff;color:#111111;border:1px solid #d7d7d7;}
.pvp-toast.pvp-dark{background:rgba(20,20,20,0.96);color:#ffffff;}

.pvp-no-image .pvp-toast__media{display:none;}
.pvp-no-image .pvp-toast__content{width:100%;}

@media (prefers-reduced-motion: reduce) {
  .pvp-toast { transition: none; transform: none; }
}
