.custom-dropdown {
  height: 3em;
  min-width: 6.9375em;
}

.caret {
  width: 1em;
  height: 1em;
}

.flag-emoji {
  object-fit: cover;
  border-radius: 0.125em;
}

.country-logo {
  width: 1.625em;
  height: 1em;
}

.dropdown-button .caret {
  transition: transform 0.3s ease-out;
}

.dropdown-button[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}
.dropdown-button:focus-visible,
.select-input:focus-visible {
  outline-style: none;
  outline-width: 0;
}
.dropdown-options {
  position: absolute;
  top: 102%;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
  z-index: 2;
  max-height: 9.375em;
  width: 101%;
  left: -1.5px;
}

li:hover {
  background: rgba(235, 244, 228, 0.5);
}

.dropdown-options::-webkit-scrollbar {
  width: 0.25em;
  padding-right: 8px;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background-color: #d7d7d7;
  border-radius: 4em;
}

.dropdown-options li {
  cursor: pointer;
}

.dropdown-options li:last-child {
  margin-bottom: 0 !important;
}

.dropdown-options li:hover,
.dropdown-options li:active,
.dropdown-options li:focus {
  border-radius: 0.25em;
  background: #f9f9f9;
}

.custom-dropdown[aria-invalid="true"] {
  border: 0.5px solid #d24a4a;
}

@media (max-width: 905px) {
  .dropdown-options[aria-expanded] {
    position: fixed;
    border: 0;
    bottom: 0;
    margin-top: 0;
    left: 0;
    top: auto;
    max-height: 50%;
    transition: transform 0.3s ease-out;
    transform: translateY(100%);
  }

  .dropdown-options[aria-expanded="true"] {
    transform: translateY(0%);
  }

  body.overlay {
    position: sticky;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    overflow: hidden;
  }

  body.overlay::before {
    z-index: 1;
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6));
    pointer-events: none;
  }
}

@media (min-width: 905px) {
  .visibility-hidden {
    visibility: hidden;
  }
  .visibility-visible {
    visibility: visible;
  }
}
