/* Smooth body spacing for timed mode */
body.has-announcement-bar {
  transition: padding-top 0.6s ease;
}

/* Default hidden banner state */
#announcement-bar {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s ease, opacity 0.6s ease, padding-top 0.6s ease;

  height: 60px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FDF1F3;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10001;
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* When shown (timed or scroll near top) */
#announcement-bar.show {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll-mode: make banner non-sticky (appears only at top) */
body.scroll-banner #announcement-bar {
  position: absolute;
}

/* Button & layout styling */
.ann-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ann-btn {
  background: #000;
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  border-radius: 16px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
}

#ann-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Mobile sticky fix */
@media (max-width: 768px) {
  .mobile-top-panel {
    position: fixed !important;
    top: 0 !important;
    width: 100%;
    z-index: 9999;
  }
}

body.scroll-banner #announcement-bar,
body.scroll-banner #announcement-bar.show {
  position: absolute;
}




