/* What's New widget styles */

.wn-no-scroll { overflow: hidden; }

/* Overlay + drawer ---------------------------------------------------- */

.wn-root .wn-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 24, 31, 0.25);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 999998;
}
.wn-root.wn-open .wn-overlay { opacity: 1; pointer-events: auto; }

.wn-panel {
  position: fixed; top: 0; bottom: 0;
  width: 400px; max-width: 100vw;
  background: #f7f8fa;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
  display: flex; flex-direction: column;
  transition: transform .28s ease;
  z-index: 999999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wn-panel-right { right: 0; transform: translateX(105%); }
.wn-panel-left  { left: 0;  transform: translateX(-105%); }
.wn-root.wn-open .wn-panel { transform: translateX(0); }

.wn-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  color: #fff;
}
.wn-panel-title { font-size: 19px; font-weight: 600; }
.wn-panel-close {
  background: none; border: 0; color: #fff;
  font-size: 16px; cursor: pointer; padding: 4px 6px; line-height: 1;
  opacity: .85;
}
.wn-panel-close:hover { opacity: 1; }

/* Feed ----------------------------------------------------------------- */

.wn-list { flex: 1; overflow-y: auto; padding: 14px; }

.wn-post {
  background: #fff; border-radius: 10px;
  padding: 18px 18px 14px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(20, 24, 31, 0.07);
}

.wn-post-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wn-chip {
  color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
}
.wn-date { color: #8a94a6; font-size: 13px; }

.wn-post-title { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.wn-post-title a { text-decoration: none; font-weight: 600; }
.wn-post-title a:hover { text-decoration: underline; }

.wn-post-image { display: block; margin-bottom: 10px; }
.wn-post-image img {
  width: 100%; border-radius: 8px; display: block;
  transition: transform .2s ease, box-shadow .2s ease;
}
.wn-post-image:hover img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.20);
}

.wn-excerpt { color: #3f4753; font-size: 14px; line-height: 1.55; margin: 0 0 10px; }

.wn-readmore { font-size: 14px; font-weight: 600; text-decoration: none; }
.wn-readmore:hover { text-decoration: underline; }

/* Reactions + feedback -------------------------------------------------- */

.wn-reactions {
  display: flex; justify-content: center; gap: 18px;
  padding: 12px 0 4px;
  border-top: 1px solid #eef0f4; margin-top: 14px;
}
.wn-react {
  background: none; border: 0; cursor: pointer;
  font-size: 24px; line-height: 1;
  filter: grayscale(1); opacity: .6;
  transition: transform .15s ease, filter .15s, opacity .15s;
  padding: 4px;
}
.wn-react:hover { transform: scale(1.25); filter: none; opacity: 1; }
.wn-react-active { filter: none; opacity: 1; transform: scale(1.15); }

.wn-feedback {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px;
  background: #f3f5f8; border-radius: 8px; padding: 4px 6px 4px 12px;
}
.wn-feedback-input {
  flex: 1; border: 0; background: none; outline: none;
  font-size: 13px; color: #3f4753; padding: 8px 0;
}
.wn-feedback-send {
  background: none; border: 0; cursor: pointer;
  color: #8a94a6; font-size: 16px; padding: 6px 8px;
}
.wn-feedback-send:hover { color: #3f4753; }
.wn-feedback-thanks { font-size: 13px; color: #27ae60; padding: 8px 4px; }

.wn-loading, .wn-empty { text-align: center; color: #8a94a6; padding: 30px 0; font-size: 14px; }

/* Badge ----------------------------------------------------------------- */

.wn-badge {
  position: absolute; top: -6px; right: -10px;
  min-width: 18px; height: 18px;
  background: #e74c3c; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px;
  border-radius: 999px; text-align: center;
  padding: 0 4px;
  pointer-events: none;
}
@keyframes wn-bounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
  60% { transform: translateY(2px); }
}
.wn-badge-bounce { animation: wn-bounce .9s ease; }

/* Floating fallback button ---------------------------------------------- */

.wn-fab {
  position: fixed; z-index: 999997;
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}
.wn-fab-bottom-right { right: 22px; bottom: 22px; }
.wn-fab-bottom-left  { left: 22px;  bottom: 22px; }
.wn-fab-top-right    { right: 22px; top: 22px; }
.wn-fab-top-left     { left: 22px;  top: 22px; }

/* Push soft prompt ------------------------------------------------------- */

.wn-prompt {
  position: fixed; top: 12px; left: 50%;
  transform: translate(-50%, -130%);
  width: 440px; max-width: calc(100vw - 24px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 6px 30px rgba(20, 24, 31, 0.25);
  z-index: 1000000;
  transition: transform .3s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wn-prompt-visible { transform: translate(-50%, 0); }

.wn-prompt-body { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.wn-prompt-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; }
.wn-prompt-text { font-size: 14px; color: #3f4753; line-height: 1.45; }

.wn-prompt-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 8px 14px 14px;
  border-top: 1px solid #f0f2f5;
}
.wn-prompt-deny {
  background: none; border: 0; cursor: pointer;
  color: #8a94a6; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .3px; padding: 8px 10px;
}
.wn-prompt-allow {
  border: 0; cursor: pointer; color: #fff;
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .3px;
  padding: 8px 18px; border-radius: 6px;
}

/* Mobile ----------------------------------------------------------------- */

@media (max-width: 520px) {
  .wn-panel { width: 100vw; }
}
