.erpol-piyasa-ticker {
  --erpol-ticker-height: 36px;
  --erpol-ticker-gap: 28px;
  --erpol-ticker-duration: 28s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  height: var(--erpol-ticker-height);
  min-width: 0;
  margin-inline: auto;
  overflow: hidden;
  line-height: 1;
}

.erpol-piyasa-ticker__track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
}

.erpol-piyasa-ticker__group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--erpol-ticker-gap);
  width: 100%;
  min-width: 0;
}

.erpol-piyasa-ticker__group--copy {
  display: none;
}

.erpol-piyasa-ticker--scrolling .erpol-piyasa-ticker__track {
  justify-content: flex-start;
  width: max-content;
  animation: erpol-piyasa-scroll var(--erpol-ticker-duration) linear infinite;
  will-change: transform;
}

.erpol-piyasa-ticker--scrolling .erpol-piyasa-ticker__group {
  flex: 0 0 auto;
  justify-content: flex-start;
  width: auto;
  min-width: max-content;
  padding-inline-end: var(--erpol-ticker-gap);
}

.erpol-piyasa-ticker--scrolling .erpol-piyasa-ticker__group--copy {
  display: flex;
}

.erpol-piyasa-ticker--scrolling:hover .erpol-piyasa-ticker__track {
  animation-play-state: paused;
}

@keyframes erpol-piyasa-scroll {
  to {
    transform: translateX(-50%);
  }
}

.erpol-piyasa-ticker__item {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  line-height: 1;
}

.erpol-piyasa-ticker__label {
  color: #666;
  font-size: 10px;
  font-weight: 600;
}

.erpol-piyasa-ticker__value {
  color: #17376b;
  font-size: 13px;
  font-weight: 700;
}

.erpol-piyasa-ticker__change {
  min-width: 0;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
}

.erpol-piyasa-ticker__item--up .erpol-piyasa-ticker__change {
  color: #16834a;
}

.erpol-piyasa-ticker__item--down .erpol-piyasa-ticker__change {
  color: #c9362b;
}

.whb-top-bar .erpol-piyasa-ticker {
  max-width: 100%;
}

.erpol-piyasa-topbar {
  --erpol-ticker-height: 36px;
}

@media (min-width: 1025px) {
  .erpol-piyasa-topbar .whb-col-left,
  .erpol-piyasa-topbar .whb-col-right {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .erpol-piyasa-topbar .whb-col-center {
    min-width: 0;
    overflow: hidden;
  }

  .erpol-piyasa-topbar .whb-col-center > .wd-header-text {
    display: flex;
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .erpol-piyasa-topbar .whb-col-center .erpol-piyasa-ticker {
    max-width: 100%;
    margin-inline: 0;
  }
}

@media (max-width: 1024px) {
  .erpol-piyasa-topbar.whb-hidden-mobile {
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box;
    height: var(--erpol-ticker-height) !important;
    min-height: var(--erpol-ticker-height) !important;
    max-height: var(--erpol-ticker-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    transform: none !important;
  }

  .whb-sticked .erpol-piyasa-topbar.erpol-piyasa-topbar--hide-on-sticky {
    display: none !important;
  }

  .erpol-piyasa-topbar > .container {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--erpol-ticker-height);
    min-height: var(--erpol-ticker-height);
    max-height: var(--erpol-ticker-height);
    padding-block: 0 !important;
  }

  .erpol-piyasa-topbar .whb-top-bar-inner {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto;
    width: 100%;
    height: var(--erpol-ticker-height) !important;
    min-height: var(--erpol-ticker-height) !important;
    max-height: var(--erpol-ticker-height) !important;
    margin: 0 !important;
    transform: none !important;
  }

  .erpol-piyasa-topbar .whb-col-left,
  .erpol-piyasa-topbar .whb-col-right {
    display: none !important;
  }

  .erpol-piyasa-topbar .whb-col-center.whb-visible-lg {
    display: flex !important;
    align-items: center;
    flex: 1 1 100%;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--erpol-ticker-height) !important;
    min-height: var(--erpol-ticker-height);
    margin: 0 !important;
    padding-block: 0 !important;
    padding-inline: 10px;
  }

  .erpol-piyasa-topbar .wd-header-text {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--erpol-ticker-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  .erpol-piyasa-topbar .erpol-piyasa-ticker {
    width: 100%;
    max-width: 100%;
    height: var(--erpol-ticker-height) !important;
    min-height: var(--erpol-ticker-height);
    margin: 0;
    line-height: 1 !important;
  }

  .erpol-piyasa-ticker__group {
    justify-content: space-between;
    gap: min(var(--erpol-ticker-gap), 10px);
  }

  .erpol-piyasa-ticker__item {
    gap: 5px;
    line-height: 1 !important;
  }

  .erpol-piyasa-ticker__label,
  .erpol-piyasa-ticker__change {
    font-size: 9px;
  }

  .erpol-piyasa-ticker__value {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .erpol-piyasa-topbar .whb-col-center.whb-visible-lg {
    padding-inline: 6px;
  }

  .erpol-piyasa-ticker__group {
    gap: min(var(--erpol-ticker-gap), 6px);
  }

  .erpol-piyasa-ticker__item {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erpol-piyasa-ticker--scrolling {
    overflow-x: auto;
  }

  .erpol-piyasa-ticker--scrolling .erpol-piyasa-ticker__track {
    animation: none;
  }

  .erpol-piyasa-ticker--scrolling .erpol-piyasa-ticker__group--copy {
    display: none;
  }
}
