.spf-language-switcher {
  position: relative;
  z-index: 3;
  margin-left: 12px;
  white-space: nowrap;
}

.spf-navlink-login {
  white-space: nowrap;
}

.spf-language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #1d394e;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  list-style: none;
  background: #1d394e;
  cursor: pointer;
}

.spf-language-current::-webkit-details-marker {
  display: none;
}

.spf-language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(34px, auto));
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(29, 57, 78, 0.16);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 42, 61, 0.14);
}

.spf-language-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(29, 57, 78, 0.18);
  border-radius: 4px;
  color: #1d394e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.88);
}

.spf-language-link:hover,
.spf-language-link:focus {
  border-color: rgba(29, 57, 78, 0.46);
  color: #102a3d;
  text-decoration: none;
}

.spf-language-link[aria-current="true"] {
  border-color: #1d394e;
  background: #1d394e;
  color: #fff;
}

[dir="rtl"] .spf-language-switcher {
  margin-right: 12px;
  margin-left: 0;
}

@media screen and (max-width: 991px) {
  .spf-language-switcher {
    margin: 24px 20px 0;
  }

  .spf-language-current {
    border-color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.92);
    color: #1d394e;
  }

  .spf-language-options {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .spf-language-link[aria-current="true"] {
    border-color: #7bc6dc;
    background: #7bc6dc;
    color: #1d394e;
  }
}
