.banner-carousel {
  display: flex;
  align-items: center;
  width: 100%;
  background-color: #213b6d;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 5px 30px;
  box-sizing: border-box;
  gap: 12px;
  color: #fff; 
  font-size: clamp(14px, 1.8vw, 16px);
}

.carousel-track {
  width: 80%;
  display: flex;
  transition: transform 0.4s ease-out;
  pointer-events: none !important;
  transform: translateX(calc(-1 * var(--current-index, 0) * 100%));
}

.slide-item {
  min-width: 100%;
  opacity: 0;
  line-height: 2;
  color: white;
  box-sizing: border-box;
  flex: 0 0 100%;
}

.slide-item.active {
  opacity: 1;
  pointer-events: auto !important;
}

.slide-item.inactive {
  opacity: 0;
  pointer-events: none !important;
}

/* Different easing per direction */
.carousel-track.slide-next {
  transition-timing-function: ease-out;
}
.carousel-track.slide-prev {
  transition-timing-function: ease-in-out;
}

.banner-carousel button {
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
  /*padding: 4px 8px;*/
  padding: 0px;
  color: white
  }

.banner-carousel button:hover {
  background: transparent;
  color: #e5e7eb;
  border-radius: 3px;
}

.announcement-banner {
  background-color: #213b6d;
}

.scam-alert a {
  color: white;
  text-decoration: underline;
}

.carousel-nav {
  text-align: center;      
  margin-top: 8px;         
  display: flex;           
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 20%;               
}
 
.carousel-nav button {
  background-color: transparent;
  color: white;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}
 
.carousel-nav button:hover {
  background-color: transparent; 
  color: #e5e7eb;
}
 
.banner-counter {
  color: white;
  font-size: 18px;
}

.banner-wrapper {
  display: flex;
  align-items: center;
  padding: 0 24px;
  width: 100%;
}

.carousel-arrow {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  padding: 0 10px;
}

.carousel-arrow:hover {
  opacity: 0.8;
  cursor: pointer;
}

.banner-message {
  overflow: hidden;
}

.banner-message.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-message.expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.banner-toggle-link {
  display: none;     
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
}

.banner-message a {
  color: white;
  text-decoration: underline;
}