/* Widget 43 — announcement bar, v2 (v2_kit.announcement / announcement_phone). */

.hc-ann {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 64px;
  background: var(--hc-ann);
  color: var(--hc-body);
  font-size: 14px;
  line-height: 1.45;
}
.hc-ann-off .hc-ann { display: none; }
.hc-ann__text { margin: 0; text-align: center; }
.hc-ann__text a {
  color: var(--hc-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hc-ann__x {
  position: absolute;
  top: 0;
  right: calc(var(--hc-gutter) - 12px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hc-muted);
  cursor: pointer;
}

@media (max-width: 900px) {
  .hc-ann {
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 4px 8px 20px;
    font-size: 13px;
  }
  .hc-ann__text { flex-grow: 1; text-align: left; }
  .hc-ann__x { position: static; flex-shrink: 0; }
}
