/* Főoldal: „Megújult a weboldalunk” — vékony, bezárható futósáv a menü fölött */
.mc-renewal-bar {
  --mc-renewal-h: 38px;
  position: relative;
  display: flex;
  align-items: center;
  height: var(--mc-renewal-h);
  min-height: var(--mc-renewal-h);
  overflow-x: hidden;
  overflow-y: hidden;
  /* Végig világos teal (a korábbi gradiens jobb széle), hogy jobban kitűnjön */
  background: linear-gradient(90deg, #248c99 0%, #2aa3b0 50%, #248c99 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: 'Poppins', Montserrat, system-ui, sans-serif;
  z-index: 1;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.mc-renewal-dismissed .mc-renewal-bar,
html.mc-renewal-dismissed #mcRenewalBar,
.mc-renewal-bar[hidden],
#mcRenewalBar[hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.mc-renewal-bar__viewport {
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 40px), transparent 100%);
}

.mc-renewal-bar__track {
  display: flex;
  align-items: center;
  width: max-content;
  height: 100%;
  gap: 0;
  animation: mc-renewal-marquee 120s linear infinite;
  will-change: transform;
}

.mc-renewal-bar__chunk {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.45;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* Pötty pontosan a két üzenet között (egyenlő köz mindkét oldalon) */
.mc-renewal-bar__chunk::after {
  content: '•';
  display: inline-block;
  margin-left: 6.5rem;
  margin-right: 6.5rem;
  opacity: 0.5;
  font-weight: 400;
  font-size: 0.85em;
  line-height: 1;
  flex-shrink: 0;
}

.mc-renewal-bar__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: var(--mc-renewal-h);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mc-renewal-bar__close:hover,
.mc-renewal-bar__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.mc-renewal-bar__close i {
  font-size: 12px;
  line-height: 1;
}

@keyframes mc-renewal-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-renewal-bar__track {
    animation: none;
    width: 100%;
    justify-content: center;
  }

  .mc-renewal-bar__chunk:not(:first-child),
  .mc-renewal-bar__chunk::after {
    display: none;
  }

  .mc-renewal-bar__viewport {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .mc-renewal-bar__chunk:first-child {
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .mc-renewal-bar {
    --mc-renewal-h: 36px;
  }

  .mc-renewal-bar__chunk {
    font-size: 11px;
    line-height: 1.45;
    padding: 0;
  }

  .mc-renewal-bar__chunk::after {
    margin-left: 3.5rem;
    margin-right: 3.5rem;
  }
}
