/*
 * VPVR Announcement Bar (Top Teal Bar)
 *
 * Purpose:
 * - Style the vpvr announcement bar to match brand
 * - Ensure we never show the legacy YOOtheme cookie notification banner
 */

/* Hide YOOtheme cookie notification banner if it still gets injected */
.tm-cookie-banner {
  display: none !important;
}

.vpvr-announcebar {
  /* Use !important to override cached legacy rules in custom.css on Cloudflare */
  /* Dark teal: cohesive with the site palette, but distinct from the lighter teal contact bar below */
  background: #0b7a84 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vpvr-announcebar__inner {
  gap: 12px;
  padding: 10px 0;
  /* Override UIkit `uk-flex-between` to center the announcement cluster. */
  justify-content: center !important;
}

.vpvr-announcebar__text {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.vpvr-announcebar__headline {
  font-weight: 700;
  color: #ffffff;
}

.vpvr-announcebar__sub {
  color: rgba(255, 255, 255, 0.88);
}

.vpvr-announcebar__actions {
  gap: 10px;
}

/* Keep CTA + close aligned on one row on mobile */
.vpvr-announcebar__actions,
.vpvr-announcebar__actions * {
  align-items: center;
}

.vpvr-announcebar__cta.uk-button {
  background: #ffffff;
  /* Dark teal text to match announcement bar */
  color: #0b6f77;
  border: 1px solid rgba(255, 255, 255, 0.65);
  text-transform: none;
  letter-spacing: 0;
  border-radius: 999px;
  padding: 0 16px;
  line-height: 34px;
  font-weight: 600;
}

.vpvr-announcebar__cta.uk-button:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.9);
  color: #095f67;
}

.vpvr-announcebar__close {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  cursor: pointer;
}

.vpvr-announcebar__close::before {
  /* CSS unicode escape is \00d7 (NOT \u00d7) */
  content: "\00d7";
  font-size: 26px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
}

.vpvr-announcebar__close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.42);
}

.vpvr-announcebar__close:hover::before {
  color: #ffffff;
}

@media (max-width: 959px) {
  /* Tablet+Mobile: keep things tidy, but don't force stacking */
  .vpvr-announcebar__inner {
    padding: 10px 0;
  }
}

@media (max-width: 639px) {
  /* Phone: centered, single-row cluster (headline + CTA + close) */
  .vpvr-announcebar__inner {
    /* Override UIkit classes: uk-flex-wrap + uk-flex-between */
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 12px;
  }

  .vpvr-announcebar__text {
    flex: 0 1 auto;
    min-width: 0;
    text-align: center;
  }

  .vpvr-announcebar__headline {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 52vw;
  }

  .vpvr-announcebar__sub {
    display: none;
  }

  .vpvr-announcebar__actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .vpvr-announcebar__cta.uk-button {
    white-space: nowrap;
  }

  /* Slightly tighter typography on very small screens */
  .vpvr-announcebar__text {
    font-size: 13px;
  }
}
