@layer components {
  /*
   * User dropdown
   */
  
  .hidden-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }
  
  .user-dropdown-input:focus + .user-dropdown-label {
    outline: none;
  }
  
  .user-dropdown-input:checked ~ .user-dropdown {
    display: block;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .user-dropdown-input:-moz-focusring + .user-dropdown-label {
    outline: none;
  }
  
  /* Label */
  .user-dropdown-label {
    align-items: center;
    cursor: pointer;
    display: flex;
    text-decoration: none;
    height: 2.25rem;
    width: 2.25rem;
  
    @media (max-width: 639.98px) {
      height: 2.125rem;
      width: 2.125rem;
    }
  
    img {
      width: 100%;
      height: auto;
    }
  }
  
  /* Dropdown */
  .user-dropdown {
    display: none;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-200);
    border-radius: 2px;
    box-shadow: 0px 4px 16px 0px rgb(var(--rgb-grey-900) / 0.24);
    font-size: 0.938rem;
    position: absolute;
    right: 0;
    top: 3.25rem;
    width: 12rem;
    z-index: 10;
  
    @media (max-width: 639.98px) {
      font-size: 0.875rem;
      top: 3rem;
    }
  
    .user-dropdown-list {
      border-bottom: 1px solid var(--color-grey-100);
      margin: 0;
      padding: 0.25rem 0 0.75rem 0;
  
      &:last-of-type {
        border: none;
      }
  
      .user-dropdown-list-item {
        list-style: none;
        margin: 0;
        padding: 0;
      }
  
      .user-dropdown-link {
        color: var(--color-grey-900);
        display: block;
        padding: 0.5rem 0.75rem 0 0.75rem;
        position: relative;
        text-decoration: none;
        transition: 0.2s ease;
  
        &:hover {
          color: var(--color-primary);
        }
      }
  
      .user-dropdown-link-button {
        background: none;
        border: none;
        color: inherit;
        cursor: pointer;
        font: inherit;
        margin: 0.5rem 0.75rem 0rem 0.75rem;
        padding: 0;
        text-align: left;
        width: 100%;
        transition: 0.2s ease;
  
        &:hover {
          color: var(--color-primary);
        }
      }
    }
  }
}
