.cc-lang-flex {
  display: flex;
  align-items: center;
}

.cc-dropdown-arrow {
  display: inline-block;
  width: 10px;
  height: 6px;
  background-color: currentColor;
  mask-image: url('/langTool/img/arrow-down.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/langTool/img/arrow-down.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  transform: rotate(0deg);
  transition: transform 0.3s ease-in-out;
}

.cc-lang-label {
  min-height: inherit;
  padding: 10px;
  color: #000000;
  font-weight: bold;
}

.cc-lang-earth {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  mask-image: url('/images/svg/lang/lang_earth.svg');
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: url('/images/svg/lang/lang_earth.svg');
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.cc-lang-text {
  margin: 0 8px;
  min-width: 19px;
  line-height: 20px;
  cursor: default;
}

.cc-lang-menu {
  width: 100%;
  position: absolute;
  top: 66px;
  left: 0;
  min-height: 300px;
  border-top: 1px solid #F5F5F5;
  background-color: #FFF;
  box-shadow: 0 10px 12px 0 rgba(0, 0, 0, .1);
}

.cc-lang-list {
  margin: 0 auto;
  max-width: 1182px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 147px);
  justify-content: space-between;
}

.cc-lang-item {
  margin-bottom: 11px;
  margin-right: 107px;
}

.cc-lang-item > .item-href {
  min-width: 160px;
  padding: 9px 15px;
  border-radius: 6px;
  color: #000;
  font-size: 14px;
  font-weight: 400;
  line-height: 17px;
  cursor: pointer;
}

.cc-lang-item > .item-href:hover {
  color: #000;
  background-color: #F3F3F3;
}

.cc-lang-item span {
  white-space: nowrap;
}
/*mobile*/
.cc-lang-tool.btn .cc-lang-menu {
  position: initial;
}

.cc-lang-tool.btn .cc-dropdown-menu-fixed {
  width: 100%;
  margin: 0;
}

.cc-lang-tool.btn .cc-lang-list {
  display: grid;
  grid-template-columns: 165px 165px;
  justify-content: space-between;
  max-width: 550px;
  width: 100%;
}

/*box*/
.cc-lang-tool.box {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.cc-lang-tool.box #lang-dropdown-btn{
  border: 1px solid #D2D2D2;
  border-radius: 8px;
  padding: 7px 7px 7px 9px;
}

.cc-lang-tool.box .cc-lang-text{
  margin: 0 10px 0 5px;
  line-height: 14px;
}

.cc-lang-tool.box #lang-dropdown-menu {
  top: 100%;
  left: auto;
  right: 0;
  width: 560px;
}

.cc-lang-tool.box .cc-dropdown-menu-fixed {
  margin: 20px auto 9px;
}

.cc-lang-tool.box .cc-lang-list {
  grid-template-columns: repeat(3, 146px);
}

.cc-lang-tool.box #lang-dropdown-menu .cc-lang-item>.item-href{
  min-width: 146px;
}

/* select */
.cc-lang-tool.select{
  position: relative;
}
.cc-lang-tool.select .cc-lang-menu{
  position: absolute;
  top: auto;
  left: auto;
  right: 0 !important;
  bottom: 100%;
  padding: 10px;
  width: 204px;
  max-height: 300px !important;
  box-shadow: 0px 8px 20px 0px #1D1D1D29;
  border-radius: 8px;
  background-color: #fff;
  z-index: 2;
  overflow: auto;
}
.cc-lang-tool.select .cc-lang-menu .cc-lang-list{
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cc-lang-tool.select .cc-lang-menu .cc-dropdown-menu-fixed{
  margin: 0 !important;
  width: 100%;
  max-width: unset;
}
.cc-lang-tool.select .cc-lang-menu .cc-lang-item{
  margin: 0;
  width: 100%;
}
.cc-lang-tool.select .cc-lang-flex{
  justify-content: space-between;
  min-width: 82px;
}
.cc-lang-tool.select .cc-lang-label{
  font-weight: normal;
  cursor: pointer;
  user-select: none;
}
.cc-lang-tool.select.open .cc-lang-menu{
  display: block;
}
#lang-dropdown-menu::-webkit-scrollbar {
  width: 4px !important;
  height: 4px !important;
  transform: translate(-50px, 0);
}

#lang-dropdown-menu::-webkit-scrollbar-thumb {
  border-radius: 5px !important;
  -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.1) !important;
  background: #cccccc !important;
}

@media (max-width: 678px) {
  .cc-lang-tool.box #lang-dropdown-menu{
    padding: 0 10px;
    width: 190px;
    max-height: 466px;
    overflow: auto;
  }

  .cc-lang-tool.box .cc-lang-list{
    grid-template-columns: repeat(1, 146px);
  }
}

@media (min-width: 1181px) and (hover: hover) {
  .cc-lang-tool #lang-dropdown-btn{
    position: relative;
  }
  
  .cc-lang-tool #lang-dropdown-btn::before {
    display: none;
    content: '';
    position: absolute;
    top: 35%;
    left: -33%;
    width: 160%;
    height: 100%;
    background: transparent;
    z-index: 999;
  }
  
  .cc-lang-tool #lang-dropdown-btn:hover::before {
    display: block;
  }

  .cc-lang-tool #lang-dropdown-btn:hover .cc-lang-earth,
  .cc-lang-tool #lang-dropdown-btn:hover .cc-lang-text {
    color: var(--theme-color, #4f6bff);
  }

  .cc-lang-tool #lang-dropdown-btn:hover .cc-dropdown-arrow {
    color: var(--theme-color, #4f6bff);
    transform: rotate(180deg);
  }
}

@media (min-width: 1181px) {
  .cc-lang-tool #lang-dropdown-menu{
    max-width: 560px;
    right: 30px;
    left: auto;
    max-height: calc(100vh - 66px);
    overflow: auto;
  }
  
  .cc-lang-tool #lang-dropdown-menu .cc-dropdown-menu-fixed{
    margin: 20px auto 9px;
  }
  
  .cc-lang-tool #lang-dropdown-menu .cc-lang-list{
    grid-template-columns: repeat(3, 146px);
  }
  
  .cc-lang-tool #lang-dropdown-menu .cc-lang-item > .item-href{
    min-width: 146px;
  }
  
  html[dir=rtl] .cc-lang-tool #lang-dropdown-menu{
    right: auto;
    left: 30px;
  }
}

html[dir=rtl] .cc-lang-tool.box .cc-lang-menu {
  right: auto;
  left: 0;
}

html[dir=rtl] .cc-lang-item {
  margin-left: 107px;
  margin-right: 0;
}



