/* Mtea Marquee widget */

.mtea-mq {
  --mtea-mq-dur: 30s;     /* set by the script from the speed setting */
  --mtea-mq-gap: 24px;
  --mtea-mq-icon: 18px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 14px 0;
  background: #fff;
  color: #000;
  white-space: nowrap;
}

.mtea-mq .mtea-mq__track {
  display: flex;
  width: max-content;
  animation: mtea-mq-scroll var(--mtea-mq-dur) linear infinite;
  will-change: transform;
}
.mtea-mq.is-right .mtea-mq__track {
  animation-direction: reverse;
}
.mtea-mq.has-pause:hover .mtea-mq__track {
  animation-play-state: paused;
}

/* two identical groups; the track moves by exactly one group = seamless loop */
.mtea-mq .mtea-mq__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.mtea-mq .mtea-mq__item {
  display: inline-flex;
  align-items: center;
  gap: var(--mtea-mq-gap);
  padding-right: var(--mtea-mq-gap);
  color: inherit;
  text-decoration: none;
}

.mtea-mq .mtea-mq__text {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.mtea-mq .mtea-mq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--mtea-mq-icon);
  height: var(--mtea-mq-icon);
  font-size: var(--mtea-mq-icon);   /* sizes icon-font icons too */
  line-height: 1;
  color: inherit;
}
.mtea-mq .mtea-mq__icon svg,
.mtea-mq .mtea-mq__icon i {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}
/* the built in arrow uses strokes, so keep fill off the shaft */
.mtea-mq .mtea-mq__icon svg path[fill="none"] {
  fill: none;
}

@keyframes mtea-mq-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .mtea-mq .mtea-mq__track {
    animation: none;
  }
}
