/* Content block stays hidden until the script mounts it into the bar. */
#bannerWidget { display: none; }

.ribbon-bar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 999999;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 14px 56px;            /* room on the right for the close button */
  background: #092854;           /* navy, matching the original ribbon */
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  border-bottom: 1px solid #1a757f;   /* teal bottom border */
  box-shadow: 0 15px 43px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ribbon-top    { top: 0; }
.ribbon-bottom { bottom: 0; }
.ribbon-bar.is-open { opacity: 1; visibility: visible; }

.ribbon-bar #bannerWidget { display: block; }
.ribbon-bar p { margin: 0; }
.ribbon-bar a { color: #ffaa00; font-weight: 700; text-decoration: none; }
.ribbon-bar a:hover { text-decoration: underline; }

.ribbon-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  border-radius: 50% !important;
  background: transparent;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  /* Keep the centering transform on hover so theme button styles can't
     move it and cause flicker. Only the background may change. */
  transition: background 0.15s ease !important;
  -webkit-appearance: none;
  appearance: none;
}
.ribbon-close:hover,
.ribbon-close:focus {
  top: 50% !important;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) !important;
  outline: none;
}
