.profile-badge {
  display: inline-flex;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 100%;
  background: #53565a no-repeat 50% / cover;
  transition: background-color 0.2s, height 0.2s, width 0.2s;
  cursor: pointer;
  margin-bottom: 2.3rem;
  border: none;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2.5rem;
  min-height: 2.5rem;
}
.els-gizmo-icon-header {
  width: 2.25rem;
  height: 1.25rem;
  line-height: 1.25rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.profile-badge-exit {
  display: flex;
  align-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 100%;
  background: #53565a no-repeat 50% / cover;
  transition: background-color 0.2s, height 0.2s, width 0.2s;
  cursor: default;
  margin-bottom: 2.3rem;
  border: none;
  box-sizing: border-box;
  min-width: 2.5rem;
  min-height: 2.5rem;
}

.profile-badge:focus,
.profile-badge:hover {
  background-color: #ff6c00;
}

.profile-badge:focus-visible {
  background-color: #ff6c00;
  outline: none;
}

@media screen and (min-width: 993px) {
  .dropdown-trigger:not(.profile-badge) {
    padding: 0;
    background-color: transparent;
  }

  .dropdown-wrapper {
    margin-bottom: 0;
    transition: margin-left 0.3s;
  }

  .dropdown-wrapper.expanded .dropdown {
    display: block;
  }

  .dropdown-alignment {
    position: relative;
    display: inline-block;
  }

  .dropdown {
    display: block;
    position: absolute;
    z-index: 8888889;
    padding: 16px;
    border-top: 2px solid #ff6c00;
    background: rgba(235, 235, 235, 0.85);
    /*width: 349.5px;*/
    /*height: 184px;*/
    /* Position the dropdown below the trigger and allow it to grow with content. */
    top: 90%;
    left: auto;
    right: 2.5rem;
    margin-top: 0.5rem;
    width: auto !important;
    max-width: calc(100vw - 2rem) !important;
    height: auto !important;
    max-height: calc(100vh - 4rem) !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }
  /* dropdowns (profile menu / small popups) — allow wrapping and constrain to viewport */
  /*
.dropdown,
.dropdown-wrapper .dropdown,
.profile-badge + .dropdown {
  width: auto !important;
  max-width: calc(100vw - 2rem) !important;
  height: auto !important;
  max-height: calc(100vh - 4rem) !important;
  left: auto !important;
  right: 3rem !important;
  top: auto !important;
  white-space: normal !important;
  overflow: auto !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}
  */

  /* ensure inner list items wrap and stay reachable */
  .dropdown-inner,
  .dropdown-inner ul,
  .dropdown-inner li {
    white-space: normal !important;
    word-break: break-word !important;
  }

  .dropdown::after,
  .dropdown::before {
    position: absolute;
    top: -13px;
    right: 0;
    content: " ";
    width: 0;
    height: 0;
    border-top: 6.5px solid transparent;
    border-left: 6.5px solid transparent;
    border-right: 6.5px solid #ff6c00;
    border-bottom: 6.5px solid #ff6c00;
  }

  .dropdown::after {
    top: -10px;
    border-right: 6.5px solid #ebebeb;
    border-bottom: 6.5px solid #ebebeb;
  }

  .dropdown-inner {
    background: #fff;
    padding: 16px;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;
    width: 337.5px;
    height: auto;
    max-height: calc(100vh - 6rem);
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    max-inline-size: 100% !important;
    overflow: auto;
  }

  .dropdown-inner ul {
    display: flex;
    flex-direction: column;
  }

  .dropdown-inner li {
    margin: 8px 0;
  }

  .dropdown-inner a:focus {
    outline: 0;
  }

  li.profile-dropdown,
  li.sign-in {
    display: flex;
  }

  li.sign-in {
    margin-left: 4px;
  }
}

@media screen and (min-width: 1025px) {
  .dropdown-wrapper:not(:first-of-type):not(.profile-dropdown) {
    margin-left: 24px;
  }
}

@media screen and (min-width: 1121px) {
  button.dropdown-trigger {
    font-size: 20px;
  }

  .profile-badge {
    width: 40px;
    height: 40px;
    margin-left: 4px;
  }

  .profile-badge + .dropdown {
    margin-top: 10px;
  }

  .profile-badge .profile-badge-initials {
    font-size: 1.25rem;
    line-height: 1.8rem;
  }
}

@media screen and (min-width: 1201px) {
  .dropdown-wrapper:not(:first-of-type):not(.profile-dropdown) {
    margin-left: 32px;
  }
}

/* responsive design */

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .links-other {
    display: inline-block;
    margin-bottom: 1.7rem;
  }

  .language-logo {
    vertical-align: middle;
    margin-bottom: 0.2rem;
    width: 14.12px;
    height: 14.12px;
  }

  .dropdown {
    display: block;
    padding: 10px;

    width: auto;
    max-width: calc(100vw - 2rem);
    height: auto;
    max-height: calc(100vh - 4rem);
    left: calc(100% - 230.5px - 69.5px);
    top: calc(100% - 164px + 205px);

    position: absolute;
    z-index: 8888889;
    border-top: 2px solid #ff6c00;
    background: rgba(235, 235, 235, 0.85);
  }

  .dropdown::after,
  .dropdown::before {
    position: absolute;
    top: -13px;
    right: 0;
    content: " ";
    width: 0;
    height: 0;
    border-top: 6.5px solid transparent;
    border-left: 6.5px solid transparent;
    border-right: 6.5px solid #ff6c00;
    border-bottom: 6.5px solid #ff6c00;
  }

  .dropdown-inner {
    background: #fff;
    padding: 12px;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;

    width: 210.5px;
    height: 142px;
    left: calc(50% - 210.5px / 2 - 0.5px);
    top: calc(50% - 142px / 2 + 6.75px);

    /* es Colors/Base/White */

    background: #ffffff;
  }

  .language-logo {
    width: 14.12px !important;
    height: 14.12px !important;
  }

  .language-text {
    font-size: 14px !important;
  }

  .selection-text {
    font-size: 14px !important;
  }

  .profile-badge {
    width: 32px !important;
    height: 32px !important;
  }

  .profile-badge-exit {
    width: 28px !important;
    height: 28px !important;
    margin-left: -0.2rem;
  }

  .els-btn-medium {
    width: auto !important;
    height: auto !important;
    white-space: normal;
    font-size: 14px !important;
  }

  .els-user-outside-profile-name {
    font-size: 14px !important;
    /*padding-left: 0.1rem !important;*/
  }
  .els-gizmo-icon {
    padding-left: 0.84rem !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
/*@media (min-device-width: 769px) and (max-device-width: 1024px) {*/
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .links-other {
    display: flex;
    margin-bottom: 1.7rem;
  }

  .dropdown {
    display: block;
    position: absolute;
    /*right: 4.5rem;
    margin: -0.25rem auto 0;*/
    z-index: 8888889;
    padding: 16px;
    border-top: 2px solid #ff6c00;
    background: rgba(235, 235, 235, 0.85);
    width: 329.5px;
    height: 184px;
    left: calc(100% - 329.5px - 59.5px);
    top: calc(100% - 184px + 183px);
  }

  .dropdown::after,
  .dropdown::before {
    position: absolute;
    top: -13px;
    right: 0;
    content: " ";
    width: 0;
    height: 0;
    border-top: 6.5px solid transparent;
    border-left: 6.5px solid transparent;
    border-right: 6.5px solid #ff6c00;
    border-bottom: 6.5px solid #ff6c00;
  }

  .dropdown::after {
    top: -10px;
    border-right: 6.5px solid #ebebeb;
    border-bottom: 6.5px solid #ebebeb;
  }

  .dropdown-inner {
    background: #fff;
    padding: 16px;
    max-width: 100%;
    text-align: left;
    white-space: nowrap;

    width: 297.5px;
    height: 152px;
    left: calc(50% - 297.5px / 2 - 0.5px);
    top: calc(50% - 152px / 2 + 6.75px);

    /* es Colors/Base/White */

    background: #ffffff;
  }

  .profile-badge-exit {
    margin-left: 0.1rem;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .links-other {
    display: flex;
  }
}
