/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.0
Text Domain:  Avada
*/


.kuyi-topbar {
  width: 100%;
  min-height: 42px;
  padding: 8px 24px;
  box-sizing: border-box;
  background: #0B0B0B;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.kuyi-topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.kuyi-topbar__item + .kuyi-topbar__item::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 16px;
  background: rgba(255, 255, 255, 0.3);
}

.kuyi-topbar__highlight {
  font-weight: 700;
}

.kuyi-topbar__link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.2s ease;
}

.kuyi-topbar__link:hover {
  color: #E3D5C8;
}

@media (max-width: 700px) {
  .kuyi-topbar {
    position: relative;
    min-height: 46px;
    padding: 10px 16px;
    font-size: 11px;
    text-align: center;
  }

  .kuyi-topbar__item {
    position: absolute;
    width: calc(100% - 32px);
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    animation: kuyiTopbarRotation 9s infinite;
  }

  .kuyi-topbar__item::before {
    display: none;
  }

  .kuyi-topbar__item:nth-child(1) {
    animation-delay: 0s;
  }

  .kuyi-topbar__item:nth-child(2) {
    animation-delay: 3s;
  }

  .kuyi-topbar__item:nth-child(3) {
    animation-delay: 6s;
  }
}

@keyframes kuyiTopbarRotation {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  8%,
  27% {
    opacity: 1;
    transform: translateY(0);
  }

  35%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .kuyi-topbar__item {
    animation: none;
  }

  @media (max-width: 700px) {
    .kuyi-topbar__item {
      display: none;
      position: static;
      opacity: 1;
      transform: none;
    }

    .kuyi-topbar__item:first-child {
      display: flex;
    }
  }
}
