/* ===================================================================
 * Nexi Native Toolbar CSS
 * 모바일 하단 네비게이션 바 스타일
 * ================================================================= */

/* Mobile Bottom Toolbar - 원본 테마 스타일 완전 복제 */
.jws-toolbar-wap {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 350;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  height: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(65px + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
  box-shadow: 0px -6px 10px -3px rgba(0, 0, 0, 0.07);
  background: #fff;
  transition: 0.3s all;
  transform: translateY(100%);
  opacity: 0;
}

.jws-toolbar-item {
  flex: 1 0 20%;
  text-align: center;
  font-size: 13px;
  font-family: var(--font-button);
  font-weight: 700;
}

.jws-toolbar-item a {
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 45px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--e-global-color-text);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.jws-toolbar-item a i,
.jws-toolbar-item a span {
  color: var(--e-global-color-text);
}

.jws-toolbar-item a.current,
.jws-toolbar-item a:hover {
  opacity: 1;
}

/* 터치 효과 제거 */
/* .jws-toolbar-item a:active {
    opacity: 1;
    transform: scale(0.95);
} */

.jws-toolbar-item a.current i,
.jws-toolbar-item a:hover i {
  color: var(--accent); /* Redux Accent Color */
}

.jws-toolbar-item i {
  display: inline-block;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 4px;
  line-height: 1;
}

.jws-toolbar-item span {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

/* 알림 도트 스타일 */
.jws-toolbar-item .jws-icon-box-icon {
  position: relative;
  display: inline-block;
}

.jws-toolbar-wap
  .jws-toolbar-item.mess_notificaion.has_notificaion
  .jws-icon-box-icon:before,
.jws-toolbar-wap
  .jws-toolbar-item.activities_notificaion.has_notificaion
  .jws-icon-box-icon:before,
.jws-toolbar-wap
  .jws-toolbar-item.match_notificaion.has_notificaion
  .jws-icon-box-icon:before {
  content: "";
  width: 8px;
  height: 9px;
  background-color: var(--accent); /* Redux Accent Color */
  display: block;
  border-radius: 100%;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 999;
  animation: toolbarDotFade 1s ease-out infinite;
}

@keyframes toolbarDotFade {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* 모바일에서 표시 */
@media (max-width: 1024px) {
  .jws-toolbar-wap {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 데스크톱에서 숨김 */
@media (min-width: 1025px) {
  .jws-toolbar-wap {
    display: none !important;
  }
}
