/*
 Theme Name:   THH Connect
 Theme URI:    https://bricksbuilder.io/
 Description:  THH Connect WordPress theme built on Bricks with custom elements and multilingual support.
 Author:       Grade
 Author URI:   https://grade.net.au/
 Template:     bricks
 Version:      1.2
 Text Domain:  bricks
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

p {
  font-family: "Inter";
}

.translate-container {
  position: absolute;
  top: 12px;
  right: 112px;
  width: 90px;
  height: 90px;
  display: grid;
  grid-template-rows: auto;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  padding: 10px 5px;
  transition: background 0.2s;
}

.translate-container:hover {
  background: #000;
  color: #fff;
}

.translate-container:hover .current-item {
  color: #fff;
}

.translate-container:hover img,
.translate-container.open img {
  filter: invert();
}

.translate-items {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
  display: none;
  box-shadow: 9px 16px 24px rgba(0, 0, 0, 0.05);
}

.translate-container.open {
  overflow: visible;
  background: #000;
}

.translate-container.open .translate-items {
  display: grid;
  color: #fff;
}

.translate-container.open .current-item {
  color: #fff;
}

.current-item {
  padding: 0 10px;
  cursor: pointer;
  font-family: "Inter";
  color: #000000;
  font-weight: 500;
  font-size: var(--fs-xs);
  text-transform: capitalize;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.translate-item {
  cursor: pointer;
  font-family: "Inter";
  color: #000000;
  font-weight: 500;
  font-size: var(--fs-sm);
  text-transform: capitalize;
  background: #fff;
  text-align: center;
  margin: 0 auto 0 -5px;
  align-self: center;
  min-width: 180px;
  border-bottom: 1px solid #ebebea;
}

.translate-item span {
  display: block;
  width: 100%;
  height: 100%;
  padding: 12px 16px;
}

.translate-item:first-of-type {
  border-radius: 12px 12px 0 0;
}

.translate-item:last-of-type {
  border-radius: 0 0 12px 12px;
  border: none;
}

.translate-item:hover {
  background: #000;
  color: #fff;
}

.translate-item a,
.translate-item:hover a {
  text-decoration: none;
}

.rtl .translate-container {
  right: unset;
  left: 112px;
}

.brxe-video {
  border-radius: 18px;
}

.rtl .brxe-button svg {
  rotate: 180deg;
}

@media (max-width: 991px) {
  .translate-container {
    right: 208px;
  }

  .rtl .translate-container {
    right: unset;
    left: 210px;
  }
}

@media (max-width: 767px) {
  .translate-container {
    top: 7px;
    right: 100px;
    width: 72px;
    height: 73px;
    padding: 0;
    border-radius: 9px;
  }

  .rtl .translate-container {
    left: 100px;
    right: unset;
  }

  .translate-item {
    min-width: 160px;
    font-size: var(--fs-xs);
    margin: 0;
  }

  .current-item {
    padding: 0 0 0 10px;
    gap: 3px;
  }

  .rtl .current-item {
    padding: 0 10px;
    gap: 3px;
  }
}

@media (max-width: 477px) {
  .translate-items {
    margin-top: 12px;
  }

  .rtl .translate-container {
    right: unset;
    left: 90px;
  }
}
