/* ============================================
   JIS ERIE Promo Banner
   Child Theme: dt-the7-child
   ============================================ */

.jis-promo-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 260px;

  background-color: #ffffff;
  border: 1px solid #dde3ea;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  padding: 20px 16px 16px;

  animation: jis-slide-in 0.35s ease forwards;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Dismissed state — toggled by JS */
.jis-promo-banner.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

@keyframes jis-slide-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Close Button ── */
.jis-promo-banner__close {
  position: absolute;
  top: 0px;
  right: 0px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #888;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.jis-promo-banner__close:hover,
.jis-promo-banner__close:focus-visible {
  color: #333;
  background-color: #f0f0f0;
}

.jis-promo-banner__close:focus-visible {
  outline: 2px solid #1a5fa8;
  outline-offset: 2px;
}

/* ── Body ── */
.jis-promo-banner__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* ── Headline ── */
.jis-promo-banner__headline {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #222;
  font-family: inherit;
}

.jis-promo-banner__headline strong {
  font-weight: 700;
}

/* ── Logos ── */
.jis-promo-banner__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jis-promo-banner__logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ── CTA Button ── */
.jis-promo-banner__cta {
  display: inline-block;
  background-color: #1a5fa8;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 24px;
  border-radius: 999px;
  line-height: 28px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.jis-promo-banner__cta:hover {
  background-color: #154e8c;
  transform: translateY(-1px);
}

.jis-promo-banner__cta:active {
  transform: translateY(0);
}

.jis-promo-banner__cta:focus-visible {
  outline: 2px solid #1a5fa8;
  outline-offset: 3px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .jis-promo-banner {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }
}

