.menu-items-right .dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
}

.menu-item_rechts.is-logged-out {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.menu-item_rechts.is-logged-out .topbar-auth-link {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 30px;
  white-space: nowrap;
}

.menu-item_rechts.is-logged-out .topbar-auth-signup {
  background-color: rgb(29, 73, 176);
}

.menu-item_rechts.is-logged-out .topbar-auth-signup:hover {
  background-color: rgb(35, 81, 192);
}

.menu-item_rechts.is-logged-out .topbar-auth-login {
  background-color: rgb(30, 30, 30);
}

.menu-item_rechts.is-logged-out .topbar-auth-login:hover {
  background-color: rgb(44, 44, 44);
}

/* Extend hover hit-area to bridge the gap before the menu */
.menu-items-right .dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.menu-items-right .dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgb(29 73 176);
  color: rgb(255, 255, 255);
  padding: 12px 20px;
  text-align: left;
  border: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 30px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}

.menu-items-right .dropdown-button::after {
  content: "";
  width: 12px;
  height: 8px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 8px;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transition: transform 0.15s ease;
}

/* Button hover/open state */
.menu-items-right .dropdown-button:hover,
.menu-items-right .dropdown.is-open .dropdown-button {
  background-color: rgb(35, 81, 192);
}

.menu-items-right .dropdown.is-open .dropdown-button::after {
  transform: rotate(180deg);
}

.menu-items-right .dropdown-menu {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background-color: rgb(30, 30, 30);
  z-index: 6;
  min-width: 220px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-items-right .dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

/* On click-open: fade in and show */
.menu-items-right .dropdown.is-open .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

/* Make sure the dropdown items also align */
.menu-items-right .dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  color: rgb(255, 255, 255);
  text-decoration: none;
  text-align: center;
  font-size: 13px;
  border-radius: 999px;
  font-weight: 600;
  background-color: transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.menu-items-right .dropdown-menu a:not(:last-child) {
  border-bottom: 0;
}

.menu-items-right .dropdown-menu a:hover {
  color: rgb(255, 255, 255);
  background-color: rgb(39, 88, 208);
  transform: translateY(-1px);
}

.menu-items-right .dropdown-menu a:active {
  color: rgb(255, 255, 255);
}

.menu-items-right .account-menu-usage {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
  line-height: 1.35;
  margin-bottom: 8px;
  padding: 12px;
  text-align: center;
}

.menu-items-right .account-menu-usage strong {
  color: rgb(255, 255, 255);
  font-size: 13px;
  font-weight: 700;
}
