/* WC Top Bar Rotator — Public Bar */
#wctr-topbar {
  position: relative;
  z-index: 99999;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background-color .3s, color .3s;
}

#wctr-topbar.wctr-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

/* Offset wp-admin-bar if present */
body.admin-bar #wctr-topbar.wctr-sticky {
  top: 32px;
}

/* Offset body so sticky bar doesn't overlap content */
body.wctr-sticky-active { margin-top: var(--wctr-bar-height, 42px); }

#wctr-topbar .wctr-inner {
  flex: 1;
  text-align: center;
  padding: 0 40px;
  line-height: 1.4;
}

#wctr-topbar .wctr-inner a {
  color: inherit;
  text-decoration: underline;
}

#wctr-topbar .wctr-close-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
  padding: 4px 8px;
  border-radius: 4px;
  transition: opacity .2s, background .2s;
}
#wctr-topbar .wctr-close-btn:hover {
  opacity: 1;
  background: rgba(255,255,255,.15);
}

/* ── Animations ── */
/* Slide */
#wctr-topbar[data-animation="slide"] .wctr-inner {
  animation: wctr-slide-in .35s ease forwards;
}
@keyframes wctr-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fade */
#wctr-topbar[data-animation="fade"] .wctr-inner {
  animation: wctr-fade-in .4s ease forwards;
}
@keyframes wctr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* None */
#wctr-topbar[data-animation="none"] .wctr-inner { animation: none; }
